XML 111 R94.htm IDEA: XBRL DOCUMENT
v3.23.1

Financial Instruments by Category - Summary of Company's Financial Assets Measured at Fair Value (Detail) - USD ($) $ in Millions | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | ---
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | $ 410 | $ 392 | $ 529
Investment in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 74 | 98 | 118
Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 336 | 294 | 411
Public securities [member] | Investment in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 74 | 98 | 118
Mutual funds [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 336 | 294 | 411
Level 1 [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 410 | 392 | 529
Level 1 [member] | Investment in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 74 | 98 | 118
Level 1 [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 336 | 294 | 411
Level 1 [member] | Public securities [member] | Investment in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 74 | 98 | 118
Level 1 [member] | Mutual funds [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | $ 336 | $ 294 | $ 411

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with 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 that are measured at fair value and for which gains (losses) are recognised in profit or loss. A financial asset shall be measured at fair value through profit or loss unless it is measured at amortised cost or at fair value through other comprehensive income. A gain (loss) on a financial asset measured at fair value shall be recognised in profit or loss unless it is part of a hedging relationship, it is an investment in an equity instrument for which the entity has elected to present gains and losses in other comprehensive income or it is a financial asset measured at fair value through other comprehensive income. [Refer: At fair value [member]; Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 8 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_8_a&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_CashAndCashEquivalentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

X
- Details
Name: | ifrs-full_LevelsOfFairValueHierarchyAxis=ifrs-full_Level1OfFairValueHierarchyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |