XML 127 R106.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Property, Plant and Equipment - Summary of Cost for Exploratory Wells (Detail) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 USD ($) Project Well | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($)
Disclosure of Property, Plant and Equipment Cost for Exploratory Wells under Assessment [line items] |  |  |
Amount | $ 3,979 | $ 2,315 | $ 1,408
Exploration wells [member] | From 1 to 5 years [member] |  |  |
Disclosure of Property, Plant and Equipment Cost for Exploratory Wells under Assessment [line items] |  |  |
Amount | $ 10 |  |
Number of projects | Project | 5 |  |
Number of Wells | Well | 5 |  |

X
- Definition The amount of costs associated with financing activities of the entity. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 82 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_82_b&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_FinanceCosts
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Disclosure of property plant and equipment cost for exploratory wells under assessment. + References No definition available. + Details
Name: | ypf_DisclosureOfPropertyPlantAndEquipmentCostForExploratoryWellsUnderAssessmentLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of projects. + References No definition available. + Details
Name: | ypf_NumberOfProjects
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of wells. + References No definition available. + Details
Name: | ypf_NumberOfWells
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_RealEstateAndAccumulatedDepreciationDescriptionOfPropertyAxis=ypf_ExplorationWellMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ifrs-full_LaterThanOneYearAndNotLaterThanFiveYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |