XML 146 R129.htm IDEA: XBRL DOCUMENT
v3.23.1

Income Tax - Summary of Breakdown of Deferred Tax (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Breakdown of deferred tax [line Items] |  |  |
Adjustment for inflation of the opening deferred liabilities of subsidiaries with the Peso as functional currency | $ 86 | $ 37 | $ 23
Net deferred tax asset liabilities foreign currency translation reserves | $ 965 | $ 322 | $ 480

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 Net deferred tax asset liabilities foreign currency translation reserves. + References No definition available. + Details
Name: | ypf_NetDeferredTaxAssetLiabilitiesForeignCurrencyTranslationReserves
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant