XML 117 R89.htm IDEA: XBRL DOCUMENT
v3.21.1

Trade Receivables and Reseller Financing - Composition of Reseller Financing (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | ---
Summary of trade receivables [line items] |  |
Reseller financing | R$ 968,384 | R$ 800,936
Current | 549,129 | 436,188
Non-current | 419,255 | 364,748
Reseller Financing - Ipiranga [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing | 1,165,395 | 956,942
Expected losses on doubtful accounts [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing | R$ (197,011) | R$ (156,006)

X
- Definition The amount of current reseller financing. + References No definition available. + Details
Name: | ugp_CurrentResellerFinancing
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of non-current reseller financing. + References No definition available. + Details
Name: | ugp_NonCurrentResellerFinancing
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Reseller financing current and noncurrent. + References No definition available. + Details
Name: | ugp_ResellerFinancing
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Summary of trade receivables. + References No definition available. + Details
Name: | ugp_SummaryOfTradeReceivablesLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ugp_TradeReceivablesAxis=ugp_ResellerFinancingIpirangaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_TradeReceivablesAxis=ugp_ExpectedLossesOnDoubtfulAccountsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |