XML 100 R75.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Trade receivables, reseller financing and other receivables - Breakdown of Reseller Financing, Gross of Loss Allowance for Expected Credit Losses (Detail) - Reseller Financing - Ipiranga [member] - BRL (R$) R$ in Thousands | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | ---
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | R$ 1,189,886 | R$ 1,234,634
Current [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | 874,191 | 826,210
Less than 30 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | 8,890 | 8,944
31 to 60 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | 5,664 | 3,892
61-90 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | 7,869 | 11,040
91-180 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | 13,273 | 11,943
More than 180 days [member] |  |
Summary of trade receivables [line items] |  |
Reseller financing, gross of loss allowance for expected credit losses | R$ 279,999 | R$ 372,605

X
- Definition The amount of reseller financing, gross of allowance for doubtful accounts. + 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_ClassesOfFinancialAssetsAxis=ugp_ResellerFinancingIpirangaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_PastDueStatusAxis=ifrs-full_CurrentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_PastDueStatusAxis=ifrs-full_NotLaterThanOneMonthMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_PastDueStatusAxis=ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_PastDueStatusAxis=ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_PastDueStatusAxis=ifrs-full_LaterThanThreeMonthsAndNotLaterThanSixMonthsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_PastDueStatusAxis=ifrs-full_LaterThanSixMonthsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |