XML 225 R197.htm IDEA: XBRL DOCUMENT
v3.21.1

Risks and Financial Instruments - Value of gains (losses) recognized (Detail) - BRL (R$) | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Profit or loss [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | R$ (694,877,000) | R$ (37,800,000) | R$ 56,163,000
Profit or loss [member] | Exchange rate derivates receivable in U.S. dollars and commodities [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | 497,210,000 | 230,000,000 |
Profit or loss [member] | Exchange Rate Swap Receivable In U S Dollars [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments |  |  | 181,544,000
Profit or loss [member] | Exchange rate swap payable in us dollars [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | (330,999,000) | (1,667,000) | (3,903)
Profit or loss [member] | Interest rate swaps brl [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | 58,131,000 | (4,035,000) | 12,474,000
Profit or loss [member] | Nonderivative Financial Instruments [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | (919,219,000) | (262,098,000) | (133,951,000)
Equity [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | (737,391,000) | (349,039,000) | (289,448,000)
Equity [member] | Exchange rate derivates receivable in U.S. dollars and commodities [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments |  |  |
Equity [member] | Exchange Rate Swap Receivable In U S Dollars [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments |  |  |
Equity [member] | Exchange rate swap payable in us dollars [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | 80,000 | (80,000) | 176,000
Equity [member] | Interest rate swaps brl [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments |  |  |
Equity [member] | Nonderivative Financial Instruments [member] |  |  |
Summary of risks and financial instruments [line items] |  |  |
Gain (loss) on hedging instruments | R$ (737,471,000) | R$ (348,959,000) | R$ (284,624,000)

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 2021-01-01 -Name IFRS -Number 7 -IssueDate 2019-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 2019-03-27 + Details
Name: | ifrs-full_GainsLossesOnHedgingInstrument
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Summary of risks and financial instruments. + References No definition available. + Details
Name: | ugp_SummaryOfRisksAndFinancialInstrumentsLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
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_ExchangeRateSwapReceivableInUSDollarsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_HedgingInstrumentRatesAxis=ugp_ExchangeRateSwapPayableInUsDollarsMember
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: |