XML 145 R128.htm IDEA: XBRL DOCUMENT
v3.23.1

Income Tax - Summary of Breakdown of Deferred Tax (Detail) - USD ($) $ in Millions | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | ---
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax assets | $ 322 | $ 423 | $ 1,178
Total deferred tax liabilities | (2,038) | (2,209) | (2,568)
Total Net deferred tax | (1,716) | (1,786) | (1,390)
Provisions and Other Non Deductible Liabilities [member] |  |  |
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax assets | 154 | 380 | 175
Miscellaneous Deferred Tax Assets [member] |  |  |
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax assets | 1 | 16 | 20
Property, plant and equipment [member] |  |  |
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax liabilities | (1,020) | (1,526) | (1,724)
Tax Losses Carryforward and Other Tax Credits [member] |  |  |
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax assets | 167 | 27 | 983
Adjustment For Tax Inflation [member] |  |  |
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax liabilities | (965) | (644) | (798)
Miscellaneous Deferred Tax Liabilities [member] |  |  |
Breakdown of deferred tax [line Items] |  |  |
Total deferred tax liabilities | $ (53) | $ (39) | $ (46)

X
- Definition The amount of deferred tax liabilities or assets. [Refer: Deferred tax liabilities; Deferred tax assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2022-03-24 -Paragraph 81 -Subparagraph g -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2022-en-r&anchor=para_81_g_i&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_DeferredTaxLiabilityAsset
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The amount of deferred tax assets net of deferred tax liabilities, when the absolute amount of deferred tax assets is greater than the absolute amount of deferred tax liabilities. [Refer: Deferred tax assets; Deferred tax liabilities] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 12 -IssueDate 2022-03-24 -Paragraph 81 -Subparagraph g -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2022-en-r&anchor=para_81_g_i&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_NetDeferredTaxAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of deferred tax liabilities net of deferred tax assets, when the absolute amount of deferred tax liabilities is greater than the absolute amount of deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 12 -IssueDate 2022-03-24 -Paragraph 81 -Subparagraph g -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2022-en-r&anchor=para_81_g_i&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_NetDeferredTaxLiabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Breakdown of deferred tax. + References No definition available. + Details
Name: | ypf_BreakdownOfDeferredTaxLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_MiscellaneousDeferredTaxAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ifrs-full_PropertyPlantAndEquipmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis=ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis=ypf_AdjustmentForTaxInflationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfLiabilitiesAxis=ypf_MiscellaneousDeferredTaxLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |