XML 101 R85.htm IDEA: XBRL DOCUMENT
v3.25.1

General Information, Structure and Organization of the Business of the Group - Summary of Main Companies of the Group (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2024
Upstream [member] | Eleran [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | Eleran |
Country of subsidiary | Spain |
Main business of subsidiary | Hydrocarbon exploration through the subsidiary YPF E&P Bolivia S.A. |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Downstream [member] | OPESSA [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | OPESSA |
Country of subsidiary | Argentina |
Main business of subsidiary | Gas stations |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Downstream [member] | YPF Chile [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | YPF Chile |
Country of subsidiary | Chile |
Main business of subsidiary | Commercialization of natural gas |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Downstream [member] | YPF Brasil [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | YPF Brasil | [2]
Country of subsidiary | Brazil |
Main business of subsidiary | Commercialization of lubricants and derivatives |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Downstream [member] | Profertil [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | Profertil |
Country of joint venture | Argentina |
Main business of joint venture | Production and commercialization of fertilizers |
Percentage of ownership of capital stock in joint venture | 50.00% | [1]
Downstream [member] | Refinor [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | Refinor |
Country of joint venture | Argentina |
Main business of joint venture | Industrialization and commercialization of hydrocarbons |
Percentage of ownership of capital stock in joint venture | 50.00% | [1]
Downstream [member] | OLCLP [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | OLCLP |
Country of joint venture | Argentina |
Main business of joint venture | Hydrocarbon transportation |
Percentage of ownership of capital stock in joint venture | 85.00% | [1]
Downstream [member] | OTA [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | OTA |
Country of joint venture | Argentina |
Main business of joint venture | Hydrocarbon transportation |
Percentage of ownership of capital stock in joint venture | 36.00% | [1]
Downstream [member] | OTC [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | OTC |
Country of joint venture | Chile |
Main business of joint venture | Hydrocarbon transportation |
Percentage of ownership of capital stock in joint venture | 36.00% | [1]
Downstream [member] | Oldelval [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of associate | Oldelval |
Country of associate | Argentina |
Main business of associate | Hydrocarbon transportation |
Percentage of ownership of capital stock in associate | 37.00% | [1]
Downstream [member] | Oiltanking [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of associate | Oiltanking |
Country of associate | Argentina |
Main business of associate | Hydrocarbon transportation |
Percentage of ownership of capital stock in associate | 30.00% | [1]
Downstream [member] | VMOS [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of associate | VMOS | [3]
Country of associate | Argentina |
Main business of associate | Hydrocarbon transportation |
Percentage of ownership of capital stock in associate | 33.80% | [1]
Downstream [member] | Termap [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of associate | Termap |
Country of associate | Argentina |
Main business of associate | Hydrocarbon transportation |
Percentage of ownership of capital stock in associate | 33.15% | [1]
Gas and Power [member] | Metrogas [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | Metrogas | [4]
Country of subsidiary | Argentina |
Main business of subsidiary | Distribution of natural gas |
Percentage of ownership of capital stock in subsidiary | 70.00% | [1]
Gas and Power [member] | Metroenergía [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | Metroenergía |
Country of subsidiary | Argentina |
Main business of subsidiary | Commercialization of natural gas |
Percentage of ownership of capital stock in subsidiary | 71.50% | [1]
Gas and Power [member] | Argentina LNG [Member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | Argentina LNG |
Country of subsidiary | Argentina |
Main business of subsidiary | Industrialization and commercialization of LNG |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Gas and Power [member] | Sur Inversiones Energéticas [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | Sur Inversiones Energéticas |
Country of subsidiary | Argentina |
Main business of subsidiary | Industrialization and commercialization of LNG |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Gas and Power [member] | MEGA [Member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | MEGA |
Country of joint venture | Argentina |
Main business of joint venture | Separation of natural gas liquids and their fractionation |
Percentage of ownership of capital stock in joint venture | 38.00% | [1]
Gas and Power [member] | YPF EE [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | YPF EE |
Country of joint venture | Argentina |
Main business of joint venture | Generation of electric power |
Percentage of ownership of capital stock in joint venture | 75.00% | [1]
Gas and Power [member] | CT Barragán [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of joint venture | CT Barragán |
Country of joint venture | Argentina |
Main business of joint venture | Generation of electric power |
Percentage of ownership of capital stock in joint venture | 50.00% | [1]
Gas and Power [member] | CDS [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of associate | CDS |
Country of associate | Argentina |
Main business of associate | Generation of electric power |
Percentage of ownership of capital stock in associate | 10.25% | [1]
Gas and Power [member] | YPF Gas [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of associate | YPF Gas |
Country of associate | Argentina |
Main business of associate | Commercialization of natural gas |
Percentage of ownership of capital stock in associate | 33.99% | [1]
Central Administration and Others [member] | AESA [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | AESA |
Country of subsidiary | Argentina |
Main business of subsidiary | Engineering and construction services |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
Central Administration and Others [member] | Y-TEC [member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | Y-TEC |
Country of subsidiary | Argentina |
Main business of subsidiary | Research and development of technology |
Percentage of ownership of capital stock in subsidiary | 51.00% | [1]
Central Administration and Others [member] | YPF Ventures [Member] |  |
Summary of Main Companies of the Group [Line Items] |  |
Name of subsidiary | YPF Ventures |
Country of subsidiary | Argentina |
Main business of subsidiary | Corporate investments |
Percentage of ownership of capital stock in subsidiary | 100.00% | [1]
[1] | Held directly and indirectly.
[2] | See Note 3 “Sale of equity participation in YPF Brasil” section.
[3] | On December 13, 2024, YPF, together with Pan American Sur S.A., Vista Energy S.A.U. and Pampa Energía S.A. signed a shareholders’ agreement to form a new company, VMOS. The main purpose of VMOS is the construction of the “Vaca Muerta Sur Project”, an oil transportation infrastructure project. VMOS has granted stock options to Pluspetrol S.A., Chevron Argentina S.R.L. and Shell Compañía Argentina de Petróleo S.A. As of the date of issuance of these consolidated financial statements, Pluspetrol S.A. has exercised such option becoming a shareholder of VMOS.
[4] | See Note 36.c.3) “Note from ENARGAS related to YPF’s interest in Metrogas” section.

X
- Definition The country in which a joint venture of the entity is incorporated. [Refer: Total for all joint ventures [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_iii&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_CountryOfIncorporationOfJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The country in which an associate of the entity is incorporated. [Refer: Total for all associates [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph a -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_iii&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_CountryOfIncorporationOrResidenceOfAssociate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The country in which a subsidiary of the entity is incorporated. [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 16 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_ii&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 17 -Subparagraph b -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_ii&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 12 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_b&doctype=Standard -URIDate 2024-03-27 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 19B -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_19B_b&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The description of the nature of the entity's relationship with an associate (for example, describing the nature of the activities of the associate and whether they are strategic to the entity's activities). [Refer: Total for all associates [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_ii&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The description of the nature of the entity's relationship with a joint venture (for example, describing the nature of the activities of the joint venture and whether they are strategic to the entity's activities). [Refer: Total for all joint ventures [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_ii&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The name of an associate. [Refer: Total for all associates [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 17 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_i&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 i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_i&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_i&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_NameOfAssociate
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The name of a joint venture. [Refer: Total for all joint ventures [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 17 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_i&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 i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_i&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph a -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_i&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_NameOfJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The name of a subsidiary. [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 i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_17_b_i&doctype=Standard -URIDate 2024-03-27 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 12 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_12_a&doctype=Standard -URIDate 2024-03-27 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2024-01-01 -Paragraph 16 -Subparagraph b -Clause i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2024-en-r&anchor=para_16_b_i&doctype=Standard -URIDate 2024-03-27 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2024-01-01 -Paragraph 19B -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_19B_a&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_NameOfSubsidiary
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The proportion of ownership interest in an associate attributable to the entity. [Refer: Total for all associates [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 21 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_iv&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInAssociate
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The proportion of ownership interest in a joint venture attributable to the entity. [Refer: Total for all joint ventures [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 21 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2024-en-r&anchor=para_21_a_iv&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInJointVenture
Namespace Prefix: | ifrs-full_
Data Type: | dtr-2022:percentItemType
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 The description of the nature of the entity's relationship with an subsidiary. + References No definition available. + Details
Name: | ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

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

X
- Details
Name: | ypf_EntityGroupAxis=ypf_UpstreamMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_EleranMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_EntityGroupAxis=ypf_DownstreamMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_OPESSAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_YPFChileMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_YpfBrasilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_ProfertilMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_RefinorMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_OLCLPMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_OTAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_OTCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_OldelvalMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_OiltankingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_VmosMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_TermapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_EntityGroupAxis=ypf_GasAndPowerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_MetroenergiaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_ArgentinaLngMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_SurInversionesEnergeticasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_MEGAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_YPFEEMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_CTBarraganMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_CDSMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_YPFGasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_EntityGroupAxis=ypf_CentralAdministrationAndOthersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_AESAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_YpfVenturesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |