XML 178 R152.htm IDEA: XBRL DOCUMENT
v3.25.1

Commitments - Additional Information (Detail) | Dec. 31, 2024 m³ T
--- | ---
Aratu [member] |
Disclosure of commitments and contingencies [line items] |
Cargo rates per ton | 9.64
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 | m³ | 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: |