XML 123 R101.htm IDEA: XBRL DOCUMENT
v3.21.1

Financial Instruments by Category - Summary of Company's Financial Assets Measured at Fair Value (Parenthetical) (Detail) - ARS ($) $ in Millions | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
--- | --- | --- | ---
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial assets at amortized cost | $ 190,532 | $ 218,122 | $ 152,026
Investment in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial assets at amortized cost | $ 19,052 |  |

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

X
- Definition The amount of financial assets at amortised cost. The amortised cost is the amount at which financial assets are measured at initial recognition minus principal repayments, plus or minus the cumulative amortisation using the effective interest method of any difference between that initial amount and the maturity amount, and adjusted for any impairment. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2020-01-01 -Paragraph 8 -Subparagraph f -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2020-en-r&anchor=para_8_f&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_FinancialAssetsAtAmortisedCost
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ypf_InvestmentsAndFinancialAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |