XML 177 R158.htm IDEA: XBRL DOCUMENT
v3.23.1

Equity - Balance of Other Comprehensive Income (Detail) - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Valuation Adjustments |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | R$ (422,138) | R$ (464,990) | R$ (146,317)
Changes in fair value of financial instruments | 911,954 | 11,364 | (477,506)
IRPJ and CSLL on fair value | (309,503) | (4,060) | 164,425
Actuarial gain (loss) of post-employment benefits | 610 | 49,550 | (7,725)
IRPJ and CSLL on actuarial gains | 271 | (14,002) | 2,133
Ending balance | 179,974 | (422,138) | (464,990)
Fair value of cash flow hedging instruments [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | (601,301) | (609,277) | (296,132)
Changes in fair value of financial instruments | 910,804 | 12,036 | (477,570)
IRPJ and CSLL on fair value | (309,503) | (4,060) | 164,425
Actuarial gain (loss) of post-employment benefits | 0 | 0 | 0
IRPJ and CSLL on actuarial gains | 0 | 0 | 0
Ending balance | 0 | (601,301) | (609,277)
Fair value of financial instruments [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | (403) | 269 | 205
Changes in fair value of financial instruments | 403 | (672) | 64
IRPJ and CSLL on fair value | 0 | 0 | 0
Actuarial gain (loss) of post-employment benefits | 0 | 0 | 0
IRPJ and CSLL on actuarial gains | 0 | 0 | 0
Ending balance | 0 | (403) | 269
Actuarial gains (losses) of post-employment benefits [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | (17,803) | (53,351) | (47,759)
Changes in fair value of financial instruments | 0 | 0 | 0
IRPJ and CSLL on fair value | 0 | 0 | 0
Actuarial gain (loss) of post-employment benefits | (610) | 49,550 | (7,725)
IRPJ and CSLL on actuarial gains | 271 | (14,002) | 2,133
Ending balance | (18,142) | (17,803) | (53,351)
Non-controlling shareholders interest change [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | 197,369 | 197,369 | 197,369
Changes in fair value of financial instruments | 0 | 0 | 0
IRPJ and CSLL on fair value | 0 | 0 | 0
Actuarial gain (loss) of post-employment benefits | 0 | 0 | 0
IRPJ and CSLL on actuarial gains | 0 | 0 | 0
Ending balance | 197,369 | 197,369 | 197,369
Others |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | 0 | 0 | 0
Changes in fair value of financial instruments | 747 | 0 | 0
IRPJ and CSLL on fair value |  | 0 | 0
Actuarial gain (loss) of post-employment benefits | 0 | 0 | 0
IRPJ and CSLL on actuarial gains | 0 | 0 | 0
Ending balance | R$ 747 | R$ 0 | R$ 0

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_DisclosureOfClassesOfShareCapitalLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of income tax relating to amounts recognised in other comprehensive income in relation to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2022-03-24 -Paragraph 81 -Subparagraph ab -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2022-en-r&anchor=para_81_ab&doctype=Standard -URIDate 2022-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 90 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_90&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_IncomeTaxRelatingToFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of income tax relating to amounts recognised in other comprehensive income in relation to remeasurements of defined benefit plans. [Refer: Other comprehensive income; Reserve of remeasurements of defined benefit plans; Defined benefit plans [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2022-03-24 -Paragraph 81 -Subparagraph ab -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2022-en-r&anchor=para_81_ab&doctype=Standard -URIDate 2022-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 90 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_90&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of other comprehensive income, before tax, after reclassification adjustments, related to financial assets measured at fair value through other comprehensive income applying paragraph 4.1.2A of IFRS 9. [Refer: Financial assets measured at fair value through other comprehensive income; Other comprehensive income] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 20 -Subparagraph a -Clause viii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_20_a_viii&doctype=Standard -URIDate 2022-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 91 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_91_b&doctype=Standard -URIDate 2022-03-24 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_7&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_OtherComprehensiveIncomeBeforeTaxFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncome
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of other comprehensive income, before tax, related to gains (losses) on remeasurements of defined benefit plans, which comprise actuarial gains and losses; the return on plan assets, excluding amounts included in net interest on the net defined benefit liability (asset); and any change in the effect of the asset ceiling, excluding amounts included in net interest on the net defined benefit liability (asset). [Refer: Other comprehensive income; Defined benefit plans [member]; Plan assets [member]; Net defined benefit liability (asset)] [Contrast: Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 19 -IssueDate 2022-03-24 -Paragraph 135 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2022-en-r&anchor=para_135_b&doctype=Standard -URIDate 2022-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 91 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_91_b&doctype=Standard -URIDate 2022-03-24 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_7&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_OtherComprehensiveIncomeBeforeTaxGainsLossesOnRemeasurementsOfDefinedBenefitPlans
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition A component of equity representing the reserves of accumulated valuation adjustments. + References No definition available. + Details
Name: | ugp_ReserveOfValuationAdjustments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ugp_ValuationAdjustmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_ReserveOfCashFlowHedgesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_ReserveOfGainsAndLossesOnFinancialAssetsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_ReserveOfRemeasurementsOfDefinedBenefitPlansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ugp_NoncontrollingShareholdersInterestChangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ugp_OtherValuationAdjustmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |