XML 170 R144.htm IDEA: XBRL DOCUMENT
v3.25.1

Financial Instruments - Positions of derivative financial instruments to hedge commodity price risk (Detail) - Commodity price risk [member] - BRL (R$) R$ in Thousands | Dec. 31, 2024 | Dec. 31, 2023
--- | --- | ---
Disclosure of detailed information about financial instruments [line items] |  |
Fair value | R$ (7,707) | R$ 20,702
Probable Scenario [member] |  |
Disclosure of detailed information about financial instruments [line items] |  |
Fair value | R$ (12,430) | R$ 2,663

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_DisclosureOfFinancialInstrumentsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value of financial derivative hedging instruments. + References No definition available. + Details
Name: | ugp_FinancialDerivativeHedgingInstrumentsAtFairValue
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | ifrs-full_TypesOfRisksAxis=ifrs-full_CommodityPriceRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_ScenarioAxis=ugp_ScenarioMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |