XML 185 R158.htm IDEA: XBRL DOCUMENT
v3.19.1

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

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