XML 198 R170.htm IDEA: XBRL DOCUMENT
v3.21.1

Equity - Dividends and Allocation of Net Income (Parenthetical) (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2020 $ / shares
Shareholders equity details [abstract] |
Legal reserve as percentage of net income | (5.00%)
Statutory reserve as percentage of net income | (50.00%)
Total allocation per share | $ 0.44

X
- Definition The per share amount of total allocation of dividends. + References No definition available. + Details
Name: | ugp_AllocationOfDividendPerShare
Namespace Prefix: | ugp_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | duration

X
- Definition Legal reserve as percentage of net income + References No definition available. + Details
Name: | ugp_LegalReserveAsPercentageOfNetIncome
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
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

X
- Definition Statutory reserve as percentage of net income. + References No definition available. + Details
Name: | ugp_StatutoryReserveAsPercentageOfNetIncome
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant