XML 115 R86.htm IDEA: XBRL DOCUMENT
v3.22.1

Cash and Cash Equivalents and Financial Investments - Additional Information (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | ---
Disclosure of Cash and Cash Equivalents and Financial Investments and Hedge Derivative Financial Instruments [Abstract] |  |
Cash, cash equivalents, and financial investments | R$ 4,463,473 | R$ 8,672,160

X
- Definition The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents] + References No definition available. + Details
Name: | ugp_CashCashEquivalentsAndFinancialInvestments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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