XML 222 R194.htm IDEA: XBRL DOCUMENT
v3.21.1

Risks and Financial Instruments - Contractual undiscounted cash outflows (Parenthetical) (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2020 R$ / shares
2020 [member] |
Summary of risks and financial instruments [line items] |
TJLP rate | 4.39%
2021 [member] |
Summary of risks and financial instruments [line items] |
DI rate | 2.29%
Exchange rate of the Real against the U.S. dollar | 4.86
IGP-M rate | 4.79%
IPCA rate | 3.60%
2022 [member] |
Summary of risks and financial instruments [line items] |
DI rate | 3.74%
Exchange rate of the Real against the U.S. dollar | 4.33
IGP-M rate | 4.02%
IPCA rate | 3.30%
2023 [member] |
Summary of risks and financial instruments [line items] |
DI rate | 4.84%
Exchange rate of the Real against the U.S. dollar | 4.17
IGP-M rate | 3.25%
IPCA rate | 3.00%
2024 [member] |
Summary of risks and financial instruments [line items] |
Exchange rate of the Real against the U.S. dollar | 4.20
2025 [member] |
Summary of risks and financial instruments [line items] |
Exchange rate of the Real against the U.S. dollar | 4.22
2026 [member] |
Summary of risks and financial instruments [line items] |
Exchange rate of the Real against the U.S. dollar | 4.24
2027 [member] |
Summary of risks and financial instruments [line items] |
Exchange rate of the Real against the U.S. dollar | 4.26
2028 [member] |
Summary of risks and financial instruments [line items] |
Exchange rate of the Real against the U.S. dollar | 4.28
2029 [member] |
Summary of risks and financial instruments [line items] |
Exchange rate of the Real against the U.S. dollar | 4.30

X
- Definition The average exchange rate used by the entity. Exchange rate is the ratio of exchange for two currencies. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2019-01-01 -Paragraph 112 -Subparagraph c -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2019-en-r&anchor=para_112_c&doctype=Standard -URIDate 2019-03-27 + Details
Name: | ifrs-full_AverageForeignExchangeRate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:decimalItemType
Balance Type: | na
Period Type: | duration

X
- Definition DI rate. + References No definition available. + Details
Name: | ugp_DiRate
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition IGP-M rate + References No definition available. + Details
Name: | ugp_IGPMRate
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition IPCA rate + References No definition available. + Details
Name: | ugp_IPCARate
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
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
- Definition TJLP rate + References No definition available. + Details
Name: | ugp_TJLPRate
Namespace Prefix: | ugp_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyThreeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyFourMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyFiveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentySixMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentySevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyEightMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ugp_TwentyTwentyNineMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |