XML 200 R181.htm IDEA: XBRL DOCUMENT
v3.23.1

Risks and Financial Instruments - Positions of derivative financial instruments to hedge commodity price risk (Detail) - Commodity price risk [member] R$ in Thousands, $ in Thousands | 12 Months Ended |  |
--- | --- | --- | ---
Dec. 31, 2022 BRL (R$) m³ | Dec. 31, 2021 BRL (R$) m³ | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($)
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ (67,695) | R$ 1,302 |  |
Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ (157,697) | R$ (65,679) |  |
Heating Oil [member] | Term [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 158,828 | 167,255 |  |
Notional amount (USD thousands) | $ |  |  | $ 150,498 | $ 103,148
Fair value | R$ (52,214) | R$ 2,269 |  |
Heating Oil [member] | Term [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ (124,293) | R$ (55,066) |  |
RBOB [member] | Term [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Notional amount (m3) | m³ | 52,466 | 29,413 |  |
Notional amount (USD thousands) | $ |  |  | $ 31,382 | $ 17,112
Fair value | R$ (15,481) | R$ (967) |  |
RBOB [member] | Term [member] | Probable Scenario [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Fair value | R$ (33,404) | R$ (10,613) |  |

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

X
- Definition The fair value of financial instruments designated as hedging instruments. Hedging instruments are designated derivatives or (for a hedge of the risk of changes in foreign currency exchange rates only) designated non-derivative financial assets or non-derivative financial liabilities whose fair value or cash flows are expected to offset changes in the fair value or cash flows of a designated hedged item. [Refer: At fair value [member]; Derivatives [member]; Derivative financial assets; Derivative financial liabilities; Financial instruments, class [member]; Financial assets; Financial liabilities] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Note Expiry date 2023-01-01 -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 22 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_22_b&doctype=Standard&book=b -URIDate 2022-03-24 + Details
Name: | ifrs-full_FinancialInstrumentsDesignatedAsHedgingInstrumentsAtFairValue
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The nominal amount of the hedging instruments in hedging relationships to which the entity is applying the exceptions in the scope of the amendments for interest rate benchmark reform. [Refer: Nominal amount of hedging instrument] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 24H -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_24H_e&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_NominalAmountOfHedgingInstrumentsInHedgingRelationshipsToWhichAmendmentsForInterestRateBenchmarkReformAreApplied
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition Nominal volume used to calculate payments on a derivative instrument. + References No definition available. + Details
Name: | ugp_DerivativeNonmonetaryNotionalAmountVolumeOne
Namespace Prefix: | ugp_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfRisksAxis=ifrs-full_CommodityPriceRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ugp_ScenarioAxis=ugp_ScenarioMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_HeatingOilOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ugp_TermMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ugp_RBOBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |