XML 188 R166.htm IDEA: XBRL DOCUMENT
v3.21.1

Shareholders' Equity - Additional Information (Detail) - ARS ($) $ / shares in Units, $ in Millions |  | 12 Months Ended
--- | --- | ---
May 04, 2012 | Dec. 31, 2020 | Dec. 31, 2019
Disclosure Of Detailed information Of Share Capital [line items] |  |  |
Share capital |  | $ 3,926 |
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 is required for: 1) mergers, 2) acquisitions of more than 50% of YPF shares in an agreed or hostile bid, 3) transfers of all the YPF’s production and exploration rights, 4) the voluntary dissolution of YPF or 5) change of corporate and/or tax address outside the Argentine Republic. Items 3) and 4) will also require prior approval by the Argentine Congress. |
Explanation of law enacted equity structure |  | According to Law 26,741, achieving self-sufficiency in the supply of hydrocarbons as well as in the exploitation, industrialization, transportation and sale of hydrocarbons, is thereby declared of national public interest and a priority for Argentina, with the goal of guaranteeing socially equitable economic development, the creation of jobs, the increase of the competitiveness of various economic sectors and the equitable and sustainable growth of the provinces and regions. The shares subject to expropriation were distributed as follows: 51% for the Argentine federal government and 49% for certain Argentine Provinces. |
Reserve for the purchase of treasury shares |  |  | $ 550
Reserves for investments |  | $ 8,934 |
Reserves for dividend |  | 3,700 |
Adjustments To Accumulated losses in retained earnings |  | 34,071 |
Adjustments To Discontinued reserves |  | $ 13,184 |
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% |  |
Participation in the capital stock | 51.00% |  |
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 amount of dividends that the company has declared but not yet paid. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 55 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_55&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_DividendPayables
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 2020-01-01 -Paragraph 79 -Subparagraph a -Clause iv -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_79_a_iv&doctype=Standard -URIDate 2020-01-01 + 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 2020-01-01 -Paragraph 79 -Subparagraph a -Clause iii -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_79_a_iii&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_ParValuePerShare
Namespace Prefix: | ifrs-full_
Data Type: | num: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 2020-01-01 -Paragraph B64 -Subparagraph c -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2020-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B -URIDate 2020-01-01 + Details
Name: | ifrs-full_PercentageOfVotingEquityInterestsAcquired
Namespace Prefix: | ifrs-full_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Adjustments To Accumulated losses in retained earnings + References No definition available. + Details
Name: | ypf_AdjustmentsToAccumulatedLossesInRetainedEarnings
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Adjustments To Discontinued Reserves + References No definition available. + Details
Name: | ypf_AdjustmentsToDiscontinuedReserves
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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 Explanation of law enacted equity structure. + References No definition available. + Details
Name: | ypf_ExplanationOfLawEnactedEquityStructure
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: | num: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: | num: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: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Reserve for the purchase of treasury shares. + References No definition available. + Details
Name: | ypf_ReserveForThePurchaseOfTreasuryShares
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Reserves for investments. + References No definition available. + Details
Name: | ypf_ReservesForInvestments
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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
- 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: |