XML 146 R121.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Loans, financing, debentures and derivative financial instruments - Summary of Transaction Costs (Detail) - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Debentures [member] |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |
Transaction costs, beginning | R$ 68,168 | R$ 54,490 | R$ 28,348
Incurred costs | 23,569 | 30,420 | 40,953
Payments | (17,337) | (16,742) | (14,811)
Reclassification to liabilities held for sale |  |  | 0
Transaction costs, ending | 74,400 | 68,168 | 54,490
Notes in the foreign market [member] |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |
Transaction costs, beginning | 12,405 | 28,018 | 37,112
Incurred costs | 0 | 0 | 0
Payments | (2,289) | (15,613) | (4,890)
Reclassification to liabilities held for sale |  |  | (4,204)
Transaction costs, ending | 10,116 | 12,405 | 28,018
Banco do Brasil [member] |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |
Transaction costs, beginning | 0 | 76 | 332
Incurred costs | 0 | 0 | 0
Payments | 0 | (76) | (256)
Reclassification to liabilities held for sale |  |  | 0
Transaction costs, ending | 0 | 0 | 76
Promissory notes [Member] |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |
Transaction costs, beginning | 0 | 0 | 1,318
Incurred costs | 0 | 0 | 0
Payments | 0 | 0 | (1,318)
Reclassification to liabilities held for sale |  |  | 0
Transaction costs, ending | R$ 0 | R$ 0 | R$ 0

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The decrease in accumulated transaction costs resulting from classification as held for sale or inclusion in a disposal group classified as held for sale. + References No definition available. + Details
Name: | ugp_DecreaseThroughClassifiedAsHeldForSaleAccumulatedTransactionCosts
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of incurred transaction costs of financial instruments during the reporting period. + References No definition available. + Details
Name: | ugp_IncurredTransactionCost
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of payments for debt transaction costs. + References No definition available. + Details
Name: | ugp_PaymentsForDebtTransactionCosts
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of accrued transaction costs of financial instruments. + References No definition available. + Details
Name: | ugp_TransactionCostsFinancialInstruments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ugp_DebenturesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ugp_NotesInForeignMarketMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ugp_BancoDoBrasilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ugp_PromissoryNotesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |