XML 191 R172.htm IDEA: XBRL DOCUMENT
v3.23.1

Risks and Financial Instruments - Assets and liabilities in foreign currencies (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2022 | Dec. 31, 2021
--- | --- | ---
Assets in foreign currency [abstract] |  |
Cash, cash equivalents and financial investments in foreign currency (except hedging instruments) | R$ 311,017 | R$ 122,242
Foreign trade receivables, net of allowance for expected credit losses | 6,131 | 1,324
Other receivables | 727,057 | 0
Other assets of foreign subsidiaries | 280,738 | 186,548
Asset exposure from subsidiaries held for sale | 0 | 3,839,194
Assets in foreign currency | 1,324,943 | 4,149,308
Liabilities in foreign currency |  |
Financing in foreign currency, gross of transaction costs and discount | (5,213,100) | (8,860,833)
Payables arising from imports | (1,939,984) | (649,107)
Liabilities exposure from subsidiaries held for sale | 0 | (884,402)
Liabilities in foreign currency | (7,153,084) | (10,394,342)
Foreign currency hedging instruments | 5,274,302 | 2,933,572
Foreign currency hedging instruments from subsidiaries held for sale | 0 | 1,786,471
Net liability position – total | (553,839) | (1,524,991)
Net (liability) asset position - effect on statement of income | (553,839) | (498,604)
Net liability position - effect on equity in subsidiaries held for sale | R$ 0 | R$ (1,026,387)

X
- Definition The amount of assets exposure from subsidiaries held for sale in foreign currency. + References No definition available. + Details
Name: | ugp_AssetExposureFromSubsidiariesHeldForSale
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of total assets in foreign currency. + References No definition available. + Details
Name: | ugp_AssetsInForeignCurrency
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | ugp_AssetsInForeignCurrencyAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of cash, cash equivalents and financial investments in foreign currency but excluding hedging instruments. + References No definition available. + Details
Name: | ugp_CashCashEquivalentsAndFinancialInvestmentsInForeignCurrencyExceptHedgingInstruments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of financing in foreign currency, gross of transaction costs and discount. + References No definition available. + Details
Name: | ugp_FinancingInForeignCurrency
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The gains (losses) on Foreign currency hedging instruments. + References No definition available. + Details
Name: | ugp_ForeignCurrencyHedgingInstruments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of foreign currency hedging instruments from subsidiaries held for sale. + References No definition available. + Details
Name: | ugp_ForeignCurrencyHedgingInstrumentsFromSubsidiariesHeldForSale
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount due from Foreign trade receivables, net of allowance for doubtful accounts and advances to foreign customers. + References No definition available. + Details
Name: | ugp_ForeignTradeReceivablesNetOfAllowanceForDoubtfulAccountsAndAdvancesToForeignCustomers
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of liabilities exposure from subsidiaries held for sale in foreign currency. + References No definition available. + Details
Name: | ugp_LiabilitiesExposureFromSubsidiariesHeldForSale
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of total liabilities in foreign currency. + References No definition available. + Details
Name: | ugp_LiabilitiesInForeignCurrency
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Liabilities in foreign currency abstract. + References No definition available. + Details
Name: | ugp_LiabilitiesInForeignCurrencyAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of Net (liability) asset position - effect on statement of income. + References No definition available. + Details
Name: | ugp_NetAssetLiabilityPositionEffectStatementIncome
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of net asset (liability) position - Shareholders' equity effect. + References No definition available. + Details
Name: | ugp_NetAssetLiabilityPositionShareholdersEffectEquity
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of total net asset (liability) position. + References No definition available. + Details
Name: | ugp_NetAssetLiabilityPositionTotal
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of other net assets of foreign subsidiaries in foreign currency but excluding cash, cash equivalents, financial investments, trade receivables, financing and payables. + References No definition available. + Details
Name: | ugp_OtherNetAssetsOfForeignSubsidiariesInForeignCurrencyExceptCashCashEquivalentsFinancialInvestmentsTradeReceivablesFinancingAndPayables
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of other receivables in foreign currency. + References No definition available. + Details
Name: | ugp_OtherReceivablesInForeignCurrency
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of current trade payables for foreign suppliers arising from imports, net of advances to foreign suppliers. + References No definition available. + Details
Name: | ugp_PayablesArisingFromImports
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant