XML 185 R168.htm IDEA: XBRL DOCUMENT
v3.23.1

Contractual Commitments - Assignment agreement of CAN 100 exploration permit (offshore) &#8211; Block E-1 Reconversion (Detail) - CAN 100 Exploration Permit Block E-1 Reconversion [Member] - Off Shore [Member] - Assignment Agreement [Member] - USD ($) $ in Millions |  |  |  |  | 12 Months Ended
--- | --- | --- | --- | --- | ---
Dec. 14, 2021 | Jan. 14, 2021 | Apr. 22, 2020 | Oct. 08, 2019 | Dec. 31, 2020
Statement [Line Items] |  |  |  |  |
Proportion of ownership interest in joint operation |  |  |  | 50.00% |
Equinor [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Proportion of ownership interest in joint operation |  | 35.00% |  | 50.00% |
Cash flows received from the counterparty in respect of the exploration permit |  |  | $ 22 |  |
Equinor [Member] | Shell Argentina [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Cash flows received from the counterparty in respect of the exploration permit |  | $ 5 |  |  |
Percentage Of Interest In Joint Operation Assigned |  | 15.00% |  |  |
Additional amount received in respect of the exploration permit | $ 5 |  |  |  |
Equinor [Member] | Other Net Operating Results [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Income arising from exloration and evaluation of mineral resources |  |  |  |  | $ 22

X
- Definition The cash flows from (used in) the search for mineral resources, including minerals, oil, natural gas and similar non-regenerative resources after the entity has obtained legal rights to explore in a specific area, as well as the determination of the technical feasibility and commercial viability of extracting the mineral resource, classified as operating activities. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 6 -IssueDate 2022-03-24 -Paragraph 24 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2022-en-r&anchor=para_24_b&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_CashFlowsFromUsedInExplorationForAndEvaluationOfMineralResourcesClassifiedAsOperatingActivities
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of income arising from the search for mineral resources, including minerals, oil, natural gas and similar non-regenerative resources, after the entity has obtained legal rights to explore in a specific area, as well as the determination of the technical feasibility and commercial viability of extracting the mineral resource. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 6 -IssueDate 2022-03-24 -Paragraph 24 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2022-en-r&anchor=para_24_b&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_IncomeArisingFromExplorationForAndEvaluationOfMineralResources
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The proportion of ownership interest in a joint operation attributable to the entity. [Refer: Joint operations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2022-03-24 -Paragraph 21 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2022-en-r&anchor=para_21_a_iv&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInJointOperation
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Additional amount received in respect of the exploration permit. + References No definition available. + Details
Name: | ypf_AdditionalAmountReceivedInRespectOfTheExplorationPermit
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of interest in joint operation assigned. + References No definition available. + Details
Name: | ypf_PercentageOfInterestInJointOperationAssigned
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- References No definition available. + Details
Name: | ypf_StatementLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ypf_LocationAxis=ypf_CanOneHundredExplorationPermitEOneConversionMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ypf_OffShoreMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_AgreementAxis=ypf_AssignmentAgreementMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CounterpartiesAxis=ypf_EquinorMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_AssigneeAxis=ypf_ShellArgentinaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_IncomeStatementLocationAxis=ypf_OtherNetOperatingResultsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |