XML 118 R90.htm IDEA: XBRL DOCUMENT
v3.21.1

Trade Receivables and Reseller Financing - Breakdown of Reseller Financing, Gross of Expected Losses on Doubtful Accounts (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | ---
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | R$ 1,165,395 | R$ 956,942
Current [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | 787,904 | 644,488
Less than 30 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | 10,230 | 26,262
From thirty 31 to 60 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | 15,237 | 10,481
From sixty one days to Ninety days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | 21,200 | 12,616
From 91 to180 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | 28,989 | 30,144
More than 180 Days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of expected losses on doubtful accounts | R$ 301,835 | R$ 232,951

X
- Definition Reseller Financing Gross + References No definition available. + Details
Name: | ugp_ResellerFinancingGross
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: | ifrs-full_MaturityAxis=ifrs-full_CurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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

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