XML 109 R87.htm IDEA: XBRL DOCUMENT
v3.21.1

Financial Risk Management - Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income (Detail) - Exchange Rate Risk [member] $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 ARS ($)
Positive variation impact on net income before income tax corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Income (loss) for fiscal year ended December 31, 2020 | $ (1,770)
Negative variation impact on net income before income tax corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Income (loss) for fiscal year ended December 31, 2020 | $ 1,770
Peso against U.S. dollar [member] | Positive variation impact on net income before income tax corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Appreciation (+) / depreciation (-) of exchange rate of peso against dollar | 10.00%
Peso against U.S. dollar [member] | Negative variation impact on net income before income tax corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Appreciation (+) / depreciation (-) of exchange rate of peso against dollar | (10.00%)

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_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of exchange differences recognised in profit or loss that arise from foreign currency transactions, excluding those arising on financial instruments measured at fair value through profit or loss in accordance with IFRS 9. [Refer: At fair value [member]; Financial instruments, class [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 7 -IssueDate 2020-01-01 -Section A Statement of cash flows for an entity other than a financial institution -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=7&code=ifrs-tx-2020-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_A_TI -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 21 -IssueDate 2020-01-01 -Paragraph 52 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=21&code=ifrs-tx-2020-en-r&anchor=para_52_a&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of appreciation or depreciation exchange rate of peso against us dollar. + References No definition available. + Details
Name: | ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfRisksAxis=ifrs-full_CurrencyRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ForeignCurrencyRiskAxis=ypf_PositiveVariationImpactOnNetIncomeBeforeIncomeTaxCorrespondingToFinancialAssetsAndLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ForeignCurrencyRiskAxis=ypf_NegativeVariationImpactOnNetIncomeBeforeIncomeTaxCorrespondingToFinancialAssetsAndLiabilitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_CurrencyAxis=currency_USD
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |