XML 230 R201.htm IDEA: XBRL DOCUMENT
v3.22.1

Risks and Financial Instruments - Value of gains (losses) recognized (Detail) - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Profit or loss [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments |  | R$ (285,621) | R$ (694,877) | R$ (37,800)
Profit or loss [member] | Currency swaps receivable in U.S. dollars and commodities [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [1],[2] | (205,680) | 497,210 | 230,000
Profit or loss [member] | Exchange rate derivates payable in U.S. dollars [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [2] |  | (330,999) | (1,667)
Profit or loss [member] | Interest rate swaps in R$ [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [3] | (101,488) | 58,131 | (4,035)
Profit or loss [member] | Non-derivative financial instruments [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [4] | 21,547 | (919,219) | (262,098)
Equity [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments |  | (753,655) | (737,391) | (349,039)
Equity [member] | Currency swaps receivable in U.S. dollars and commodities [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [1],[2] |  |  |
Equity [member] | Exchange rate derivates payable in U.S. dollars [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [2] |  | 80 | (80)
Equity [member] | Interest rate swaps in R$ [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [3] |  |  |
Equity [member] | Non-derivative financial instruments [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Gains (losses) on hedging instruments | [4] | R$ (753,655) | R$ (737,471) | R$ (348,959)
[1] | D oes not consider the effect of exchange rate variation of exchange S waps receivable in U.S. dollars when this effect is offset in the gain or loss of the hedged item (debt/firm commitments).
[2] | Considers the designation effect of foreign exchange hedging.
[3] | C onsiders the designation effect of interest rate hedging in Brazilian Reais; and
[4] | Considers the results of notes in the foreign market (for more information see Note 17.b).

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 gains (losses) on hedging instruments in fair value hedges. [Refer: Fair value hedges [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expiry date 2023-01-01 -Name IFRS -Number 7 -IssueDate 2021-01-01 -Paragraph 24 -Subparagraph a -Clause i -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_24_a_i&doctype=Standard&book=b -URIDate 2021-03-24 + Details
Name: | ifrs-full_GainsLossesOnHedgingInstrument
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

X
- Details
Name: | ugp_HedgingInstrumentRatesAxis=ugp_ExchangeRateSwapReceivableInUSDollarsAndCommoditiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_HedgingInstrumentRatesAxis=ugp_ExchangeRateDerivatesPayableInUSDollarsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_HedgingInstrumentRatesAxis=ugp_InterestRateSwapsBrlMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_HedgingInstrumentRatesAxis=ugp_NonDerivativeFinancialInstrumentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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