XML 200 R171.htm IDEA: XBRL DOCUMENT
v3.22.1

Equity - Balance of Other Comprehensive Income (Detail) - BRL (R$) R$ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 | Dec. 31, 2020 | Dec. 31, 2019
Total [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | R$ (464,990) | R$ (146,317) | R$ (63,989)
Changes in fair value of financial instruments | 11,364 | (477,506) | (76,001)
IRPJ and CSLL on fair value | (4,060) | 164,425 | 23,683
Actuarial gain (loss) of post-employment benefits | 49,550 | (7,725) | (41,794)
IRPJ and CSLL on actuarial (gains) losses | (14,002) | 2,133 | 11,784
Ending balance | (422,138) | (464,990) | (146,317)
Fair value of cash flow hedging instruments [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | (609,277) | (296,132) | (243,336)
Changes in fair value of financial instruments | 12,036 | (477,570) | (76,479)
IRPJ and CSLL on fair value | (4,060) | 164,425 | 23,683
Actuarial gain (loss) of post-employment benefits | 0 | 0 | 0
IRPJ and CSLL on actuarial (gains) losses | 0 |  | 0
Ending balance | (601,301) | (609,277) | (296,132)
Fair value of financial instruments [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | 269 | 205 | (273)
Changes in fair value of financial instruments | (672) | 64 | 478
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) losses | 0 | 0 | 0
Ending balance | (403) | 269 | 205
Actuarial gains (losses) of post-employment benefits [member] |  |  |
Disclosure of classes of share capital [line items] |  |  |
Beginning balance | (53,351) | (47,759) | (17,749)
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 | 49,550 | (7,725) | (41,794)
IRPJ and CSLL on actuarial (gains) losses | (14,002) | 2,133 | 11,784
Ending balance | (17,803) | (53,351) | (47,759)
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) losses | 0 | 0 | 0
Ending balance | R$ 197,369 | R$ 197,369 | R$ 197,369

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 2021-01-01 -Paragraph 81 -Subparagraph ab -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=12&code=ifrs-tx-2021-en-r&anchor=para_81_ab&doctype=Standard -URIDate 2021-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2021-01-01 -Paragraph 90 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2021-en-r&anchor=para_90&doctype=Standard -URIDate 2021-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 2021-01-01 -Paragraph 81 -Subparagraph ab -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=12&code=ifrs-tx-2021-en-r&anchor=para_81_ab&doctype=Standard -URIDate 2021-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2021-01-01 -Paragraph 90 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2021-en-r&anchor=para_90&doctype=Standard -URIDate 2021-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 2021-01-01 -Paragraph 20 -Subparagraph a -Clause viii -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2021-en-r&anchor=para_20_a_viii&doctype=Standard -URIDate 2021-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2021-01-01 -Paragraph 7 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2021-en-r&anchor=para_7&doctype=Standard -URIDate 2021-03-24 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2021-01-01 -Paragraph 91 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2021-en-r&anchor=para_91_b&doctype=Standard -URIDate 2021-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 2021-01-01 -Paragraph 135 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=19&code=ifrs-tx-2021-en-r&anchor=para_135_b&doctype=Standard -URIDate 2021-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2021-01-01 -Paragraph 91 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2021-en-r&anchor=para_91_b&doctype=Standard -URIDate 2021-03-24 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2021-01-01 -Paragraph 7 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2021-en-r&anchor=para_7&doctype=Standard -URIDate 2021-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 miscellaneous other reserves. + References No definition available. + Details
Name: | ugp_MiscellaneousOtherReserves
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_MiscellaneousOtherReservesMember
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: |