XML 229 R201.htm IDEA: XBRL DOCUMENT
v3.21.1

Risks and Financial Instruments - summary of variation of derivative instruments hedging object (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | ---
Scenario I [member] |  |
Disclosure of Variation For Derivative Instruments Of Hedging Object [Line Items] |  |
NDF of Commodities |  | R$ 100,542
Gross margin from Ipiranga |  | (100,542)
NDF Commodities |  |
Scenario II [member] |  |
Disclosure of Variation For Derivative Instruments Of Hedging Object [Line Items] |  |
NDF of Commodities | 551,794 | 1,490,893
Gross margin from Ipiranga | (551,794) | (1,490,893)
NDF Commodities |  |
Scenario III [member] |  |
Disclosure of Variation For Derivative Instruments Of Hedging Object [Line Items] |  |
NDF of Commodities | 1,103,589 | 2,881,245
Gross margin from Ipiranga | (1,103,589) | (2,881,245)
NDF Commodities |  |

X
- Definition Disclosure of Variation For Derivative Instruments Of Hedging Object [Line Items]. + References No definition available. + Details
Name: | ugp_DisclosureOfVariationForDerivativeInstrumentsOfHedgingObjectLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fixed NDF Commodities Net Effect. + References No definition available. + Details
Name: | ugp_FixedNdfCommoditiesNetEffect
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Gross Margin From Ipiranga NDF Commodities. + References No definition available. + Details
Name: | ugp_GrossMarginFromIpirangaNdfCommodities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition NDF Of Commodities. + References No definition available. + Details
Name: | ugp_NdfOfCommodities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ugp_ScenarioAxis=ugp_Scenario1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_ScenarioAxis=ugp_Scenario2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_ScenarioAxis=ugp_Scenario3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |