XML 115 R99.htm IDEA: XBRL DOCUMENT
v3.25.1

Business Segment Information - Summary of Business Segment Information (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Disclosure of operating segments [abstract] |  |  |
Unproductive exploratory drillings | $ (133) | $ (21) | $ (26)

X
- References No definition available. + Details
Name: | ifrs-full_DisclosureOfOperatingSegmentsAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Unproductive exploratory drillings. + References No definition available. + Details
Name: | ypf_UnproductiveExploratoryDrillings
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration