XML 217 R189.htm IDEA: XBRL DOCUMENT
v3.21.1

Risks and Financial Instruments - Allowance for doubtful accounts on trade receivables (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | ---
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | R$ 579,107 | R$ 560,892
Ipiranga [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 447,389 | 447,235
Ultragaz [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 113,621 | 94,985
Oxiteno [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 16,430 | 13,252
Extrafarma [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 73 | 3,419
Ultracargo [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | R$ 1,594 | R$ 2,001

X
- Definition Balance of allowance for doubtful accounts. + References No definition available. + Details
Name: | ugp_AllowancesForDoubfulAccountsOnTradeReceivable
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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_SegmentsAxis=ugp_IpirangaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_UltragazMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_OxitenoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_ExtrafarmaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_UltracargoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |