XML 110 R94.htm IDEA: XBRL DOCUMENT
v3.25.1

Financial Risk Management - Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments (Detail) - Price Risk [member] $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 USD ($)
Positive variation impact on profit or loss before income tax [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Increase (+) / decrease (-) in the prices of investments in financial instruments | 10.00%
Profit or loss before income tax for fiscal year ended December 31, 2023 | $ 83
Negative variation impact on profit or loss before income tax [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Increase (+) / decrease (-) in the prices of investments in financial instruments | (10.00%)
Profit or loss before income tax for fiscal year ended December 31, 2023 | $ (83)

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_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Effect of change in prices of investment on gains (losses) on financial assets at fair value through profit or loss. + References No definition available. + Details
Name: | ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of increase (decrease) in prices of investments + References No definition available. + Details
Name: | ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfRisksAxis=ypf_PriceRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ForeignCurrencyRiskAxis=ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ForeignCurrencyRiskAxis=ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |