XML 220 R204.htm IDEA: XBRL DOCUMENT
v3.25.1

Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Argentina [member] |  |  |
Disclosure of information about consolidated entities [Line Items] |  |  |
Acquisition of unproved properties | $ 0 | $ 0 |
Exploration costs | 198 | 156 | $ 80
Development costs | 3,884 | 4,370 | 3,138
Total costs incurred | 4,082 | 4,526 | 3,218
Other foreign [Member] |  |  |
Disclosure of information about consolidated entities [Line Items] |  |  |
Acquisition of unproved properties |  |  | 0
Exploration costs | 1 | 1 | 2
Development costs |  |  | 0
Total costs incurred | 1 | 1 | 2
Worldwide [member] |  |  |
Disclosure of information about consolidated entities [Line Items] |  |  |
Acquisition of unproved properties | 0 | 0 |
Exploration costs | 199 | 157 | 82
Development costs | 3,884 | 4,370 | 3,138
Total costs incurred | $ 4,083 | $ 4,527 | $ 3,220

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_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Acquisition of unproved properties. + References No definition available. + Details
Name: | ypf_AcquisitionOfUnprovedProperties
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Costs Incurred in oil and gas productivity. + References No definition available. + Details
Name: | ypf_CostsIncurredInOilAndGasProductivity
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Development cost. + References No definition available. + Details
Name: | ypf_DevelopmentCost
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Exploration cost. + References No definition available. + Details
Name: | ypf_ExplorationCost
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=country_AR
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ypf_OtherForeignMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ypf_WorldwideMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |