XML 192 R167.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Risks and Financial Instruments - Positions of derivative financial instruments to hedge commodity price risk (Detail) - Commodity price risk [member] R$ in Thousands, $ in Thousands | 12 Months Ended |  |
--- | --- | --- | ---
Dec. 31, 2023 BRL (R$) m³ | Dec. 31, 2022 BRL (R$) m³ | Dec. 31, 2023 USD ($) | Dec. 31, 2022 USD ($)
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ 20,702 | R$ (67,695) |  |
Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ 2,663 | R$ (157,697) |  |
Heating Oil [member] | Forward contract [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 189,113 | 158,828 |  |
Notional amount (USD thousands) | $ |  |  | $ 131,473 | $ 150,498
Fair value | R$ 21,918 | R$ (52,214) |  |
Heating Oil [member] | Forward contract [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ (2,308) | R$ (124,293) |  |
RBOB [member] | Forward contract [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 6,677 | 52,466 |  |
Notional amount (USD thousands) | $ |  |  | 3,807 | 31,382
Fair value | R$ 440 | R$ (15,481) |  |
RBOB [member] | Forward contract [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ (11) | R$ (33,404) |  |
Soybean Oil [Member] | Forward contract [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 1,951 | 0 |  |
Notional amount (USD thousands) | $ |  |  | 2,977 | 0
Fair value | R$ (52) | R$ 0 |  |
Soybean Oil [Member] | Forward contract [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ 22 | R$ 0 |  |
Sea Freight [Member] | Forward contract [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 40,000 | 0 |  |
Notional amount (USD thousands) | $ |  |  | 1,533 | 0
Fair value | R$ (1,505) | R$ 0 |  |
Sea Freight [Member] | Forward contract [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ 3,428 | R$ 0 |  |
Marine Fuel [Member] | Forward contract [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 1,727 | 0 |  |
Notional amount (USD thousands) | $ |  |  | $ 8,231 | $ 0
Fair value | R$ (99) | R$ 0 |  |
Marine Fuel [Member] | Forward contract [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ 1,532 | R$ 0 |  |

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 The fair value of financial instruments designated as hedging instruments. Hedging instruments are designated derivatives or (for a hedge of the risk of changes in foreign currency exchange rates only) designated non-derivative financial assets or non-derivative financial liabilities whose fair value or cash flows are expected to offset changes in the fair value or cash flows of a designated hedged item. [Refer: At fair value [member]; Derivatives [member]; Derivative financial assets; Derivative financial liabilities; Financial instruments, class [member]; Financial assets; Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expired 2023-01-01 -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 22 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_22_b&doctype=Standard&book=b -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinancialInstrumentsDesignatedAsHedgingInstrumentsAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The nominal amount of the hedging instruments in hedging relationships to which the entity is applying the exceptions in the scope of the amendments for interest rate benchmark reform. [Refer: Nominal amount of hedging instrument] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 24H -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24H_e&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition Nominal volume used to calculate payments on a derivative instrument. + References No definition available. + Details
Name: | ugp_DerivativeNonmonetaryNotionalAmountVolumeOne
Namespace Prefix: | ugp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_HeatingOilOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ifrs-full_ForwardContractMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_RBOBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_SoybeanOilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_SeaFreightMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_MarineFuelMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |