XML 102 R86.htm IDEA: XBRL DOCUMENT
v3.25.1

Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Disclosure of estimated useful life of the Property, plant and equipment [line items] |  |  |
Decreases by financial income |  | $ 4,155 | $ 1,868
Decreases by financial costs |  | 2,830 | 1,327
Increased by other financial results |  | $ 1,325 | $ 541
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: Total for all subsidiaries [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 17 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_iii&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 16 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_iii&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 19B -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_19B_c&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInSubsidiary
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Decreased by financial costs. + References No definition available. + Details
Name: | ypf_DecreasedByFinancialCosts
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Decreased by financial income. + References No definition available. + Details
Name: | ypf_DecreasedByFinancialIncome
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Increased by other financial results. + References No definition available. + Details
Name: | ypf_IncreasedByOtherFinancialResults
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
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: |