XML 187 R168.htm IDEA: XBRL DOCUMENT
v3.23.1

Earnings per share - Additional Information (Detail) - shares | Dec. 31, 2022 | Aug. 03, 2022 | Feb. 23, 2022 | Aug. 11, 2021 | Feb. 24, 2021
--- | --- | --- | --- | --- | ---
Disclosure of non-adjusting events after reporting period [line items] |  |  |  |  |
Rights outstanding |  | 21,472 | 43,925 | 31,032 | 70,939
Major ordinary share transactions [member] |  |  |  |  |
Disclosure of non-adjusting events after reporting period [line items] |  |  |  |  |
Rights outstanding | 2,472,210 |  |  |  |

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