XML 139 R122.htm IDEA: XBRL DOCUMENT
v3.23.1

Provisions - Summary of Changes in Group's Provisions (Parenthetical) (Detail) - Hydrocarbon Wells Abandonmnet Cost [member] - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Disclosure of provisions [line items] |  |  |
Abandonment of hydrocarbon wells cost | $ 268 | $ 32 | $ (166)
Dispute relating to the tax deduction of hydrocarbon well abandonment costs for periods 2014-2017 |  |  |
Disclosure of provisions [line items] |  |  |
Recovery of Liabilities of Dispute relating to tax Deduction | 30 |  |
Other contingent liabilities [member] | Dispute relating to the tax deduction of hydrocarbon well abandonment costs for periods 2014-2017 | Administracion Federal De Ingresos Publicos [member] |  |  |
Disclosure of provisions [line items] |  |  |
Increase decrease through transfers and other changes other provisions | $ 22 |  |
Extended Moratorium [Member] |  |  |
Disclosure of provisions [line items] |  |  |
Tax claims reclassified to tax charges |  |  | 37
Recovery of Liabilities of Dispute relating to tax Deduction |  |  | $ 45

X
- Definition The increase (decrease) in other provisions resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Other provisions] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 37 -IssueDate 2022-03-24 -Paragraph 84 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2022-en-r&anchor=para_84&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The increase (decrease) in property, plant and equipment resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 16 -IssueDate 2022-03-24 -Paragraph 73 -Subparagraph e -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2022-en-r&anchor=para_73_e&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Disclosure of provisions. + References No definition available. + Details
Name: | ypf_DisclosureOfProvisionsLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Liabilities Decrease Through Balances Recovered in Current Period. + References No definition available. + Details
Name: | ypf_LiabilitiesDecreaseThroughBalancesRecoveredInCurrentPeriod
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Taxes payable due in tax claims. + References No definition available. + Details
Name: | ypf_TaxesPayableDueInTaxClaims
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_HydrocarbonWellsAbandonmentCostsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_DetailsAxis=ypf_DisputeRelatingToTaxDeductionHydrocarbonWellAbandonmentCostsRelatingToThePeriodTwoThousandFourteenToTwoThousandAndSeventeenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfContingentLiabilitiesAxis=ifrs-full_OtherContingentLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfProvisionsAxis=ypf_AdministracionFederalDeIngresosPublicosMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_MoratoriumAxis=ypf_ExtendedMoratoriumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |