XML 161 R135.htm IDEA: XBRL DOCUMENT
v3.25.1

Earnings per share - Additional Information (Detail) | Dec. 31, 2022 shares
--- | ---
Major ordinary share transactions [member] |
Disclosure of non-adjusting events after reporting period [line items] |
Rights outstanding | 2,629,311

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of warrants rights outstanding for exercise of the rights. + References No definition available. + Details
Name: | ugp_ExerciseOfWarrantsRightsOutstanding
Namespace Prefix: | ugp_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | ifrs-full_NonadjustingEventsAfterReportingPeriodAxis=ifrs-full_MajorOrdinaryShareTransactionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |