XML 191 R163.htm IDEA: XBRL DOCUMENT
v3.21.1

Deferred Revenue - Additional Information (Detail) - store | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | ---
am/pm [member] |  |
Summary of deferred revenue [line items] |  |
Number of stores | 58 | 63
Jet Oil [member] |  |
Summary of deferred revenue [line items] |  |
Number of stores | 45 | 46

X
- Definition Number Of Stores1 + References No definition available. + Details
Name: | ugp_NumberOfStores1
Namespace Prefix: | ugp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

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

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_AmPmMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_JetOilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |