XML 32 R7.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Consolidated statement of cash flows - indirect method - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Cash flows from operating activities |  |  |
Net income from continuing operations | R$ 2,517,753 | R$ 1,538,211 | R$ 818,614
Adjustments to reconcile net income to cash provided by operating activities |  |  |
Share of profit (loss) of joint ventures and associates | (11,908) | (12,181) | 17,634
Amortization of contractual assets with customers – exclusivity rights | 607,446 | 504,907 | 282,521
Amortization of right-of-use assets | 305,900 | 288,419 | 260,716
Depreciation and amortization | 848,894 | 738,904 | 660,199
Interest and foreign exchange rate variations | 1,349,953 | 1,625,987 | 1,133,882
Deferred income and social contribution taxes | (335,375) | (296,459) | (242,246)
Current income and social contribution taxes | 1,396,321 | 637,973 | 430,280
Gain (loss) on disposal or write-off of property, plant and equipment, intangible assets and other assets | (192,744) | (322,190) | (184,189)
Reversal (loss) allowance for expected credit losses | (27,190) | (49,989) | (3,123)
Provision (reversal) for losses with inventories | (14,895) | 26,356 | (826)
Provision for post-employment benefits | (2,893) | 1,939 | (2,393)
Equity instrument granted | 38,909 | 9,944 | 9,364
Provision for decarbonization - CBIO | 740,298 | 638,542 | 161,281
Provisions for tax, civil and labor risks | 192,975 | 61,039 | 93,328
Other provisions and adjustments | (201) | 5,448 | 2,332
Cash flows from operations before changes in working capital | 7,413,243 | 5,396,850 | 3,437,374
(Increase) decrease in assets |  |  |
Trade receivables and reseller financing | 259,878 | (779,239) | (956,779)
Inventories | 645,301 | (1,004,819) | (1,626,670)
Recoverable taxes | (1,201,440) | (2,056,104) | (826,133)
Dividends received from subsidiaries and joint ventures | 12,041 | 146 | 1,005
Other assets | (87,797) | (224,379) | (19,392)
Increase (decrease) in liabilities |  |  |
Trade payables and trade payables – reverse factoring | (1,700,496) | 1,557,837 | 2,425,821
Salaries and related charges | 30,965 | 130,586 | 63,066
Taxes payable | (25,027) | (9,442) | 11,733
Other liabilities | 218,523 | 677,016 | (55,099)
Acquisition of CBIO | (778,885) | (635,130) | (176,837)
Payments of contractual assets with customers – exclusivity rights | (597,798) | (710,908) | (420,261)
Payments of contingencies | (70,128) | (84,939) | (24,351)
Income and social contribution taxes paid | (268,558) | (283,331) | (230,036)
Net cash provided by operating activities from continuing operations | 3,849,822 | 1,974,144 | 1,603,441
Net cash provided by operating activities from discontinued operations | 0 | 30,550 | 982,519
Net cash provided by operating activities | 3,849,822 | 2,004,694 | 2,585,960
Cash flows from investing activities |  |  |
Financial investments, net of redemptions | 73,973 | 1,567,962 | 1,863,053
Acquisition of property, plant and equipment | (1,012,639) | (929,236) | (1,028,419)
Acquisition of intangible assets | (274,691) | (277,600) | (237,488)
Receipt of intercompany loan owed by Oxiteno S.A. to Ultrapar International | 0 | 3,980,699 | 0
Net cash consumed by subsidiaries acquisition | (265,479) | (5,985) | 0
Transactions with discontinued operations | 0 | 987,895 | 0
Investment purchase and sale transactions and other assets | (38,143) | 0 |
Initial direct costs of right-of-use assets | (20,503) | (12,120) | (14,905)
Receipt from related parties | 0 | 0 | 2,334
Cash provided by disposal of investments and property, plant and equipment | 512,827 | 2,839,676 | 322,494
Capital increase in subsidiaries, associates and joint ventures | 0 | (28,000) | (25,700)
Capital decrease in subsidiaries, associates, and joint ventures | 3,100 | 0 | 1,500
Net cash provided (consumed) by investing activities from continuing operations | (1,021,555) | 8,123,291 | 882,869
Net cash consumed by investing activities from discontinued operations | 0 | (220,190) | (158,733)
Net cash provided (consumed) by investing activities | (1,021,555) | 7,903,101 | 724,136
Loans, financing and debentures |  |  |
Proceeds | 2,903,031 | 1,519,580 | 1,383,611
Repayments | (3,149,525) | (5,848,611) | (2,426,222)
Interest and derivatives paid | (1,267,447) | (1,398,229) | (733,791)
Payments of lease |  |  |
Principal | (213,527) | (351,011) | (304,975)
Interest paid | (145,586) | (6,868) | (15,267)
Dividends paid | (400,025) | (638,280) | (705,753)
Proceeds from financial liabilities of customers | 7,812 | 162,895 | 0
Payments of financial liabilities of customers | (197,891) | (173,948) | 0
Capital increase made by non-controlling interests and redemption of shares | 0 | 21,682 | 0
Related parties | (31,238) | (18,926) | (177)
Net cash consumed by financing activities from continuing operations | (2,494,396) | (6,731,716) | (2,802,574)
Net cash consumed by financing activities from discontinued operations | 0 | (179,025) | (552,967)
Net cash consumed by financing activities | (2,494,396) | (6,910,741) | (3,355,541)
Effect of exchange rate changes on cash and cash equivalents in foreign currency - continuing operations | (29,952) | (24,024) | (4,547)
Effect of exchange rate changes on cash and cash equivalents in foreign currency - discontinued operations | 0 | (19,316) | 56,553
Increase in cash and cash equivalents - continuing operations | 303,919 | 3,341,695 | 6,561
Decrease in cash and cash equivalents - discontinued operations | 0 | (387,981) | 0
Cash and cash equivalents at the beginning of the year - continuing operations | 5,621,769 | 2,280,074 | 2,661,494
Cash and cash equivalents at the beginning of the year - discontinued operations | 0 | 387,981 | 0
Cash and cash equivalents at the end of the year - continuing operations | 5,925,688 | 5,621,769 | 2,280,074
Cash and cash equivalents at the end of the year - discontinued operations | 0 | 0 | 387,981
Non-cash transactions: |  |  |
Contingent consideration – acquisition of subsidiaries | 0 | 89,640 | 0
Addition on right-of-use assets and leases payable | 257,201 | 482,439 | 227,977
Movement without cash effect of escrow deposits and provisions for tax, civil and labor risks | 0 | 41,888 | 0
Addition on contractual assets with customers – exclusivity rights | 66,565 | 63,061 | 269,725
Capital increase performed by non-controlling interests | 0 | 13,519 | 0
Reversal fund - private pension | 0 | 3,107 | 2,656
Transfer between trade receivables and property, plant and equipment | 25,646 | 0 | 0
Issuance of shares related to the subscription warrants – indemnification – Extrafarma acquisition | 411 | 942 | 1,819
Acquisition of property, plant and equipment and intangible assets without cash effect | R$ 104,177 | R$ 0 | R$ 0

X
- Definition Adjustments for decrease (increase) in inventories to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Inventories; Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForDecreaseIncreaseInInventories
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for decrease (increase) in other assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other assets; Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForDecreaseIncreaseInOtherAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for decrease (increase) in trade accounts receivable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for deferred tax expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Deferred tax expense (income); Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForDeferredTaxExpense
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for depreciation and amortisation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Depreciation and amortisation expense; Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for impairment loss (reversal of impairment loss) on trade and other receivables recognised in profit or loss to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Trade and other receivables; Impairment loss; Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss; Impairment loss (reversal of impairment loss) recognised in profit or loss] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossTradeAndOtherReceivables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in other liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other liabilities; Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in trade accounts payable to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for losses (gains) on disposal of non-current assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Non-current assets; Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 14 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_14&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | ifrs-full_AdjustmentsForReconcileProfitLossAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Adjustments for share-based payments to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForSharebasedPayments
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for undistributed profits of investments accounted for using the equity method to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Investments accounted for using equity method; Profit (loss)] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AdjustmentsForUndistributedProfitsOfInvestmentsAccountedForUsingEquityMethod
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of amortisation for assets recognised from the costs incurred to obtain or fulfil contracts with customers. [Refer: Assets recognised from costs to obtain or fulfil contracts with customers; Amortisation expense] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 15 -IssueDate 2023-01-01 -Paragraph 128 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_128_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_AmortisationAssetsRecognisedFromCostsIncurredToObtainOrFulfilContractsWithCustomers
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 45 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B13 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 54 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_i&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of cash and cash equivalents that are classified as a part of a disposal group held for sale. [Refer: Cash and cash equivalents; Disposal groups classified as held for sale [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 45 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_45&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashAndCashEquivalentsClassifiedAsPartOfDisposalGroupHeldForSale
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash flows from (used in) financing activities, which are activities that result in changes in the size and composition of the contributed equity and borrowings of the entity. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 10 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 50 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_50_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash flows from (used in) the entity's financing activities, related to continuing operations. [Refer: Continuing operations [member]; Cash flows from (used in) financing activities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInFinancingActivitiesContinuingOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash flows from (used in) the entity's financing activities, related to discontinued operations. [Refer: Discontinued operations [member]; Cash flows from (used in) financing activities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInFinancingActivitiesDiscontinuedOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash flows from (used in) investing activities, which are the acquisition and disposal of long-term assets and other investments not included in cash equivalents. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 10 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 50 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_50_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInInvestingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash flows from (used in) the entity's investing activities, related to continuing operations. [Refer: Continuing operations [member]; Cash flows from (used in) investing activities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInInvestingActivitiesContinuingOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash flows from (used in) the entity's investing activities, related to discontinued operations. [Refer: Discontinued operations [member]; Cash flows from (used in) investing activities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInInvestingActivitiesDiscontinuedOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash flows from (used in) operating activities, which are the principal revenue-producing activities of the entity and other activities that are not investing or financing activities. [Refer: Revenue] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 10 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_10&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 50 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_50_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInOperatingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash flows from (used in) the entity's operating activities, related to continuing operations. [Refer: Continuing operations [member]; Cash flows from (used in) operating activities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInOperatingActivitiesContinuingOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash flows from (used in) the entity's operating activities, related to discontinued operations. [Refer: Discontinued operations [member]; Cash flows from (used in) operating activities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 5 -IssueDate 2023-01-01 -Paragraph 33 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2023-en-r&anchor=para_33_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInOperatingActivitiesDiscontinuedOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash inflow (outflow) from the entity's operations before changes in working capital. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Section A Statement of cash flows for an entity other than a financial institution -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_A_TI -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 20 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_20&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The aggregate cash flows used in obtaining control of subsidiaries or other businesses, classified as investing activities. [Refer: Subsidiaries [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 39 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_39&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashFlowsUsedInObtainingControlOfSubsidiariesOrOtherBusinessesClassifiedAsInvestingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from repayment to the entity of loans and advances made to related parties. [Refer: Related parties [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 16 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashReceiptsFromRepaymentOfAdvancesAndLoansMadeToRelatedParties
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow for repayments of advances and loans from related parties. [Refer: Related parties [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashRepaymentsOfAdvancesAndLoansFromRelatedParties
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for dividends paid by the entity, classified as financing activities. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 31 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_DividendsPaidClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from dividends received, classified as operating activities. [Refer: Dividends received] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 31 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_31&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_DividendsReceivedClassifiedAsOperatingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow to acquire equity or debt instruments of other entities (other than payments for those instruments considered to be cash equivalents or those held for dealing or trading purposes), classified as investing activities. + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_OtherCashPaymentsToAcquireEquityOrDebtInstrumentsOfOtherEntitiesClassifiedAsInvestingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for payment of lease liabilities, classified as financing activities. [Refer: Lease liabilities] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_e&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from borrowings obtained. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from proceeds from contributions of non-controlling interests. [Refer: Non-controlling interests] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProceedsFromContributionsOfNoncontrollingInterests
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from the disposal of non-current assets or disposal groups classified as held for sale and discontinued operations. [Refer: Discontinued operations [member]; Disposal groups classified as held for sale [member]; Non-current assets or disposal groups classified as held for sale] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 16 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProceedsFromDisposalOfNoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSaleAndDiscontinuedOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The profit (loss) from continuing operations. [Refer: Continuing operations [member]; Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 28 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_28_b&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph B12 -Subparagraph b -Clause vi -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_B12_b_vi&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 8 -IssueDate 2023-01-01 -Paragraph 23 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2023-en-r&anchor=para_23&doctype=Standard -URIDate 2023-03-23 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 81A -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_81A_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProfitLossFromContinuingOperations
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for the purchases of intangible assets, classified as investing activities. [Refer: Intangible assets other than goodwill] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for the purchases of property, plant and equipment, classified as investing activities. [Refer: Property, plant and equipment] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_17_d&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Represents the acquisition of property, plant and equipment and intangible assets without cash effect. + References No definition available. + Details
Name: | ugp_AcquisitionOfPropertyPlantAndEquipmentAndIntangibleAssetsWithoutCashEffect
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for noncash addition on rightofuse assets and leases payable. + References No definition available. + Details
Name: | ugp_AdditionOnRightToUseAssetsAndLeasesPayable
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Adjustments for amortization of rightofuse assets to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForAmortizationOfRightOfUseAssets
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for current tax expense to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForCurrentTaxExpense
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for decrease (Increase) in recoverable taxes to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForDecreaseIncreaseInRecoverableTaxes
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in non-current liabilities from acquisition of decarbonization credits ("CBIO") to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForIncreaseDecreaseInAcquisitionOfDecarbonizationCredits
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in liabilities from income and social contribution taxes paid to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForIncreaseDecreaseInLiabilitiesFromIncomeAndSocialContributionTaxesPaid
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in noncurrent payables of contractual assets with customers exclusive rights to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForIncreaseDecreaseInNonCurrentPaymentsOfContractualAssetsWithCustomersExclusiveRights
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in non-current liabilities from payments of contingencies to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForIncreaseDecreaseInPaymentsOfContingencies
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in salaries and related charges to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForIncreaseDecreaseInSalariesAndRelatedCharges
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Adjustments for increase (decrease) in taxes payable to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForIncreaseDecreaseInTaxesPayable
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for interest and foreign exchange rate variations to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForInterestAndForeignExchangeRateVariations
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for non-cash addition on contractual assets with customers - exclusive rights to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForNonCashAdditionOnContractualAssetsWithCustomersExclusiveRights
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for non-cash reversion fund - private pension to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForNonCashReversionFundPrivatePension
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for other provisions and adjustments to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForOtherProvisionsAndAdjustments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for provision for losses in inventories to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForProvisionForLossesInInventories
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for provision for postemployment benefits to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForProvisionForPostemploymentBenefits
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for provision for tax, civil, and labor risks to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForProvisionForTaxCivilAndLaborRisks
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for provision of decarbonization to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_AdjustmentsForProvisionOfDecarbonization
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | ugp_BorrowingsClassifiedAsFinancingActivitiesAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow from capital increase in subsidiaries, associates, and joint ventures, classified as investing activities. + References No definition available. + Details
Name: | ugp_CashFlowsUsedForCapitalIncreaseInSubsidiariesAssociatesAndJointVenturesClassifiedAsInvestingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash inflow from repayment to the entity of loans made to related parties. + References No definition available. + Details
Name: | ugp_CashReceiptsFromRepaymentOfLoansMadeToRelatedParties
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The effect of exchange rate changes on cash and cash equivalents held or due - continuing operations. + References No definition available. + Details
Name: | ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsContinuingOperations
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The effect of exchange rate changes on cash and cash equivalents from discontinued operations, held or due in a foreign currency. + References No definition available. + Details
Name: | ugp_EffectOfExchangeRateChangesOnCashAndCashEquivalentsDiscontinuedOperations
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow for the financial investments, net of redemptions. + References No definition available. + Details
Name: | ugp_FinancialInvestmentsNetOfRedemptions
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustments for decrease (Increase) in recoverable taxes to reconcile profit (loss) to net cash flow from (used in) operating activities. + References No definition available. + Details
Name: | ugp_IncreaseDecreaseInAssetsAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The increase (decrease) in cash and cash equivalents from continuing operations. + References No definition available. + Details
Name: | ugp_IncreaseDecreaseInCashAndCashEquivalentsContinuingOperations
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The increase (decrease) in cash and cash equivalents from continuing operations. + References No definition available. + Details
Name: | ugp_IncreaseDecreaseInCashAndCashEquivalentsFromDiscontinuedOperations
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- References No definition available. + Details
Name: | ugp_IncreaseDecreaseInLiabilitiesAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow for initial direct costs of rightofuse assets, classified as investing activities. + References No definition available. + Details
Name: | ugp_InitialDirectCostsOfRightToUseAssets
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for interest paid on borrowings, classified as financing activities. + References No definition available. + Details
Name: | ugp_InterestPaidForBorrowingsClassifiedAsFinancingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The cash outflow for interest paid on lease liabilities, classified as financing activities. + References No definition available. + Details
Name: | ugp_InterestPaidForLeaseLiabilitiesClassifiedAsFinancingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The fair value of stock issued in noncash financing activities related to the subscription warrants indemnification for business combination. + References No definition available. + Details
Name: | ugp_IssuanceOfSharesRelatedToSubscriptionWarrantsIndemnificationForBusinessCombination
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The fair value of contingent consideration assumed in noncash related to the business combination. + References No definition available. + Details
Name: | ugp_NonCashContingentConsiderationInBusinessCombination
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The fair value of contributions received from non-controlling interests in noncash investing or financing activities. + References No definition available. + Details
Name: | ugp_NonCashContributionsOfNonControllingInterests
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The fair value of movement of escrow deposits and provision for tax, civil and labor risks in noncash investing or financing activities. + References No definition available. + Details
Name: | ugp_NonCashMovementOfEscrowDepositsAndProvisionForTaxCivilAndLaborRisks
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- References No definition available. + Details
Name: | ugp_NonCashTransactionsAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Represents the transfer between trade receivables and property, plant and equipment. + References No definition available. + Details
Name: | ugp_NonCashTransferBetweenTradeReceivablesAndPropertyPlantAndEquipment
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash outflow for payment of financial liabilities of customers, classified as financing activities. + References No definition available. + Details
Name: | ugp_PaymentsOfFinancialLiabilitiesOfCustomersClassifiedAsFinancingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- References No definition available. + Details
Name: | ugp_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivitiesAbstract
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash inflow from capital decrease in subsidiaries, associates, and joint ventures, classified as investing activities. + References No definition available. + Details
Name: | ugp_ProceedsFromCapitalDecreaseInSubsidiariesAssociatesAndJointVenturesClassifiedAsInvestingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from disposal of investments and property, plant and equipment, classified as investing activities. + References No definition available. + Details
Name: | ugp_ProceedsFromDisposalOfInvestmentsAndPropertyPlantAndEquipmentClassifiedAsInvestingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow from financial liabilities of customers. + References No definition available. + Details
Name: | ugp_ProceedsFromFinancialLiabilitiesOfCustomersClassifiedAsFinancingActivities
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration