XML 108 R89.htm IDEA: XBRL DOCUMENT
v3.23.1

Trade receivables, reseller financing and other receivables - Breakdown of Expected Losses on Doubtful Accounts (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | --- | --- | ---
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | R$ 173,287 | R$ 185,278 |  |
Reseller Financing - Ipiranga [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | 173,287 | 185,278 | R$ 197,011 | R$ 156,006
Reseller Financing - Ipiranga [member] | Current [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | 1,327 | 1,514 |  |
Reseller Financing - Ipiranga [member] | Less than 30 days [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | 483 | 6,410 |  |
Reseller Financing - Ipiranga [member] | 31 to 60 days [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | 1,132 | 8,697 |  |
Reseller Financing - Ipiranga [member] | 61-90 days [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | 3,704 | 6,255 |  |
Reseller Financing - Ipiranga [member] | 91-180 days [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | 4,937 | 9,892 |  |
Reseller Financing - Ipiranga [member] | More than 180 days [member] |  |  |  |
Summary of trade receivables [line items] |  |  |  |
Allowance for expected credit losses | R$ 161,704 | R$ 152,510 |  |

X
- Definition The amount of an allowance account used to record impairments to financial assets due to credit losses. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expiry date 2023-01-01 -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 16 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_16&doctype=Standard&book=b -URIDate 2022-03-24 + Details
Name: | ifrs-full_AllowanceAccountForCreditLossesOfFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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: |