XML 224 R196.htm IDEA: XBRL DOCUMENT
v3.21.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, 2020 BRL (R$) | Dec. 31, 2020 USD ($) | Dec. 31, 2019 BRL (R$) | Dec. 31, 2019 USD ($)
Disclosure of detailed information about hedges [line items] |  |  |  |
Notional amount - R$ | $ |  | $ 90,000 |  | $ 90,000
Result of hedging instruments - gain/(loss) - R$ | R$ 6,528 |  | R$ 584 |
Fair value adjustment of debt - R$ | 3,250 |  | (208) |
Financial expense in the statements of profit or loss - R$ | R$ (8,968) |  | R$ (377) |
Average effective cost - DI % | 99.90% | 99.90% | 99.90% | 99.90%
Ipiranga [member] |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |
Notional amount - R$ | $ |  | $ 65,523 |  |
Result of hedging instruments - gain/(loss) - R$ | R$ (87,448) |  |  |
Fair value adjustment of inventories – R$ | 18,468 |  |  |
Foreign exchange hedging instruments [member] |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |
Notional amount - R$ | $ |  | $ 235,000 |  | $ 395,000
Result of hedging instruments - gain/(loss) - R$ | 574,378 |  | 79,466 |
Fair value adjustment of debt - R$ | (13,131) |  | (36,764) |
Financial expense in the statements of profit or loss - R$ | R$ (597,735) |  | R$ (130,320) |
Average effective cost - DI % | 104.10% | 104.10% | 104.40% | 104.40%
Interest rate hedging instruments [member] |  |  |  |
Disclosure of detailed information about hedges [line items] |  |  |  |
Notional amount - R$ | $ |  | $ 806,054 |  | $ 806,054
Result of hedging instruments - gain/(loss) - R$ | R$ 67,446 |  | R$ 72,957 |
Fair value adjustment of debt - R$ | (18,446) |  | (76,992) |
Financial expense in the statements of profit or loss - R$ | R$ (99,555) |  | R$ (68,054) |
Average effective cost - DI % | 95.80% | 95.80% | 95.80% | 95.80%

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain 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 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 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 Gain loss related to hedging instrument. + References No definition available. + Details
Name: | ugp_GainLossRelatedToHedgingInstrument
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Loss related to financial expense of debt. + References No definition available. + Details
Name: | ugp_LossRelatedToFinancialExpenseOfDebt
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Notional amount designated as fair value hedge. + References No definition available. + Details
Name: | ugp_NotionalAmountDesignatedAsFairValueHedge
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of average effective cost. + 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_InterestRateHedgingInstrumentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |