XML 199 R174.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Commitments - Additional Information (Detail) | Dec. 31, 2023 T
--- | ---
Aratu [member] |
Disclosure of commitments and contingencies [line items] |
Cargo rates per ton | 9.22
Suape [member] |
Disclosure of commitments and contingencies [line items] |
Cargo rates per ton | 3.05
Itaqui [Member] |
Disclosure of commitments and contingencies [line items] |
Cargo rates per ton | 0.98

X
- Definition The per ton amount of cargo rates. + References No definition available. + Details
Name: | ugp_CargoRatesPerTon
Namespace Prefix: | ugp_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | instant

X
- Definition Disclosure of commitments and contingencies. + References No definition available. + Details
Name: | ugp_DisclosureOfCommitmentsAndContingenciesLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfContractsAxis=ugp_AratuMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfContractsAxis=ugp_SuapeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfContractsAxis=ugp_ItaquiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |