XML 103 R81.htm IDEA: XBRL DOCUMENT
v3.21.1

Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail) - ARS ($) $ in Millions |  |  |  | 1 Months Ended | 3 Months Ended | 12 Months Ended |
--- | --- | --- | --- | --- | --- | --- | ---
Mar. 31, 2020 | Mar. 20, 2020 | Mar. 31, 2019 | Feb. 28, 2021 | Mar. 31, 2020 | Dec. 31, 2020 | Jun. 30, 2020 | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017 | Jan. 01, 2019
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Use of estimates |  |  |  |  |  |  |  | The preparation of financial statements at a certain date requires the Management to make estimates and assessments affecting the amount of assets and liabilities recorded, contingent assets and liabilities disclosed at such date, as well as income and expenses recorded during the fiscal year. Future results might differ from the estimates and assessments made on the date of preparation of these consolidated financial statements. |  |  |  |
Consolidation policies |  |  |  |  |  |  |  | This capacity is, in general but not solely, obtained by the direct or indirect ownership of more than 50% of the voting shares of a company.​​​​​​​ |  |  |  |
Maximum accumulated inflation rate |  |  |  |  |  |  |  | In recent years, inflation in Argentina has been high, with an accumulated inflation rate exceeding 100% over the last three years. |  |  |  |
Description of significant influence in associates |  |  |  |  |  |  |  | Associates are considered those in respect of 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 |  |  |  |  |  |  |  | 5 years |  |  |  |
General tax rate |  |  |  |  |  |  |  | 30.00% | 30.00% | 30.00% | 35.00% |
Personal assets tax rate |  |  |  |  |  |  |  | 0.50% |  |  |  |
Shareholders equity attributable to shareholders of the parent company |  |  |  |  |  | $ 683,395 |  | $ 683,395 | $ 548,099 | $ 362,357 | $ 152,533 |
Right-of-use assets |  |  |  |  |  | $ 44,081 |  | 44,081 | 61,391 |  |  |
Expense for short term and low value leases |  |  |  |  |  |  |  | $ 11,764 | 13,886 |  |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  | 12.85% |  | 12.85% |  |  |  |
Assets classified as disposal group held for sale |  |  |  |  |  | $ 494 |  | $ 494 | $ 0 | 3,189 |  |
Real estate classified as inventories [member] | Argentina [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of revaluation special tax |  |  |  |  |  |  |  | 15.00% |  |  |  |
Real estate not classified as inventories [member] | Argentina [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of revaluation special tax |  |  |  |  |  |  |  | 8.00% |  |  |  |
Quotas and equity interests [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of revaluation special tax |  |  |  |  |  |  |  | 5.00% |  |  |  |
Rest of assets [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of revaluation special tax |  |  |  |  |  |  |  | 10.00% |  |  |  |
Remaining Lease Commitments [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Right-of-use assets |  |  |  |  |  |  |  |  |  |  |  | $ 23,059
Gasoline [Member] | COVID-19 [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of decrease in demand |  | 70.00% |  | 7.00% |  |  |  |  |  |  |  |
Diesel [member] | COVID-19 [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of decrease in demand |  | 40.00% |  |  |  |  |  |  |  |  |  |
Jet fuel [member] | COVID-19 [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of decrease in demand |  | 90.00% |  | 70.00% |  |  |  |  |  |  |  |
Scenario Forecast [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
General tax rate | 25.00% |  | 30.00% |  | 25.00% |  |  | 25.00% | 30.00% |  |  |
Legal reserve [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Shareholders equity attributable to shareholders of the parent company |  |  |  |  |  | $ 2,007 |  | $ 2,007 | $ 2,007 | 2,007 | $ 2,007 |
Metrogas S.A. [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of non-controlling interest acquired |  |  |  |  |  | 30.00% |  | 30.00% |  |  |  |
YTEC [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of non-controlling interest acquired |  |  |  |  |  | 49.00% |  | 49.00% |  |  |  |
Not later than one year [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  |  |  |  | 12.14% |  |  |
Later than one year [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  | 12.14% |  | 12.14% |  |  |  |
Later than one year and not later than two years [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  | 13.12% |  | 13.12% | 12.14% |  |  |
Later than two years and not later than three years [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  |  |  |  | 12.39% |  |  |
CGU OIL [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Recoverable value of assets after tax |  |  |  |  |  |  |  |  |  | 254,549 |  |
Reversal in the charge for impairment |  |  |  |  |  |  |  |  |  | $ 39,837 |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  |  |  |  |  | 10.94% |  |
CGU OIL [member] | Scenario Forecast [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Discount rate after taxes of the CGU Oil |  |  |  |  |  | 11.19% |  | 11.19% |  |  |  |
CGU Gas Neuquina Basin [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Recoverable value of assets after tax |  |  |  |  |  | $ 192,197 |  | $ 192,197 | $ 139,361 | $ 108,509 |  |
Impairment loss |  |  |  |  |  | 58,463 | $ (49,170) |  | (40,561) | (28,326) |  |
Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment,Net of tax |  |  |  |  |  | 43,848 | (36,877) |  | $ (30,421) |  |  |
CGU Gas Austral Basin [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Recoverable value of assets after tax |  |  |  |  |  | 16,036 |  | $ 16,036 |  | 8,606 |  |
Impairment loss |  |  |  |  |  | 7,706 | (8,126) |  |  | $ (8,246) |  |
Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment,Net of tax |  |  |  |  |  | $ 5,780 | $ (6,095) |  |  |  |  |
Bottom of range [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Useful lives of amortized assets |  |  |  |  |  |  |  | 3 years |  |  |  |
Percentage of defined contribution plan |  |  |  |  |  |  |  | 3.00% |  |  |  |
Bottom of range [member] | Legal reserve [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of legal reserve transferred |  |  |  |  |  |  |  | 5.00% |  |  |  |
Top of range [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Useful lives of amortized assets |  |  |  |  |  |  |  | 15 years |  |  |  |
Percentage of defined contribution plan |  |  |  |  |  |  |  | 10.00% |  |  |  |
Top of range [member] | Legal reserve [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Maximum legal reserve of subscribed Capital plus adjustment to contribution |  |  |  |  |  |  |  | 20.00% |  |  |  |
Consolidated entities [Member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Investment Owned Percent Of Net Assets |  |  |  |  |  |  |  | 100.00% |  |  |  |
Taxes, withholdings and royalties [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Minimum presumed income tax rate |  |  |  |  |  |  |  | 1.00% | 1.00% | 1.00% |  |
Royalties and withholding systems for hydrocarbon exports [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of interest on royalty |  |  |  |  |  |  |  | 12.00% |  |  |  |
Royalties and withholding systems for hydrocarbon exports [member] | Crude oil and natural gas [member] |  |  |  |  |  |  |  |  |  |  |  |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |  |  |  |  |  |  |  |  |  |
Percentage of interest on royalty |  |  |  |  |  |  |  | 15.00% |  |  |  |

X
- Definition The applicable income tax rate. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 12 -IssueDate 2020-01-01 -Paragraph 81 -Subparagraph c -Clause ii -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=12&code=ifrs-tx-2020-en-r&anchor=para_81_c_ii&doctype=Standard -URIDate 2020-01-01 + 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 2020-01-01 -Paragraph 122 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=38&code=ifrs-tx-2020-en-r&anchor=para_122_a&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_DescriptionAndCarryingAmountOfIntangibleAssetsWithIndefiniteUsefulLife
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The discount rate used in the current estimate of the present value of the future cash flows expected to be derived from an asset or cash-generating unit. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 36 -IssueDate 2020-01-01 -Paragraph 130 -Subparagraph g -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=36&code=ifrs-tx-2020-en-r&anchor=para_130_g&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse
Namespace Prefix: | ifrs-full_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

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 2020-01-01 -Paragraph 125 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_125_a&doctype=Standard -URIDate 2020-01-01 + 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 2020-01-01 -Paragraph 24 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2020-en-r&anchor=para_24_a&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 1 -IssueDate 2020-01-01 -Paragraph 32 -Subparagraph a -Clause i -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2020-en-r&anchor=para_32_a_i&doctype=Standard -URIDate 2020-01-01 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2020-01-01 -Paragraph 93 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2020-en-r&anchor=para_93_a&doctype=Standard -URIDate 2020-01-01 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2020-01-01 -Paragraph 93 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2020-en-r&anchor=para_93_b&doctype=Standard -URIDate 2020-01-01 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 13 -IssueDate 2020-01-01 -Paragraph 93 -Subparagraph e -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2020-en-r&anchor=para_93_e&doctype=Standard -URIDate 2020-01-01 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -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 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 78 -Subparagraph e -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_78_e&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_Equity
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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 2020-01-01 -Paragraph 73 -Subparagraph e -Clause v -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=16&code=ifrs-tx-2020-en-r&anchor=para_73_e_v&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 98 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_98_a&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
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 2020-01-01 -Paragraph 130 -Subparagraph e -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=36&code=ifrs-tx-2020-en-r&anchor=para_130_e&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount recognised as an increase of the carrying amount of an asset or cash-generating unit to its recoverable amount when an impairment loss had been previously recognised. [Refer: Impairment loss] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 36 -IssueDate 2020-01-01 -Paragraph 130 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=36&code=ifrs-tx-2020-en-r&anchor=para_130_b&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 36 -IssueDate 2020-01-01 -Paragraph 130 -Subparagraph d -Clause ii -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=36&code=ifrs-tx-2020-en-r&anchor=para_130_d_ii&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_ReversalOfImpairmentLoss
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The amount of assets that represent a lessee's right to use an underlying asset for the lease term. Underlying asset is an asset that is the subject of a lease, for which the right to use that asset has been provided by a lessor to a lessee. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 16 -IssueDate 2020-01-01 -Paragraph 53 -Subparagraph j -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2020-en-r&anchor=para_53_j&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_RightofuseAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Accumulated inflation rate description. + References No definition available. + Details
Name: | ypf_AccumulatedInflationRateDescription
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
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 Current assets or disposal groups classified as held for sale + References No definition available. + Details
Name: | ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 Expense relating to shortterm leases and low value leases for which recognition exemption has been used. + References No definition available. + Details
Name: | ypf_ExpenseRelatingToShorttermLeasesAndLowValueLeasesForWhichRecognitionExemptionHasBeenUsed
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment, Net of tax. + References No definition available. + Details
Name: | ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
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 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 Percentage of decrease in demand. + References No definition available. + Details
Name: | ypf_PercentageOfDecreaseInDemand
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 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 Percentage of revaluation special tax. + References No definition available. + Details
Name: | ypf_PercentageOfRevaluationSpecialTax
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

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 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_CategoriesOfFinancialAssetsAxis=ypf_RealEstateClassifiedAsInventoriesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ypf_RealEstateNotClassifiedAsInventoriesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ypf_QuotasAndEquityInterestsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ypf_RestOfAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_NonadjustingEventsAfterReportingPeriodAxis=ypf_RemainingLeaseCommitmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ifrs-full_NonadjustingEventsAfterReportingPeriodAxis=ypf_CovidNineteenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | ypf_EventAfterReportingAxis=srt_ScenarioForecastMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ComponentsOfEquityAxis=ifrs-full_StatutoryReserveMember
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: | ifrs-full_MaturityAxis=ifrs-full_NotLaterThanOneYearMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanOneYearMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis=ypf_CguGasAustralBasinMember
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: |

X
- Details
Name: | ifrs-full_ConsolidatedStructuredEntitiesAxis=ypf_TaxesWithholdingsAndRoyaltiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ConsolidatedStructuredEntitiesAxis=ypf_RoyaltiesAndWithholdingSystemsForHydrocarbonExportsMember
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: |