XML 196 R171.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Risks and Financial Instruments - Summary of foreign exchange hedging instruments designated as fair value hedge (Detail) € in Thousands, ¥ in Thousands, R$ in Thousands, $ in Thousands | 12 Months Ended |  |  |
--- | --- | --- | --- | ---
Dec. 31, 2023 BRL (R$) | Dec. 31, 2023 USD ($) | Dec. 31, 2022 BRL (R$) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 BRL (R$) | Dec. 31, 2021 USD ($) | Dec. 31, 2023 EUR (€) | Dec. 31, 2023 JPY (¥) | Dec. 31, 2023 BRL (R$) | Dec. 31, 2023 USD ($) | Dec. 31, 2022 EUR (€) | Dec. 31, 2022 JPY (¥) | Dec. 31, 2022 BRL (R$) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 EUR (€) | Dec. 31, 2021 JPY (¥) | Dec. 31, 2021 BRL (R$) | Dec. 31, 2021 USD ($)
Ipiranga [member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Notional amount | $ |  |  |  |  |  |  |  |  |  | $ 341,074 |  |  |  | $ 309,113 |  |  |  | $ 188,621
Result of hedging instruments - gain/(loss) - R$ | R$ (62,064) |  | R$ (891,223) |  | R$ (129,670) |  |  |  |  |  |  |  |  |  |  |  |  |
Adjustment of inventory fair value - US$ | $ |  | $ 61,625 |  | $ 34,126 |  | $ (4,352) |  |  |  |  |  |  |  |  |  |  |  |
Foreign exchange hedging instruments [member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Notional amount | $ |  |  |  |  |  |  |  |  |  | $ 206,067 |  |  |  | $ 221,339 |  |  |  | $ 175,000
Result of hedging instruments - gain/(loss) - R$ | (223,555) |  | (142,863) |  | 21,812 |  |  |  |  |  |  |  |  |  |  |  |  |
Fair value adjustment of debt - R$ | (3,768) |  | 28,000 |  | 47,064 |  |  |  |  |  |  |  |  |  |  |  |  |
Financial result of the debt - R$ | R$ 117,983 |  | R$ 28,291 |  | R$ (105,059) |  |  |  |  |  |  |  |  |  |  |  |  |
Average effective cost - DI % | 110.00% | 110.00% | 107.00% | 107.00% | 105.00% | 105.00% |  |  |  |  |  |  |  |  |  |  |  |
Foreign exchange swap two [member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Notional amount | € |  |  |  |  |  |  | € 22,480 |  |  |  | € 9,709 |  |  |  | € 0 |  |  |
Result of hedging instruments - gain/(loss) - R$ | R$ (23,304) |  | R$ 2,573 |  | R$ 0 |  |  |  |  |  |  |  |  |  |  |  |  |
Fair value adjustment of debt - R$ | 230 |  | (8) |  | 0 |  |  |  |  |  |  |  |  |  |  |  |  |
Financial result of the debt - R$ | R$ 2,756 |  | R$ 0 |  | R$ 0 |  |  |  |  |  |  |  |  |  |  |  |  |
Average effective cost - DI % | 112.00% | 112.00% | 112.00% | 112.00% | 0.00% | 0.00% |  |  |  |  |  |  |  |  |  |  |  |
Foreign exchange swap three [member] | Ipiranga [member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Notional amount | ¥ |  |  |  |  |  |  |  | ¥ 12,564,393 |  |  |  | ¥ 0 |  |  |  | ¥ 0 |  |
Result of hedging instruments - gain/(loss) - R$ | R$ (130,726) |  | R$ 0 |  | R$ 0 |  |  |  |  |  |  |  |  |  |  |  |  |
Fair value adjustment of debt - R$ | (4,775) |  | 0 |  | 0 |  |  |  |  |  |  |  |  |  |  |  |  |
Financial result of the debt - R$ | R$ 63,670 |  | R$ 0 |  | R$ 0 |  |  |  |  |  |  |  |  |  |  |  |  |
Average effective cost - DI % | 109.00% | 109.00% | 0.00% | 0.00% | 0.00% | 0.00% |  |  |  |  |  |  |  |  |  |  |  |
Interest rate hedging instruments [member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Notional amount |  |  |  |  |  |  |  |  | R$ 3,226,054 |  |  |  | R$ 3,226,054 |  |  |  | R$ 2,226,054 |
Result of hedging instruments - gain/(loss) - R$ | R$ 262,920 |  | R$ (143,762) |  | R$ (17,922) |  |  |  |  |  |  |  |  |  |  |  |  |
Fair value adjustment of debt - R$ | (313,641) |  | (44,312) |  | 166,374 |  |  |  |  |  |  |  |  |  |  |  |  |
Financial result of the debt - R$ | R$ (353,080) |  | R$ (293,955) |  | R$ (245,710) |  |  |  |  |  |  |  |  |  |  |  |  |
Average effective cost - DI % | 102.90% | 102.90% | 102.90% | 102.90% | 102.00% | 102.00% |  |  |  |  |  |  |  |  |  |  |  |
Interest rate swap contract one [member] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Notional amount |  |  |  |  |  |  |  |  | R$ 615,791 |  |  |  | R$ 90,000 |  |  |  | R$ 90,000 |
Result of hedging instruments - gain/(loss) - R$ | R$ 8,074 |  | R$ (5,069) |  | R$ (10,088) |  |  |  |  |  |  |  |  |  |  |  |  |
Fair value adjustment of debt - R$ | (10,163) |  | (486) |  | 11,756 |  |  |  |  |  |  |  |  |  |  |  |  |
Financial result of the debt - R$ | R$ (16,637) |  | R$ (6,330) |  | R$ (5,914) |  |  |  |  |  |  |  |  |  |  |  |  |
Average effective cost - DI % | 103.60% | 103.60% | 99.90% | 99.90% | 99.90% | 99.90% |  |  |  |  |  |  |  |  |  |  |  |

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

X
- Definition The gain (loss) on the change in fair value of the hedging instrument used as a basis for recognising hedge ineffectiveness. Hedge ineffectiveness is the extent to which the changes in the fair value or the cash flows of the hedging instrument are greater or less than those on the hedged item. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 24A -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_24A_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_GainLossOnChangeInFairValueOfHedgingInstrumentUsedAsBasisForRecognisingHedgeIneffectiveness
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The nominal or face amount of a financial instrument, used to calculate payments made on that instrument. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 112 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_112_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_NotionalAmount
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of gain (loss) related to fair value adjustment of debt. + References No definition available. + Details
Name: | ugp_GainLossRelatedToFairValueAdjustmentOfDebt
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of gain (loss) related to fair value adjustment of inventories. + References No definition available. + Details
Name: | ugp_GainLossRelatedToFairValueAdjustmentOfInventories
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of interest income (expense) on financial liabilities designated at fair value through profit or loss. + References No definition available. + Details
Name: | ugp_InterestIncomeExpenseOnFinancialLiabilitiesDesignatedAtFairValueThroughProfitOrLoss
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The percentage of average effective cost of hedging instruments designated as fair value hedge. + References No definition available. + Details
Name: | ugp_PercentageOfAverageEffectiveCost
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_IpirangaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_HedgingInstrumentsAxis=ugp_ForeignExchangeHedgingInstrumentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_HedgingInstrumentsAxis=ugp_ForeignExchangeSwapTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_HedgingInstrumentsAxis=ugp_ForeignExchangeSwapThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_HedgingInstrumentsAxis=ugp_InterestRateHedgingInstrumentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_HedgingInstrumentsAxis=ugp_InterestRateSwapContractOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |