XML 101 R80.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2023
Metrogas [member] |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |
Proportion of ownership interest in subsidiary | 70.00%
Y T E C [member] |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |
Proportion of ownership interest in subsidiary | 51.00%
Consolidated entities [Member] |
Disclosure of estimated useful life of the Property, plant and equipment [line items] |
Proportion of ownership interest in subsidiary | 100.00%

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

X
- Definition The proportion of ownership interest in a subsidiary attributable to the entity. [Refer: Subsidiaries [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 19B -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_19B_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInSubsidiary
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ypf_MetrogasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ypf_YTECMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ConsolidatedStructuredEntitiesAxis=ifrs-full_ConsolidatedStructuredEntitiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |