XML 157 R141.htm IDEA: XBRL DOCUMENT
v3.25.1

Income Tax - Summary of Breakdown of Deferred Tax (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Breakdown of deferred tax [line Items] |  |  |
Adjustment for inflation of the opening deferred liabilities of subsidiaries with the Peso as functional currency | $ (61) | $ (96) | $ (86)
Net deferred tax asset liabilities foreign currency translation reserves | $ 176 | $ 1,563 | $ 965

X
- Definition Adjustment to offset deferred tax liabilities of subsidiaries with the Peso as functional currency. + References No definition available. + Details
Name: | ypf_AdjustmentToOffsetDeferredTaxLiabilitiesOfSubsidiariesWithThePesoAsFunctionalCurrency
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Breakdown of deferred tax. + References No definition available. + Details
Name: | ypf_BreakdownOfDeferredTaxLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Foreign currency translation reserve included in net deferred tax liabilities. + References No definition available. + Details
Name: | ypf_NetDeferredTaxAssetLiabilitiesForeignCurrencyTranslationReserves
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant