XML 178 R161.htm IDEA: XBRL DOCUMENT
v3.23.1

Contingent Assets and Liabilities - Additional Information (Detail) $ in Millions, $ in Millions |  | 12 Months Ended |  |  |
--- | --- | --- | --- | --- | ---
Dec. 30, 2014 Judgment | Dec. 31, 2006 Companies | Apr. 14, 2022 USD ($) | Dec. 03, 2021 USD ($) | Dec. 03, 2021 ARS ($) | Sep. 24, 2021 USD ($)
Peterson And Eton Park And YPF And The Republic [Member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Damages payable |  |  | $ 15,900 |  |  |
Direct damages payable |  |  | 8,400 |  |  |
Ancillary Damages Payable |  |  | $ 7,500 |  |  |
US Dollar [Member] | Bottom of range [member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Loss contingency, estimate of possible loss |  |  |  | $ 3,500 |  | $ 142
US Dollar [Member] | Top of range [member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Loss contingency, estimate of possible loss |  |  |  | $ 5,200 |  | $ 146
Argentine Pesos [Member] | Bottom of range [member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Loss contingency, estimate of possible loss |  |  |  |  | $ 14,000 |
Argentine Pesos [Member] | Top of range [member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Loss contingency, estimate of possible loss |  |  |  |  | $ 14,400 |
Dock Sud, Province of Buenos Aires [Member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Number of companies sued | Companies |  | 44 |  |  |  |
CSJN [member] | Asociacion Superficiarios de la Patagonia [Member] |  |  |  |  |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |  |  |  |  |
Number of interlocutory judgments issued | Judgment | 2 |  |  |  |  |

X
- Definition The amount of the estimated financial effect of contingent liabilities. [Refer: Contingent liabilities [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 37 -IssueDate 2022-03-24 -Paragraph 86 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2022-en-r&anchor=para_86_a&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_EstimatedFinancialEffectOfContingentLiabilities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Ancillary damages payable. + References No definition available. + Details
Name: | ypf_AncillaryDamagesPayable
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Direct damages payable. + References No definition available. + Details
Name: | ypf_DirectDamagesPayable
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Disclosure of contingent assets and liabilities. + References No definition available. + Details
Name: | ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Loss contingency, estimate of possible loss. + References No definition available. + Details
Name: | ypf_LossContingencyEstimateOfPossibleLoss
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Number of companies sued. + References No definition available. + Details
Name: | ypf_NumberOfCompaniesSued
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of interlocutory judgments. + References No definition available. + Details
Name: | ypf_NumberOfInterlocutoryJudgments
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ypf_CaseDetailsAxis=ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ExchangeRateAxis=ypf_UsDollarMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_BottomOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_TopOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ExchangeRateAxis=ypf_ArgentinePesosMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | ypf_LegalEntitiesAxis=ypf_AsociacionSuperficiariosDeLaPatagoniaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |