XML 219 R191.htm IDEA: XBRL DOCUMENT
v3.21.1

Risks and Financial Instruments - Summary of allowance for doubtful accounts on trade receivables by geographic area (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2020 | Dec. 31, 2019
--- | --- | ---
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | R$ 579,107 | R$ 560,892
Brasil [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | 568,461 | 550,928
Mexico [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable |  | 1,123
Uruguay [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | 76 | 267
Other Latin American countries [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | 271 | 561
United States of America and Canada [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | 1,146 | 889
Europe [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | 9,120 | 7,075
Others [member] |  |
Statement [Line Items] |  |
Allowances for doubful accounts on trade receivable | R$ 33 | R$ 49

X
- Definition Balance of allowance for doubtful accounts. + References No definition available. + Details
Name: | ugp_AllowancesForDoubfulAccountsOnTradeReceivable
Namespace Prefix: | ugp_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | ugp_StatementLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_StatementGeographicalAxis=country_BR
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_MX
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_UY
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=srt_LatinAmericaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=country_CA
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=srt_EuropeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=ugp_OutrosMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |