XML 129 R101.htm IDEA: XBRL DOCUMENT
v3.21.1

Related Parties - Summary of Subsidiaries and Other Related Parties (Parenthetical) (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019
LA'7 Participaes e Empreend. Imob. Ltda. [member] |  |
Summary of related parties [line items] |  |
Number of drugstores under rental contracts | 15 | 15

X
- Definition Number of drugstores under rental contracts. + References No definition available. + Details
Name: | ugp_NumberOfDrugstoresUnderRentalContracts
Namespace Prefix: | ugp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Summary of related parties. + References No definition available. + Details
Name: | ugp_SummaryOfRelatedPartiesLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_SignificantInvestmentsInAssociatesAxis=ugp_LA7ParticipaesEEmpreendImobLtdaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |