XML 118 R102.htm IDEA: XBRL DOCUMENT
v3.25.1

Financial Instruments by Category - Summary of Company's Financial Assets Measured at Fair Value (Detail) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
--- | --- | --- | ---
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | $ 829 | $ 210 | $ 410
Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 390 | 114 | 74
Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 439 | 96 | 336
Public securities [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 381 | 114 | 74
Mutual funds [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 439 | 96 | 336
Private Securities [Member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 9 | 0 | 0
Level 1 [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 829 | 210 | 410
Level 1 [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 390 | 114 | 74
Level 1 [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 439 | 96 | 336
Level 1 [member] | Public securities [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 381 | 114 | 74
Level 1 [member] | Mutual funds [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 439 | 96 | 336
Level 1 [member] | Private Securities [Member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 9 | 0 | 0
Level 2 [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 2 [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 2 [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 2 [member] | Public securities [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 2 [member] | Mutual funds [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 2 [member] | Private Securities [Member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 3 [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 3 [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 3 [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 3 [member] | Public securities [member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 3 [member] | Mutual funds [member] | Cash and cash equivalents [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | 0 | 0 | 0
Level 3 [member] | Private Securities [Member] | Investments in financial assets [member] |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |
Financial Assets | $ 0 | $ 0 | $ 0

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 2024-01-01 -Paragraph 8 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2024-en-r&anchor=para_8_a&doctype=Standard -URIDate 2024-03-27 + 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_InvestmentsInFinancialAssetsMember
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_ClassesOfFinancialAssetsAxis=ypf_PrivateSecuritiesMember
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: |

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

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