XML 134 R107.htm IDEA: XBRL DOCUMENT
v3.19.1

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

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: |