XML 185 R169.htm IDEA: XBRL DOCUMENT
v3.25.1

Net Financial Results - Detailed Information about Financial Results (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023
Disclosure of Financial Results Net [abstract] |  |
Accretion of liabilities associated with assets held for sale | $ 215 |
Adjustment for Inflation |  | $ 19
Effect of Translation |  | $ (41)

X
- Definition Accretion of liabilities associated with assets held for sale. + References No definition available. + Details
Name: | ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Adjustment for inflation. + References No definition available. + Details
Name: | ypf_AdjustmentForInflation
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Disclosure of financial results net. + References No definition available. + Details
Name: | ypf_DisclosureOfFinancialResultsNetAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Effect of translation. + References No definition available. + Details
Name: | ypf_EffectOfTranslation
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration