XML 210 R183.htm IDEA: XBRL DOCUMENT
v3.19.1

Risks and Financial Instruments - Allowance for doubtful accounts on trade receivables (Detail) - BRL (R$) R$ in Thousands | Dec. 31, 2018 | Dec. 31, 2017
--- | --- | ---
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | R$ 524,779 | R$ 452,778
Ipiranga [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 442,486 | 350,594
Ultragaz [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 61,975 | 83,627
Oxiteno [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 12,371 | 10,755
Extrafarma [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | 5,858 | 5,623
Ultracargo [member] |  |
Summary of risks and financial instruments [line items] |  |
Allowances for doubful accounts on trade receivable | R$ 2,089 | R$ 2,179

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 Summary of risks and financial instruments. + References No definition available. + Details
Name: | ugp_SummaryOfRisksAndFinancialInstrumentsLineItems
Namespace Prefix: | ugp_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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: |