XML 196 R177.htm IDEA: XBRL DOCUMENT
v3.23.1

Risks and Financial Instruments - Summary of credit risk of financial institution and government of cash, cash equivalents and financial investments (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2022 | Dec. 31, 2021
--- | --- | ---
Disclosure of external credit grades [line items] |  |  |
Counterparty credit rating |  | R$ 6,584,962 | R$ 4,463,473
AAA [member] |  |  |
Disclosure of external credit grades [line items] |  |  |
Counterparty credit rating |  | 5,720,996 | 3,606,000
AA [member] |  |  |
Disclosure of external credit grades [line items] |  |  |
Counterparty credit rating |  | 809,583 | 740,879
A [member] |  |  |
Disclosure of external credit grades [line items] |  |  |
Counterparty credit rating |  | 3,457 | 116,594
Others [member] |  |  |
Disclosure of external credit grades [line items] |  |  |
Counterparty credit rating | [1] | R$ 50,926 | R$ 0
[1] | Refers substantially to investiments with minoritary participation of UVC, which are classificated in long term financial investments.

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

X
- Definition The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents] + References No definition available. + Details
Name: | ugp_CashCashEquivalentsAndFinancialInvestments
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ugp_AAAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ugp_AAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ugp_AMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ExternalCreditGradesAxis=ugp_OtherExternalCreditGradesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |