XML 191 R164.htm IDEA: XBRL DOCUMENT
v3.19.1

Equity - Dividends and Allocation of Net Income (Parenthetical) (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2018
Shareholders equity details [abstract] |
Legal reserve as percentage of net income | 5.00%

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