XML 204 R185.htm IDEA: XBRL DOCUMENT
v3.23.1

Risks and Financial Instruments - Summary of foreign exchange hedging instruments designated as fair value hedge (Detail) R$ in Thousands, $ in Thousands | 12 Months Ended |  |
--- | --- | --- | ---
Dec. 31, 2022 BRL (R$) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 BRL (R$) | Dec. 31, 2021 USD ($) | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($)
Ipiranga [member] |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |
Notional amount | $ |  |  |  |  | $ 309,113 | $ 188,621
Result of hedging instruments - gain/(loss) - R$ | R$ (891,223) |  | R$ (129,670) |  |  |
Adjustment of inventory fair value - US$ | $ |  | $ 34,126 |  | $ (4,352) |  |
Foreign exchange hedging instruments [member] |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |
Notional amount | $ |  |  |  |  | $ 221,339 | $ 175,000
Result of hedging instruments - gain/(loss) - R$ | (142,863) |  | 21,812 |  |  |
Fair value adjustment of debt - R$ | 28,000 |  | 47,064 |  |  |
Financial result of the debt - R$ | R$ 28,291 |  | R$ (105,059) |  |  |
Average effective cost - DI % | 107.00% | 107.00% | 104.90% | 104.90% |  |
Foreign exchange swap two [member] |  |  |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |  |  |
Notional amount | R$ 9,709 |  | R$ 0 |  |  |
Result of hedging instruments - gain/(loss) - R$ | 2,573 |  | 0 |  |  |
Fair value adjustment of debt - R$ | R$ (8) |  | R$ 0 |  |  |
Average effective cost - DI % | 112.00% | 112.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$ 2,226,054 |  |  |
Result of hedging instruments - gain/(loss) - R$ | (143,762) |  | (17,922) |  |  |
Fair value adjustment of debt - R$ | (44,312) |  | 166,374 |  |  |
Financial result of the debt - R$ | R$ (293,955) |  | R$ (245,710) |  |  |
Average effective cost - DI % | 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$ 90,000 |  | R$ 90,000 |  |  |
Result of hedging instruments - gain/(loss) - R$ | (5,069) |  | (10,088) |  |  |
Fair value adjustment of debt - R$ | (486) |  | 11,756 |  |  |
Financial result of the debt - R$ | R$ (6,330) |  | R$ (5,914) |  |  |
Average effective cost - DI % | 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 2022-03-24 -Paragraph 24A -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_24A_c&doctype=Standard -URIDate 2022-03-24 + 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 2022-03-24 -Paragraph 112 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_112_c&doctype=Standard -URIDate 2022-03-24 + 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_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: |