XML 179 R154.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

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

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