XML 161 R142.htm IDEA: XBRL DOCUMENT
v3.23.1

Trade Payables - Summary of Trade Payables (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2022 | Dec. 31, 2021
--- | --- | ---
Summary of trade payables [line items] |  |
Trade payables to related parties | R$ 259,644 | R$ 214,178
Trade payables | 4,710,952 | 3,670,895
Trade payables – reverse factoring | 2,666,894 | 2,119,059
Domestic suppliers [member] |  |
Summary of trade payables [line items] |  |
Trade payables | 2,777,021 | 3,010,912
Foreign suppliers [member] |  |
Summary of trade payables [line items] |  |
Trade payables | 1,674,287 | 445,805
Domestic suppliers reverse factoring [member] |  |
Summary of trade payables [line items] |  |
Trade payables | 2,429,497 | 1,948,033
Foreign suppliers reverse factoring [member] |  |
Summary of trade payables [line items] |  |
Trade payables | 237,397 | 81,687
Trade payables reverse factoring [member] |  |
Summary of trade payables [line items] |  |
Trade payables to related parties | R$ 0 | R$ 89,339

X
- Definition The current amount of payment due to suppliers for goods and services used in entity's business. [Refer: Current liabilities; Trade payables] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 78 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_78&doctype=Standard -URIDate 2022-03-24 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 70 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_70&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of payables due to related parties. [Refer: Related parties [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 78 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_78&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_TradeAndOtherPayablesToRelatedParties
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition Trade current payables- reverse factoring. + References No definition available. + Details
Name: | ugp_TradeCurrentPayablesReverseFactoring
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ugp_TradePayablesAxis=ugp_DomesticSuppliersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_TradePayablesAxis=ugp_ForeignSuppliersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_TradePayablesAxis=ugp_DomesticSuppliersReverseFactoringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_TradePayablesAxis=ugp_ForeignSuppliersReverseFactoringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_TradePayablesAxis=ugp_TradePayablesRreverseFactoringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |