XML 177 R156.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Expenses by Nature - Detailed Information about Expenses by Nature (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Expense By Nature [Line Items] |  |  |
Export withholdings | $ 89 | $ 251 | $ 206
Research and development expense | 23 | 27 | 19
Expense relating to short term lease | 75 | 63 | 40
Expense relating to lease underlying asset | 104 | 104 | 58
Turnover tax | $ 541 | $ 567 | 450
OPESSA [member] |  |  |
Expense By Nature [Line Items] |  |  |
Productive Recovery Program II ("REPRO II") |  |  | $ 18

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 2023-01-01 -Paragraph 126 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2023-en-r&anchor=para_126&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ResearchAndDevelopmentExpense
Namespace Prefix: | ifrs-full_
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 Productive recovery program two repro two in benefit. + References No definition available. + Details
Name: | ypf_ProductiveRecoveryProgramTwoREPROTwoInBenefit
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

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

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