XML 220 R197.htm IDEA: XBRL DOCUMENT
v3.20.1

Risks and Financial Instruments - summary of variation of derivative instruments hedging object (Detail) R$ in Thousands | Dec. 31, 2019 BRL (R$)
--- | ---
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 | 0
Scenario II [member] |
Disclosure of Variation For Derivative Instruments Of Hedging Object [Line Items] |
NDF of Commodities | 1,490,893
Gross margin from Ipiranga | (1,490,893)
NDF Commodities | 0
Scenario III [member] |
Disclosure of Variation For Derivative Instruments Of Hedging Object [Line Items] |
NDF of Commodities | 2,881,245
Gross margin from Ipiranga | (2,881,245)
NDF Commodities | R$ 0

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: |