XML 200 R175.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Acquisition of Interest and Control﻿ - Schedule of the provisional balances of assets acquired and liabilities assumed on the acquisition date (Details) - BRL (R$) R$ in Thousands |  |  |  | 12 Months Ended |
--- | --- | --- | --- | --- | ---
Sep. 01, 2023 | Feb. 01, 2023 | Oct. 01, 2022 | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | Jul. 01, 2023
Comprised by |  |  |  |  |  |  |
Contingent consideration to be settled |  |  |  | R$ 112,196 |  |  |
Net cash outflow resulting from the acquisition |  |  |  |  |  |  |
Net cash consumed on investments acquisition |  |  |  | R$ 265,479 | R$ 5,985 | R$ 0 |
Ultragaz Comercial Ltda [member] | Stella GD Intermediação de Geração Distribuída de Energia Ltda [member] |  |  |  |  |  |  |
Assets |  |  |  |  |  |  |
Cash and cash equivalents |  |  | R$ 1,586 |  |  |  |
Receivables |  |  | 17 |  |  |  |
Other receivables |  |  | 119 |  |  |  |
Property, plant and equipment |  |  | 515 |  |  |  |
Intangible assets, net |  |  | 1,024 |  |  |  |
Liabilities |  |  |  |  |  |  |
Trade payables |  |  | 14 |  |  |  |
Salaries and related charges |  |  | 217 |  |  |  |
Taxes payable, income and social contribution taxes payable |  |  | 9 |  |  |  |
Other payables |  |  | 5,378 |  |  |  |
Goodwill based on expected future profitability |  |  | 103,051 |  |  |  |
Acquisition value |  |  | 100,694 |  |  |  |
Comprised by |  |  |  |  |  |  |
Cash |  |  | 7,560 |  |  |  |
Contingent consideration to be settled |  |  | 93,134 |  |  |  |
Total consideration |  |  | 100,694 |  |  |  |
Net cash outflow resulting from the acquisition |  |  |  |  |  |  |
Consideration in cash |  |  | 7,560 |  |  |  |
Cash and cash equivalents acquired |  |  | (1,586) |  |  |  |
Net cash consumed on investments acquisition |  |  | R$ 5,974 |  |  |  |
Companhia Ultragaz S A [member] | NEOgás do Brasil Gás Natural Comprimido S.A. ("NEOgás") [member] |  |  |  |  |  |  |
Assets |  |  |  |  |  |  |
Cash and cash equivalents |  | R$ 16,807 |  |  |  |  |
Receivables |  | 14,999 |  |  |  |  |
Inventories |  | 6,626 |  |  |  |  |
Recoverable taxes |  | 5,384 |  |  |  |  |
Judicial deposits |  | 131 |  |  |  |  |
Other receivables |  | 707 |  |  |  |  |
Right-of-use assets, net |  | 5,117 |  |  |  |  |
Property, plant and equipment |  | 104,700 |  |  |  |  |
Intangible assets, net |  | 52,604 |  |  |  |  |
Liabilities |  |  |  |  |  |  |
Loans and financing |  | 93,991 |  |  |  |  |
Trade payables |  | 17,600 |  |  |  |  |
Salaries and related charges |  | 2,341 |  |  |  |  |
Taxes payable, income and social contribution taxes payable |  | 860 |  |  |  |  |
Provisions for tax, civil and labor risks |  | 1,247 |  |  |  |  |
Leases payable |  | 5,191 |  |  |  |  |
Other payables |  | 3,884 |  |  |  |  |
Goodwill based on expected future profitability |  | 7,761 |  |  |  |  |
Acquisition value |  | 89,722 |  |  |  |  |
Comprised by |  |  |  |  |  |  |
Cash |  | 68,935 |  |  |  |  |
Contingent consideration to be settled |  | 20,787 |  |  |  |  |
Total consideration |  | 89,722 |  |  |  |  |
Net cash outflow resulting from the acquisition |  |  |  |  |  |  |
Initial consideration in cash |  | 64,263 |  |  |  |  |
Subsequent consideration in cash |  | 4,672 |  |  |  |  |
Cash and cash equivalents acquired |  | (16,807) |  |  |  |  |
Net cash consumed on investments acquisition |  | R$ 52,128 |  |  |  |  |
Ultracargo Logística S.A. | Terminal de Combustíveis Paulínia S.A. (“Opla”) [member] |  |  |  |  |  |  |
Liabilities |  |  |  |  |  |  |
Goodwill based on expected future profitability |  |  |  |  |  |  | R$ 158,634
Acquisition value |  |  |  |  |  |  | R$ 210,096
Ultrapar Empreendimentos Ltda. | Serra Diesel Transportador Revendedor Retalhista Ltda. [member] |  |  |  |  |  |  |
Assets |  |  |  |  |  |  |
Cash and cash equivalents | R$ 1,719 |  |  |  |  |  |
Receivables | 28,475 |  |  |  |  |  |
Inventories | 9,128 |  |  |  |  |  |
Recoverable taxes | 2,551 |  |  |  |  |  |
Other receivables | 55 |  |  |  |  |  |
Other investments | 298 |  |  |  |  |  |
Right-of-use assets, net | 25,500 |  |  |  |  |  |
Property, plant and equipment | 21,235 |  |  |  |  |  |
Intangible assets, net | 11,619 |  |  |  |  |  |
Liabilities |  |  |  |  |  |  |
Loans and financing | 17,337 |  |  |  |  |  |
Trade payables | 26,965 |  |  |  |  |  |
Salaries and related charges | 1,933 |  |  |  |  |  |
Taxes payable, income and social contribution taxes payable | 376 |  |  |  |  |  |
Leases payable | 25,500 |  |  |  |  |  |
Other payables | 8,194 |  |  |  |  |  |
Goodwill based on expected future profitability | 14,217 |  |  |  |  |  |
Non-controlling interests | 8,110 |  |  |  |  |  |
Assets acquired | 60,348 |  |  |  |  |  |
Liabilities assumed | (48,183) |  |  |  |  |  |
Acquisition value | 26,382 |  |  |  |  |  |
Comprised by |  |  |  |  |  |  |
Cash | 5,000 |  |  |  |  |  |
Acquisition of ownership interest via capital contribution (as non-controlling interests) | 16,193 |  |  |  |  |  |
Contingent consideration to be settled | 5,189 |  |  |  |  |  |
Total consideration | 26,382 |  |  |  |  |  |
Net cash outflow resulting from the acquisition |  |  |  |  |  |  |
Initial consideration in cash | 5,000 |  |  |  |  |  |
Cash and cash equivalents acquired | (1,719) |  |  |  |  |  |
Net cash consumed on investments acquisition | R$ 3,281 |  |  |  |  |  |

X
- Definition The fair value, at acquisition date, of the consideration transferred in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph f -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_f&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Definition The amount recognised as of the acquisition date for borrowings assumed in a business combination. [Refer: Borrowings; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of cash and cash equivalents in subsidiaries or other businesses over which control is obtained or lost. [Refer: Subsidiaries [member]; Cash and cash equivalents] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 40 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_40_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashAndCashEquivalentsInSubsidiaryOrBusinessesAcquiredOrDisposed2013
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount recognised as of the acquisition date for cash and cash equivalents acquired in a business combination. [Refer: Cash and cash equivalents; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 fair value, at acquisition date, of cash transferred as consideration in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph f -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_f_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_CashTransferred
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount, at acquisition date, of contingent consideration arrangements recognised as consideration transferred in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph g -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_g_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_ContingentConsiderationRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of contingent liabilities recognised as of the acquisition date in a business combination. [Refer: Contingent liabilities [member]; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph IE72 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples -URIDate 2023-03-23 + Details
Name: | ifrs-full_ContingentLiabilitiesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fair value, at the acquisition date, of equity interests of the acquirer transferred as consideration in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph f -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_f_iv&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_EquityInterestsOfAcquirer
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fair value of receivables acquired in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph h -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_h_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_FairValueOfAcquiredReceivables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the business combination's acquisition date for goodwill. [Refer: Goodwill; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph IE72 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_GoodwillRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for net identifiable assets acquired or liabilities assumed in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph IE72 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples -URIDate 2023-03-23 + Details
Name: | ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for identifiable intangible assets acquired in a business combination. [Refer: Intangible assets other than goodwill; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph IE72 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples -URIDate 2023-03-23 + Details
Name: | ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for inventory acquired in a business combination. [Refer: Inventories; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph IE72 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples -URIDate 2023-03-23 + Details
Name: | ifrs-full_InventoryRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of non-controlling interest in the acquiree recognised at the acquisition date for business combinations in which the acquirer holds less than 100 per cent of the equity interests in the acquiree at the acquisition date. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph o -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_o_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_NoncontrollingInterestInAcquireeRecognisedAtAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The portion of consideration paid or received, consisting of cash and cash equivalents, in respect of both obtaining and losing control of subsidiaries or other businesses. [Refer: Subsidiaries [member]; Cash and cash equivalents; Consideration paid (received)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 40 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_40_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_PortionOfConsiderationPaidReceivedConsistingOfCashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount recognised as of the acquisition date for plant, property and equipment acquired in a business combination. [Refer: Property, plant and equipment; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph IE72 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_IE72&doctype=Illustrative%20Examples -URIDate 2023-03-23 + Details
Name: | ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for trade and other payables assumed in a business combination. [Refer: Trade and other payables; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B64 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

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

X
- Definition The amount recognised as of the acquisition date for employee benefit liabilities assumed in a business combination. + References No definition available. + Details
Name: | ugp_EmployeeBenefitLiabilitiesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for judicial deposits acquired in a business combination. + References No definition available. + Details
Name: | ugp_JudicialDepositsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for leases payable assumed in a business combination. + References No definition available. + Details
Name: | ugp_LeasesPayableRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for net assets acquired in a business combination. + References No definition available. + Details
Name: | ugp_NetAssetsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for net liabilities assumed in a business combination. + References No definition available. + Details
Name: | ugp_NetLiabilitiesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for other investments acquired in a business combination. + References No definition available. + Details
Name: | ugp_OtherInvestmentsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for other payables assumed in a business combination. + References No definition available. + Details
Name: | ugp_OtherPayablesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for other receivables acquired in a business combination. + References No definition available. + Details
Name: | ugp_OtherReceivablesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition Portion of initial consideration paid consisting of cash and cash equivalents + References No definition available. + Details
Name: | ugp_PortionOfInitialConsiderationPaidConsistingOfCashAndCashEquivalents
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Portion of subsequent consideration paid consisting of cash and cash equivalents + References No definition available. + Details
Name: | ugp_PortionOfSubsequentConsiderationPaidConsistingOfCashAndCashEquivalents
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount recognised as of the acquisition date for right-of-use assets, net acquired in a business combination. + References No definition available. + Details
Name: | ugp_RightOfUseAssetsNetRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for tax assets acquired in a business combination. + References No definition available. + Details
Name: | ugp_TaxAssetsRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as of the acquisition date for tax liabilities assumed in a business combination. + References No definition available. + Details
Name: | ugp_TaxLiabilitiesRecognisedAsOfAcquisitionDate
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ugp_UltragazComercialLtdaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BusinessCombinationsAxis=ugp_StellaGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ugp_CompanhiaUltragazMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BusinessCombinationsAxis=ugp_NeogasGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ugp_UltracargoLogisticaSAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BusinessCombinationsAxis=ugp_OplaGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ugp_UltraparEmpreendimentosLtdaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_BusinessCombinationsAxis=ugp_SerraDieselGroupMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |