XML 197 R169.htm IDEA: XBRL DOCUMENT
v3.21.1

Equity - Disclosure - Equity - Summary of Balances and Changes in Dividends Payable (Detail) - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Shareholders equity details [abstract] |  |  |
Beginning balance |  |  | R$ 284,024
Provisions | R$ 710,206 | R$ 329,106 |
Payments | (284,767) | (596,436) |
Ending balance | R$ 442,133 | R$ 16,694 |
Expired dividends |  |  | R$ (3,170)

X
- Definition Current dividend payables beginning balance. + References No definition available. + Details
Name: | ugp_CurrentDividendPayablesBeginningBalance
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Current dividend payables ending balance. + References No definition available. + Details
Name: | ugp_CurrentDividendPayablesEndingBalance
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Dividend payments. + References No definition available. + Details
Name: | ugp_DividendPayments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Dividend provision amount. + References No definition available. + Details
Name: | ugp_DividendProvisionAmount
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of expired dividends. + References No definition available. + Details
Name: | ugp_ExpiredDividends
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Shareholders equity details. + References No definition available. + Details
Name: | ugp_ShareholdersEquityDetailsAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration