XML 197 R168.htm IDEA: XBRL DOCUMENT
v3.22.1

Deferred Revenue - Additional Information (Detail) R$ in Thousands | 12 Months Ended |
--- | --- | ---
Dec. 31, 2021 BRL (R$) Store | Dec. 31, 2020 Store
Extrafarma [member] |  |
Summary of deferred revenue [line items] |  |
Exchange period of loyalty program points for customers | 6 months |
Deferred revenue reclassified to a liability held for sale | R$ | R$ 927 |
am/pm [member] |  |
Summary of deferred revenue [line items] |  |
Number of stores which have not yet met performance requirements | 8 | 20
Number of stores | 90 | 58
Jet Oil [member] |  |
Summary of deferred revenue [line items] |  |
Number of stores which have not yet met performance requirements | 8 | 4
Number of stores | 45 | 45

X
- Definition The amount of deferred revenue is reclassified as a liability as held for sale. + References No definition available. + Details
Name: | ugp_DeferredRevenueReclassifiedToALiabilityHeldForSale
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The exchange period of loyalty program points for customers. + References No definition available. + Details
Name: | ugp_ExchangePeriodOfLoyaltyProgramPointsForCustomers
Namespace Prefix: | ugp_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of stores. + References No definition available. + Details
Name: | ugp_NumberOfStores1
Namespace Prefix: | ugp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition The number of stores which have not yet been met performance requirements. + References No definition available. + Details
Name: | ugp_NumberOfStoresWhichHaveNotYetMetPerformanceRequirements
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_SignificantInvestmentsInSubsidiariesAxis=ugp_ExtrafarmaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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