XML 183 R161.htm IDEA: XBRL DOCUMENT
v3.21.1

Expenses by Nature - Detailed Information about Expenses by Nature (Parenthetical) (Detail) - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Expense By Nature [Line Items] |  |  |  |
Export withholdings | $ 9,393.0 | $ 6,541.0 | $ 2,297.0 |
Fees and remunerations of the Directors and Statutory Auditors of YPF | 193.0 | 80.0 | 65.0 | $ 48.8
Fees approved by General and Extraordinay Shareholders' Meeting of YPF | 123.0 | 87.0 | 62.0 |
Research and development expense | 1,602.0 | 1,261.0 | $ 700.0 |
Expense relating to short term lease | 4,164.0 | 7,223.0 |  |
Expense relating to lease underlying asset | 5,332.0 | $ 3,326.0 |  |
AESA and OPESSA [Member] |  |  |  |
Expense By Nature [Line Items] |  |  |  |
Work and Production Assistance Program received in benefit | $ 1,539.0 |  |  |

X
- Definition The amount of expenditure directly attributable to research or development activities, recognised in profit or loss. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 38 -IssueDate 2020-01-01 -Paragraph 126 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=38&code=ifrs-tx-2020-en-r&anchor=para_126&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_ResearchAndDevelopmentExpense
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Directors and auditors remuneration expense. + References No definition available. + Details
Name: | ypf_DirectorsAndAuditorsRemunerationExpense
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Definition Expense relating to lease underlying asset. + References No definition available. + Details
Name: | ypf_ExpenseRelatingToLeaseUnderlyingAsset
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Expense relating to short term lease. + References No definition available. + Details
Name: | ypf_ExpenseRelatingToShortTermLease
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Export withholdings. + References No definition available. + Details
Name: | ypf_ExportWithholdings
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Fees and remuneration expense. + References No definition available. + Details
Name: | ypf_FeesAndRemunerationExpense
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Income expense for related party transactions. + References No definition available. + Details
Name: | ypf_IncomeExpenseForRelatedPartyTransactions
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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