XML 149 R127.htm IDEA: XBRL DOCUMENT
v3.21.1

Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Detail) - ARS ($) $ in Millions | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
--- | --- | --- | --- | ---
Disclosure of cash and cash equivalents [line items] |  |  |  |
Cash and banks | $ 14,843 | $ 6,983 | $ 6,678 |
Short-term investments | 5,189 | 52,079 | 31,558 |
Financial assets at fair value through profit or loss | 34,586 | 7,038 | 7,792 |
Total | 54,618 | 66,100 | 46,028 | $ 28,738
Banco Nacion Argentina [member] |  |  |  |
Disclosure of cash and cash equivalents [line items] |  |  |  |
Term deposits and other investments | $ 2,000 | $ 10,043 | $ 5,084 |

X
- Definition The amount of cash and bank balances held at central banks. + 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_CashAndBankBalancesAtCentralBanks
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 7 -IssueDate 2020-01-01 -Paragraph 45 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=7&code=ifrs-tx-2020-en-r&anchor=para_45&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2020-01-01 -Paragraph B13 -Subparagraph a -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2020-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B -URIDate 2020-01-01 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 54 -Subparagraph i -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_54_i&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_CashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition A classification of cash equivalents representing short-term investments. [Refer: Cash equivalents] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2020-01-01 -Paragraph 45 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=7&code=ifrs-tx-2020-en-r&anchor=para_45&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Cash and cash equivalents at fair value through profit or loss. + References No definition available. + Details
Name: | ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represents cash and cash equivalents. + References No definition available. + Details
Name: | ypf_DisclosureOfCashAndCashEquivalentsLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term deposits and other investments , classified as cash equivalents. + References No definition available. + Details
Name: | ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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