XML 108 R74.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail) | 1 Months Ended | 6 Months Ended | 12 Months Ended |
--- | --- | --- | --- | ---
Aug. 31, 2016 | Dec. 31, 2016 ARS ($) | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017 ARS ($) Cash_Generating_Units | Dec. 31, 2016 ARS ($) | Dec. 31, 2015 ARS ($) | Dec. 31, 2014 ARS ($)
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Current and non-current classification |  |  |  |  |  | The presentation in the statement of financial position makes a distinction between current and non-current assets and liabilities, according to the activities operating cycle.Current assets and liabilities include assets and liabilities, which are realized or settled within the 12-month period from the end of the fiscal year. |  |  |
Voting shares of company |  |  |  |  |  | This capacity is, in general but not exclusively, obtained by the ownership, direct or indirect, of more than 50% of the voting shares of a company. |  |  |
Maximum accumulated inflation rate |  |  |  |  |  | In order to conclude on the existence of a hyperinflationary economy, such standard describes in detail a number of quantitative and qualitative factors to be taken into account including an accumulated inflation rate during a three-year period that amounts to or exceeds 100%. |  |  |
Transportation period |  |  |  |  |  | The Argentine Hydrocarbons Law allows the executive branch of the Argentine government to award 35-year concessions for the transportation of oil, gas and petroleum products following submission of competitive bids. The term of a transportation concession may be extended for an additional ten-year term. |  |  |
Description of significant influence in associates |  |  |  |  |  | Associates are considered those in which the Group has significant influence, understood as the power to participate in the financial and operating policy decisions of the investee but does not have control or joint control over those policies. Significant influence is presumed in companies in which a company has an interest of 20% or more and less than 50%. |  |  |
Useful life of cash generating units |  |  |  |  |  | 10 years |  |  |
General tax rate |  |  |  |  |  | 35.00% | 35.00% | 35.00% |
Minimum presumed income tax rate |  |  |  |  |  | 1.00% | 1.00% | 1.00% |
Personal assets tax rate |  |  |  |  |  | 0.25% | 0.25% | 0.25% |
Shareholders equity attributable to shareholders of the parent company |  | $ 118,661,000,000 |  |  |  | $ 152,533,000,000 | $ 118,661,000,000 | $ 120,461,000,000 | $ 72,781,000,000
Percentage of reduction in prices of sales |  | 6.00% |  |  |  |  |  |  |
Percentage of reduction in prices of sales | 2.00% |  |  |  |  |  |  |  |
Impairment charge for property, plant and equipment |  |  |  |  |  |  | 34,943,000,000 | 2,361,000,000 |
Recoverable value of assets after tax |  | $ 71,495,000,000 |  |  |  | 82,802,000,000 | 71,495,000,000 | 76,829,000,000 |
Impairment charge of intangible assets |  |  |  |  |  |  |  | 80,000,000 |
Recoverable on intangible assets |  |  |  |  |  |  |  | 0 |
Reversal for impairment of value of assets |  |  |  |  |  | 5,032,000,000 |  |  |
Legal reserve [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Shareholders equity attributable to shareholders of the parent company |  | $ 2,007,000,000 |  |  |  | $ 2,007,000,000 | $ 2,007,000,000 | 2,007,000,000 | $ 2,007,000,000
Crude oil and natural gas [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Percentage of interest on royalty |  |  |  |  |  | 12.00% |  |  |
Unconventional hydrocarbons [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Percentage of interest on royalty |  |  |  |  |  | 10.00% |  |  |
Upstream segment [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Number of cash generating units | Cash_Generating_Units |  |  |  |  |  | 4 |  |  |
Upstream segment [member] | Crude oil reserves [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Number of cash generating units | Cash_Generating_Units |  |  |  |  |  | 1 |  |  |
Upstream segment [member] | Natural gas reserves [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Number of cash generating units | Cash_Generating_Units |  |  |  |  |  | 3 |  |  |
Gas and power segment [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Number of cash generating units | Cash_Generating_Units |  |  |  |  |  | 3 |  |  |
United States [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Impairment charge for property, plant and equipment |  |  |  |  |  |  |  | 94,000,000 |
Fair value of property and equipment |  |  |  |  |  |  |  | $ 179,000,000 |
Metrogas S.A. [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Percentage of non-controlling interest acquired |  |  |  |  |  | 30.00% |  |  |
YTEC [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Percentage of non-controlling interest acquired |  |  |  |  |  | 49.00% |  |  |
Scenario, Forecast [Member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
General tax rate |  |  | 25.00% | 30.00% | 30.00% |  |  |  |
Bottom of range [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Useful lives of amortized assets |  |  |  |  |  | 3 years |  |  |
Percentage of interest in investee |  |  |  |  |  | 20.00% |  |  |
Percentage of defined contribution plan |  |  |  |  |  | 3.00% |  |  |
Bottom of range [member] | Legal reserve [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Percentage of legal reserve transferred |  |  |  |  |  | 5.00% |  |  |
Top of range [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Useful lives of amortized assets |  |  |  |  |  | 14 years |  |  |
Percentage of interest in investee |  |  |  |  |  | 50.00% |  |  |
Percentage of defined contribution plan |  |  |  |  |  | 10.00% |  |  |
Top of range [member] | Legal reserve [member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Maximum legal reserve of subscribed Capital plus adjustment to contribution |  |  |  |  |  | 20.00% |  |  |
Consolidated entities [Member] |  |  |  |  |  |  |  |  |
Disclosure of assets and liabilities with significant risk of material adjustment [line items] |  |  |  |  |  |  |  |  |
Investment Owned Percent Of Net Assets |  |  |  |  |  | 100.00% |  |  |

X
- Definition The applicable income tax rate. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2017-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=12&date=2017-03-01&anchor=para_81_c_ii&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_ApplicableTaxRate
Namespace Prefix: | ifrs-full_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The description of intangible assets with indefinite useful life, supporting the assessment of indefinite useful life. [Refer: Intangible assets other than goodwill] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 38 -IssueDate 2017-01-01 -Paragraph 122 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=38&date=2017-03-01&anchor=para_122_a&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_DescriptionAndCarryingAmountOfIntangibleAssetsWithIndefiniteUsefulLife
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The description of the nature of assets that are subject to assumptions that have a significant risk of resulting in a material adjustment to the amounts of those assets within the next financial year. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 125 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_125_a&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_DescriptionOfNatureOfAssetsWithSignificantRiskOfMaterialAdjustmentsWithinNextFinancialYear
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of residual interest in the assets of the entity after deducting all its liabilities. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2017-01-01 -Paragraph 24 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IFRS&num=1&date=2017-03-01&anchor=para_24_a&doctype=Standard -URIDate 2017-03-09 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2017-01-01 -Paragraph 32 -Subparagraph a -Clause i -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IFRS&num=1&date=2017-03-01&anchor=para_32_a_i&doctype=Standard -URIDate 2017-03-09 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2017-01-01 -Paragraph 93 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IFRS&num=13&date=2017-03-01&anchor=para_93_a&doctype=Standard -URIDate 2017-03-09 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2017-01-01 -Paragraph 93 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IFRS&num=13&date=2017-03-01&anchor=para_93_b&doctype=Standard -URIDate 2017-03-09 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2017-01-01 -Paragraph 93 -Subparagraph e -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IFRS&num=13&date=2017-03-01&anchor=para_93_e&doctype=Standard -URIDate 2017-03-09 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 55 -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_55&doctype=Standard -URIDate 2017-03-09 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 78 -Subparagraph e -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_78_e&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_Equity
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The fair value of property, plant and equipment when the fair value is materially different from the carrying amount. [Refer: Carrying amount [member]; Property, plant and equipment] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 16 -IssueDate 2017-01-01 -Paragraph 79 -Subparagraph d -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=16&date=2017-03-01&anchor=para_79_d&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_FairValueOfPropertyPlantAndEquipmentMateriallyDifferentFromCarryingAmount
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of impairment loss recognised in profit or loss for intangible assets other than goodwill. [Refer: Impairment loss recognised in profit or loss; Intangible assets other than goodwill] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 38 -IssueDate 2017-01-01 -Paragraph 118 -Subparagraph e -Clause iv -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=38&date=2017-03-01&anchor=para_118_e_iv&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_ImpairmentLossRecognisedInProfitOrLossIntangibleAssetsOtherThanGoodwill
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of impairment loss recognised in profit or loss for property, plant and equipment. [Refer: Impairment loss recognised in profit or loss; Property, plant and equipment] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 16 -IssueDate 2017-01-01 -Paragraph 73 -Subparagraph e -Clause v -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=16&date=2017-03-01&anchor=para_73_e_v&doctype=Standard -URIDate 2017-03-09 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 98 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_98_a&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage of the entity's revenue. [Refer: Revenue] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 8 -IssueDate 2017-01-01 -Paragraph 34 -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IFRS&num=8&date=2017-03-01&anchor=para_34&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_PercentageOfEntitysRevenue
Namespace Prefix: | ifrs-full_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The higher of an asset’s (or cash-generating unit’s) fair value less costs of disposal and its value in use. [Refer: Cash-generating units [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 36 -IssueDate 2017-01-01 -Paragraph 130 -Subparagraph e -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=36&date=2017-03-01&anchor=para_130_e&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of reversal of impairment loss recognised in profit or loss for intangible assets other than goodwill. [Refer: Reversal of impairment loss recognised in profit or loss; Intangible assets other than goodwill] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 38 -IssueDate 2017-01-01 -Paragraph 118 -Subparagraph e -Clause v -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=38&date=2017-03-01&anchor=para_118_e_v&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossIntangibleAssetsOtherThanGoodwill
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of reversal of impairment loss recognised in profit or loss for property, plant and equipment. [Refer: Reversal of impairment loss recognised in profit or loss; Property, plant and equipment] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 16 -IssueDate 2017-01-01 -Paragraph 73 -Subparagraph e -Clause vi -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=16&date=2017-03-01&anchor=para_73_e_vi&doctype=Standard -URIDate 2017-03-09 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 98 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_98_a&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition Common Stock Voting Rights + References No definition available. + Details
Name: | ypf_CommonStockVotingRights1
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of significant influence in associates. + References No definition available. + Details
Name: | ypf_DescriptionOfSignificantInfluenceInAssociates
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Investment Owned Percent Of Net Assets 1. + References No definition available. + Details
Name: | ypf_InvestmentOwnedPercentOfNetAssets1
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum accumulated Inflation Rate + References No definition available. + Details
Name: | ypf_MaximumAccumulatedInflationRate
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Minimum presumed income tax rate. + References No definition available. + Details
Name: | ypf_MinimumPresumedIncomeTaxRate
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of cash generating units. + References No definition available. + Details
Name: | ypf_NumberOfCashGeneratingUnits
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of decrease in entity's revenue. + References No definition available. + Details
Name: | ypf_PercentageOfDecreaseInEntityRevenue
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of defined contribution plan. + References No definition available. + Details
Name: | ypf_PercentageOfDefinedContributionPlan
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of interest on royalty. + References No definition available. + Details
Name: | ypf_PercentageOfInterestOnRoyalty
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of maximum legal reserve. + References No definition available. + Details
Name: | ypf_PercentageOfMaximumLegalReserve
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of minimum legal reserve. + References No definition available. + Details
Name: | ypf_PercentageOfMinimumLegalReserve
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of monthly decrease in entity revenue. + References No definition available. + Details
Name: | ypf_PercentageOfMonthlyDecreaseInEntityRevenue
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of non-controlling interest acquired. + References No definition available. + Details
Name: | ypf_PercentageOfNoncontrollingInterestAcquired
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Personal assets tax rate. + References No definition available. + Details
Name: | ypf_PersonalAssetsTaxRate
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

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

X
- Definition Useful life of cash generating units. + References No definition available. + Details
Name: | ypf_UsefulLifeOfCashGeneratingUnits
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_StatutoryReserveMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ypf_CrudeOilAndCommercializedNaturalGasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ProductsAndServicesAxis=ypf_UnconventionalHydrocarbonsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ypf_UpstreamSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis=ypf_CrudeOilReservesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis=us-gaap_NaturalGasReservesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SegmentsAxis=ypf_GasAndPowerSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

X
- Details
Name: | us-gaap_StatementScenarioAxis=us-gaap_ScenarioForecastMember
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: | ifrs-full_ConsolidatedStructuredEntitiesAxis=ifrs-full_ConsolidatedStructuredEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |