XML 106 R90.htm IDEA: XBRL DOCUMENT
v3.25.1

Financial Risk Management - Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income (Detail) - Exchange Rate Risk [member] | 12 Months Ended
--- | ---
Dec. 31, 2024 USD ($)
Positive variation impact on net income corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Profit or loss before income tax for fiscal year ended December 31, 2023 | $ (17)
Negative variation impact on net income corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Profit or loss before income tax for fiscal year ended December 31, 2023 | $ 17
Peso against U.S. dollar [member] | Positive variation impact on net income corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Appreciation (+) / depreciation (-) of exchange rate of peso against dollar | 10.00%
Peso against U.S. dollar [member] | Negative variation impact on net income corresponding to financial assets and liabilities [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Appreciation (+) / depreciation (-) of exchange rate of peso against dollar | (10.00%)

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 The amount of exchange differences recognised in profit or loss that arise from foreign currency transactions, excluding those arising on financial instruments measured at fair value through profit or loss in accordance with IFRS 9. [Refer: At fair value [member]; Classes of financial instruments [domain]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 21 -IssueDate 2024-01-01 -Paragraph 52 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2024-en-r&anchor=para_52_a&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 35 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_35&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of appreciation or depreciation exchange rate of peso against us dollar. + References No definition available. + Details
Name: | ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

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

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

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

X
- Details
Name: | srt_CurrencyAxis=currency_USD
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |