XML 175 R158.htm IDEA: XBRL DOCUMENT
v3.23.1

Shareholders' Equity - Additional Information (Detail) - USD ($) $ / shares in Units, $ in Millions |  | 12 Months Ended
--- | --- | ---
May 04, 2012 | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Share capital |  | $ 3,915 |  |
Description in classes of shares |  | four classes of shares (A, B, C and D) |  |
Par value of share |  | $ 10 |  |
Description of voting rights |  | 1 vote per share |  |
Description of shares based on grants outstanding |  | the affirmative vote of Argentine Government will be required for: (i) mergers; (ii) acquisitions of more than 50% of the Company’s shares in an agreed or hostile bid; (iii) transfers of all the YPF’s production and exploration rights; (iv) the voluntary dissolution of YPF; or (v) change of corporate and/or tax address outside the Argentine Republic. Items (iii) and (iv) will also require prior approval by the Argentine Congress. |  |
Repurchase of own shares issued, shares |  | 1,888,798 |  | 737,378
Repurchase of own shares issued, value |  | $ 28 |  | $ 6
Expropation Shares of YPF Owned by Repsol [Member] |  |  |  |
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Proportion of ownership interests in equity | 57.43% |  |  |
Petersen Energia SAU and Affiliates [Member] |  |  |  |
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Participation in the capital stock | 25.46% |  |  |
Federal Government [member] |  |  |  |
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Percentage of shares subject to expropriation | 51.00% |  |  |
State or Province [member] |  |  |  |
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Percentage of shares subject to expropriation | 49.00% |  |  |
Ordinary shares [member] |  |  |  |
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Number of shares of common stock |  | 393,312,793 |  |
Class A Shares [member] |  |  |  |
Disclosure Of Detailed information Of Share Capital [line items] |  |  |  |
Common shares outstanding |  | 3,764 |  |
Proportion of maximum shares acquired by related party |  | 50.00% |  |

X
- Definition The number of shares that have been authorised and issued, reduced by treasury shares held. [Refer: Treasury shares] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 79 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_79_a_iv&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_NumberOfSharesOutstanding
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition The nominal value per share. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 79 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_79_a_iii&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_ParValuePerShare
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The percentage of voting equity interests acquired in a business combination. [Refer: Business combinations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 3 -IssueDate 2022-03-24 -Paragraph B64 -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2022-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B -URIDate 2022-03-24 + Details
Name: | ifrs-full_PercentageOfVotingEquityInterestsAcquired
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The decrease in equity resulting from the purchase of treasury shares. [Refer: Treasury shares] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 106 -Subparagraph d -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_106_d&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_PurchaseOfTreasuryShares
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Description of classes of shares. + References No definition available. + Details
Name: | ypf_DescriptionOfClassesOfShares
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of grant based on shares outstanding. + References No definition available. + Details
Name: | ypf_DescriptionOfGrantBasedOnSharesOutstanding
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of voting rights. + References No definition available. + Details
Name: | ypf_DescriptionOfVotingRights
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Disclosure Of Detailed information Of Share Capital [line items] + References No definition available. + Details
Name: | ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares subscribed. + References No definition available. + Details
Name: | ypf_NumberOfSharesSubscribed
Namespace Prefix: | ypf_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of shares subject to expropriation. + References No definition available. + Details
Name: | ypf_PercentageOfSharesSubjectToExpropriation
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Proportion of ownership interest in equity. + References No definition available. + Details
Name: | ypf_ProportionOfOwnershipInterestInEquity
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Proportion of ownership interest in shares by related party. + References No definition available. + Details
Name: | ypf_ProportionOfOwnershipInterestInSharesByRelatedParty
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Subscribed capital. + References No definition available. + Details
Name: | ypf_SubscribedCapital
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Treasury Stock Shares Acquired 1 + References No definition available. + Details
Name: | ypf_TreasuryStockSharesAcquired1
Namespace Prefix: | ypf_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

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

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

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

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

X
- Details
Name: | ifrs-full_ClassesOfShareCapitalAxis=ifrs-full_OrdinarySharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfShareCapitalAxis=ypf_ClassASharesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |