XML 222 R193.htm IDEA: XBRL DOCUMENT
v3.22.1

Risks and Financial Instruments - Loss allowance for expected credit losses balances on trade receivables (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | ---
Disclosure of detailed information about financial instruments [line items] |  |  |
Allowances for doubful accounts on trade receivable | R$ 559,633 |  | R$ 579,107
Ipiranga [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Allowances for doubful accounts on trade receivable | 422,542 |  | 447,389
Ultragaz [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Allowances for doubful accounts on trade receivable | 135,565 |  | 113,621
Oxiteno [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Allowances for doubful accounts on trade receivable |  | [1] | 16,430
Extrafarma [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Allowances for doubful accounts on trade receivable |  | [1] | 73
Ultracargo [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Allowances for doubful accounts on trade receivable | R$ 1,526 |  | R$ 1,594
[1] | On December 31, 2021 the balances were reclassified to assets of subsidiaries held for sale.

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 amount of allowances for doubful accounts on trade receivables and other receivables. + References No definition available. + Details
Name: | ugp_AllowancesForDoubfulAccountsOnTradeReceivablesAndOtherReceivables
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_IpirangaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_UltragazMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_OxitenoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_ExtrafarmaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ugp_UltracargoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |