XML 202 R177.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Acquisition of Interest and Control - Schedule of breakdown of the acquisition value, considering the working capital and net debt adjustments and primary contribution (Details) - BRL (R$) R$ in Thousands |  |  | 12 Months Ended
--- | --- | --- | ---
Jul. 01, 2023 | Feb. 01, 2023 | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Acquisition of Interest and Control |  |  |  |  |
Net cash consumed on investments acquisition |  |  | R$ 265,479 | R$ 5,985 | R$ 0
Companhia Ultragaz S A [member] | NEOgás do Brasil Gás Natural Comprimido S.A. ("NEOgás") [member] |  |  |  |  |
Acquisition of Interest and Control |  |  |  |  |
Amount of NEOgás’ purchase and sale agreement |  | R$ 165,000 |  |  |
Working capital and net debt estimated adjustments |  | 10,012 |  |  |
Primary contribution |  | (85,290) |  |  |
Net cash consumed on investments acquisition |  | 52,128 |  |  |
Net cash consumed on investments acquisition |  | 89,722 |  |  |
Goodwill on the transaction |  | 7,761 |  |  |
Acquisition value |  | R$ 89,722 |  |  |
Ultracargo Logística S.A. | Terminal de Combustíveis Paulínia S.A. (“Opla”) [member] |  |  |  |  |
Acquisition of Interest and Control |  |  |  |  |
Amount of NEOgás’ purchase and sale agreement | R$ 237,500 |  |  |  |
Net cash consumed on investments acquisition | 210,096 |  |  |  |
Equity of the acquired investee | 51,462 |  |  |  |
Goodwill on the transaction | 158,634 |  |  |  |
Acquisition value | R$ 210,096 |  |  |  |

X
- Definition The acquisition-date fair value of equity interest in the acquiree held by the acquirer immediately before the acquisition date in a business combination achieved in stages. [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 p -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B64_p_i&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_AcquisitiondateFairValueOfEquityInterestInAcquireeHeldByAcquirerImmediatelyBeforeAcquisitionDate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 amount of consideration paid or received in respect of both obtaining and losing control of subsidiaries or other businesses. [Refer: Subsidiaries [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2023-01-01 -Paragraph 40 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_40_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ConsiderationPaidReceived
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfBusinessCombinationsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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 of measurement period adjustments recognised for particular assets, liabilities, non-controlling interests or items of consideration if the initial accounting for a business combination is incomplete. The measurement period is the period after the acquisition date during which the acquirer may adjust the provisional amounts recognised for a business combination. [Refer: Non-controlling interests; Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2023-01-01 -Paragraph B67 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2023-en-r&anchor=para_B67_a_iii&doctype=Appendix&subtype=B -URIDate 2023-03-23 + Details
Name: | ifrs-full_MeasurementPeriodAdjustmentsRecognisedForParticularAssetsLiabilitiesNoncontrollingInterestsOrItemsOfConsideration
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of purchase price upon purchase and sale agreement of expected business acquisition prior to consideration being transferred. + References No definition available. + Details
Name: | ugp_BusinessCombinationPriceOfAcquisitionExpectedUponPurchaseAndSaleAgreement
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of primary contribution paid in business acquisition. + References No definition available. + Details
Name: | ugp_PrimaryContributionPaid
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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: |