XML 106 R160.htm IDEA: XBRL DOCUMENT
v3.20.1

Deferred Revenue - Additional Information (Detail) | Dec. 31, 2019 Store | Dec. 31, 2018 Store Stores
--- | --- | ---
am/pm [member] |  |
Summary of deferred revenue [line items] |  |
Number of stores | 2,377 | (2,493)
Jet Oil [member] |  |
Summary of deferred revenue [line items] |  |
Number of stores | 1,492 | 1,772

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