<?xml version="1.0" encoding="utf-8"?>
<!--Generated by DFIN XBRL Instance Document - http://www.dfinsolutions.com/ - Version R3.0 - on 25-March-2026 [10:25:28] {PM}-->
<schema targetNamespace="http://www.ypf.com/20251231" elementFormDefault="qualified" xmlns:ypf="http://www.ypf.com/20251231" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ifrs-full="https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xl="http://www.xbrl.org/2003/XLink" xmlns:us-gaap="http://fasb.org/us-gaap/2025" xmlns:country="http://xbrl.sec.gov/country/2025" xmlns:currency="http://xbrl.sec.gov/currency/2025" xmlns:dei="http://xbrl.sec.gov/dei/2025" xmlns:exch="http://xbrl.sec.gov/exch/2025" xmlns:naics="http://xbrl.sec.gov/naics/2025" xmlns:sic="http://xbrl.sec.gov/sic/2025" xmlns:us-types="http://fasb.org/us-types/2025" xmlns:stpr="http://xbrl.sec.gov/stpr/2025" xmlns:deprecated="http://www.xbrl.org/2009/arcrole/fact-explanatoryFact" xmlns:srt="http://fasb.org/srt/2024" xmlns:srt-types="http://fasb.org/srt-types/2024" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:ecd="http://xbrl.sec.gov/ecd/2025">
  <annotation>
    <appinfo>
      <link:roleType roleURI="http://www.ypf.com/role/CoverPage" id="CoverPage">
        <link:definition>1001 - Document - Cover Page</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition" id="ConsolidatedStatementsOfFinancialPosition">
        <link:definition>1002 - Statement - Consolidated statements of financial position</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome" id="ConsolidatedStatementsOfComprehensiveIncome">
        <link:definition>1003 - Statement - Consolidated statements of comprehensive income</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity" id="ConsolidatedStatementsOfChangesInShareholdersEquity">
        <link:definition>1004 - Statement - Consolidated statements of changes in shareholders' equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical" id="ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical">
        <link:definition>1005 - Statement - Consolidated statements of changes in shareholders' equity (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow" id="ConsolidatedStatementsOfCashFlow">
        <link:definition>1006 - Statement - Consolidated statements of cash flow</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical" id="ConsolidatedStatementsOfCashFlowsParenthetical">
        <link:definition>1007 - Statement - Consolidated statements of cash flows (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheGroupSBusiness" id="GeneralInformationStructureAndOrganizationOfTheGroupSBusiness">
        <link:definition>999001 - Disclosure - General Information, Structure and Organization of the Group's Business</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CybersecurityRiskManagementAndStrategyDisclosure" id="CybersecurityRiskManagementAndStrategyDisclosure">
        <link:definition>999002 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatements" id="BasisOfPreparationOfTheConsolidatedFinancialStatements">
        <link:definition>999003 - Disclosure - Basis of Preparation of the Consolidated Financial Statements</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AcquisitionsAndDisposals" id="AcquisitionsAndDisposals">
        <link:definition>999004 - Disclosure - Acquisitions and Disposals</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagement" id="FinancialRiskManagement">
        <link:definition>999005 - Disclosure - Financial Risk Management</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BusinessSegmentInformation" id="BusinessSegmentInformation">
        <link:definition>999006 - Disclosure - Business Segment Information</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategory" id="FinancialInstrumentsByCategory">
        <link:definition>999007 - Disclosure - Financial Instruments by Category</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IntangibleAssets" id="IntangibleAssets">
        <link:definition>999008 - Disclosure - Intangible Assets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipment" id="PropertyPlantAndEquipment">
        <link:definition>999009 - Disclosure - Property, Plant and Equipment</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RightOfUseAssets" id="RightOfUseAssets">
        <link:definition>999010 - Disclosure - Right-of-use Assets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVentures" id="InvestmentsInAssociatesAndJointVentures">
        <link:definition>999011 - Disclosure - Investments in Associates and Joint Ventures</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilities" id="AssetsHeldForSaleAndAssociatedLiabilities">
        <link:definition>999012 - Disclosure - Assets Held For Sale and Associated Liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/Inventories" id="Inventories">
        <link:definition>999013 - Disclosure - Inventories</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherReceivables" id="OtherReceivables">
        <link:definition>999014 - Disclosure - Other Receivables</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TradeReceivables" id="TradeReceivables">
        <link:definition>999015 - Disclosure - Trade Receivables</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInFinancialAssets" id="InvestmentsInFinancialAssets">
        <link:definition>999016 - Disclosure - Investments in Financial Assets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CashAndCashEquivalents" id="CashAndCashEquivalents">
        <link:definition>999017 - Disclosure - Cash and Cash Equivalents</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/Provisions" id="Provisions">
        <link:definition>999018 - Disclosure - Provisions</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTax" id="IncomeTax">
        <link:definition>999019 - Disclosure - Income Tax</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TaxesPayable" id="TaxesPayable">
        <link:definition>999020 - Disclosure - Taxes Payable</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SalariesAndSocialSecurity" id="SalariesAndSocialSecurity">
        <link:definition>999021 - Disclosure - Salaries and social security</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LeaseLiabilities" id="LeaseLiabilities">
        <link:definition>999022 - Disclosure - Lease liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/Loans" id="Loans">
        <link:definition>999023 - Disclosure - Loans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherLiabilities" id="OtherLiabilities">
        <link:definition>999024 - Disclosure - Other Liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AccountsPayable" id="AccountsPayable">
        <link:definition>999025 - Disclosure - Accounts payable</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/Revenues" id="Revenues">
        <link:definition>999026 - Disclosure - Revenues</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/Costs" id="Costs">
        <link:definition>999027 - Disclosure - Costs</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ExpensesByNature" id="ExpensesByNature">
        <link:definition>999028 - Disclosure - Expenses by Nature</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherNetOperatingResults" id="OtherNetOperatingResults">
        <link:definition>999029 - Disclosure - Other Net Operating Results</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/NetFinancialResults" id="NetFinancialResults">
        <link:definition>999030 - Disclosure - Net Financial Results</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiums" id="InvestmentsInJointOperationsAndConsortiums">
        <link:definition>999031 - Disclosure - Investments in Joint Operations and Consortiums</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ShareholdersEquity" id="ShareholdersEquity">
        <link:definition>999032 - Disclosure - Shareholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EarningsPerShare" id="EarningsPerShare">
        <link:definition>999033 - Disclosure - Earnings Per Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ContingentAssetsAndLiabilities" id="ContingentAssetsAndLiabilities">
        <link:definition>999034 - Disclosure - Contingent Assets and Liabilities</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ContractualCommitments" id="ContractualCommitments">
        <link:definition>999035 - Disclosure - Contractual Commitments</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/MainRegulations" id="MainRegulations">
        <link:definition>999036 - Disclosure - Main Regulations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedParties" id="BalancesAndTransactionsWithRelatedParties">
        <link:definition>999037 - Disclosure - Balances and Transactions with Related Parties</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligations" id="EmployeeBenefitPlansAndSimilarObligations">
        <link:definition>999038 - Disclosure - Employee Benefit Plans and Similar Obligations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SubsequentEvents" id="SubsequentEvents">
        <link:definition>999039 - Disclosure - Subsequent Events</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnaudited" id="SupplementalInformationOnOilAndGasProducingActivitiesUnaudited">
        <link:definition>999040 - Disclosure - Supplemental Information on Oil and Gas Producing Activities (Unaudited)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies" id="BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies">
        <link:definition>999041 - Disclosure - Basis of Preparation of the Consolidated Financial Statements (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables" id="GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables">
        <link:definition>999042 - Disclosure - General Information, Structure and Organization of the Business of the Group (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsTables" id="BasisOfPreparationOfTheConsolidatedFinancialStatementsTables">
        <link:definition>999043 - Disclosure - Basis of Preparation of the Consolidated Financial Statements (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AcquisitionsAndDisposalsTables" id="AcquisitionsAndDisposalsTables">
        <link:definition>999044 - Disclosure - Acquisitions and Disposals (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementTables" id="FinancialRiskManagementTables">
        <link:definition>999045 - Disclosure - Financial Risk Management (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BusinessSegmentInformationTables" id="BusinessSegmentInformationTables">
        <link:definition>999046 - Disclosure - Business Segment Information (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategoryTables" id="FinancialInstrumentsByCategoryTables">
        <link:definition>999047 - Disclosure - Financial Instruments by Category (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IntangibleAssetsTables" id="IntangibleAssetsTables">
        <link:definition>999048 - Disclosure - Intangible Assets (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentTables" id="PropertyPlantAndEquipmentTables">
        <link:definition>999049 - Disclosure - Property, Plant and Equipment (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RightOfUseAssetsTables" id="RightOfUseAssetsTables">
        <link:definition>999050 - Disclosure - Right-of-use Assets (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables" id="InvestmentsInAssociatesAndJointVenturesTables">
        <link:definition>999051 - Disclosure - Investments in Associates and Joint Ventures (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesTables" id="AssetsHeldForSaleAndAssociatedLiabilitiesTables">
        <link:definition>999052 - Disclosure - Assets Held For Sale and Associated Liabilities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InventoriesTables" id="InventoriesTables">
        <link:definition>999053 - Disclosure - Inventories (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherReceivablesTables" id="OtherReceivablesTables">
        <link:definition>999054 - Disclosure - Other Receivables (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TradeReceivablesTables" id="TradeReceivablesTables">
        <link:definition>999055 - Disclosure - Trade Receivables (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInFinancialAssetsTables" id="InvestmentsInFinancialAssetsTables">
        <link:definition>999056 - Disclosure - Investments in Financial Assets (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CashAndCashEquivalentsTables" id="CashAndCashEquivalentsTables">
        <link:definition>999057 - Disclosure - Cash and Cash Equivalents (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ProvisionsTables" id="ProvisionsTables">
        <link:definition>999058 - Disclosure - Provisions (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxTables" id="IncomeTaxTables">
        <link:definition>999059 - Disclosure - Income Tax (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TaxesPayableTables" id="TaxesPayableTables">
        <link:definition>999060 - Disclosure - Taxes Payable (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SalariesAndSocialSecurityTables" id="SalariesAndSocialSecurityTables">
        <link:definition>999061 - Disclosure - Salaries and social security (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LeaseLiabilitiesTables" id="LeaseLiabilitiesTables">
        <link:definition>999062 - Disclosure - Lease liabilities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LoansTables" id="LoansTables">
        <link:definition>999063 - Disclosure - Loans (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherLiabilitiesTables" id="OtherLiabilitiesTables">
        <link:definition>999064 - Disclosure - Other Liabilities (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AccountsPayableTables" id="AccountsPayableTables">
        <link:definition>999065 - Disclosure - Accounts payable (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesTables" id="RevenuesTables">
        <link:definition>999066 - Disclosure - Revenues (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CostsTables" id="CostsTables">
        <link:definition>999067 - Disclosure - Costs (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ExpensesByNatureTables" id="ExpensesByNatureTables">
        <link:definition>999068 - Disclosure - Expenses by Nature (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherNetOperatingResultsTables" id="OtherNetOperatingResultsTables">
        <link:definition>999069 - Disclosure - Other Net Operating Results (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/NetFinancialResultsTables" id="NetFinancialResultsTables">
        <link:definition>999070 - Disclosure - Net Financial Results (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsTables" id="InvestmentsInJointOperationsAndConsortiumsTables">
        <link:definition>999071 - Disclosure - Investments in Joint Operations and Consortiums (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EarningsPerShareTables" id="EarningsPerShareTables">
        <link:definition>999072 - Disclosure - Earnings Per Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables" id="BalancesAndTransactionsWithRelatedPartiesTables">
        <link:definition>999073 - Disclosure - Balances and Transactions with Related Parties (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables" id="EmployeeBenefitPlansAndSimilarObligationsTables">
        <link:definition>999074 - Disclosure - Employee Benefit Plans and Similar Obligations (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables">
        <link:definition>999075 - Disclosure - Supplemental Information on Oil and Gas Producing Activities (Unaudited) (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail" id="GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail">
        <link:definition>999076 - Disclosure - General Information, Structure and Organization of the Business of the Group - Summary of Main Companies of the Group (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail" id="BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail">
        <link:definition>999077 - Disclosure - Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail" id="BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail">
        <link:definition>999078 - Disclosure - Basis of Preparation of the Consolidated Financial Statements - Detailed Information About Property, Plant and Equipment (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail" id="AcquisitionsAndDisposalsAdditionalInformationDetail">
        <link:definition>999079 - Disclosure - Acquisitions and Disposals - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail" id="AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail">
        <link:definition>999080 - Disclosure - Acquisitions and Disposals - Summary Of Fair Values Of The Identifiable Assets Acquired And The Liabilities Assumed (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail" id="FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail">
        <link:definition>999081 - Disclosure - Financial Risk Management - Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail" id="FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail">
        <link:definition>999082 - Disclosure - Financial Risk Management - Information about Financial Assets and Liabilities That Accrues Interest Considering Applicable Rate (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail" id="FinancialRiskManagementAdditionalInformationDetail">
        <link:definition>999083 - Disclosure - Financial Risk Management - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail" id="FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail">
        <link:definition>999084 - Disclosure - Financial Risk Management - Schedule of Estimated Impact on Consolidated Comprehensive Income that an Increase or Decrease of 100 Basis Points in Interest Rate (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail" id="FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail">
        <link:definition>999085 - Disclosure - Financial Risk Management - Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail" id="FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail">
        <link:definition>999086 - Disclosure - Financial Risk Management - Schedule of Maturity Dates of Financial Liabilities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail" id="FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail">
        <link:definition>999087 - Disclosure - Financial Risk Management - Summary of Maximum Exposure to Credit Risk (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail" id="FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail">
        <link:definition>999088 - Disclosure - Financial Risk Management - Summary of Breakdown of the Financial Assets (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail" id="BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail">
        <link:definition>999089 - Disclosure - Business Segment Information - Summary of Business Segment Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail" id="BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail">
        <link:definition>999090 - Disclosure - Business Segment Information - Summary of Business Segment Information (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail" id="FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail">
        <link:definition>999091 - Disclosure - Financial Instruments by Category - Summary of Financial Assets and Liabilities by Category of Financial Instrument and Reconciliation (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail" id="FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail">
        <link:definition>999092 - Disclosure - Financial Instruments by Category - Summary of Gains and Losses on Financial Instruments (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail" id="FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail">
        <link:definition>999093 - Disclosure - Financial Instruments by Category - Summary of Company's Financial Assets Measured at Fair Value (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail" id="FinancialInstrumentsByCategoryAdditionalInformationDetail">
        <link:definition>999094 - Disclosure - Financial Instruments by Category - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail" id="IntangibleAssetsScheduleOfIntangibleAssetsDetail">
        <link:definition>999095 - Disclosure - Intangible Assets - Schedule of Intangible Assets (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail" id="IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail">
        <link:definition>999096 - Disclosure - Intangible Assets - Summary of Changes in Intangible Assets (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail" id="PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail">
        <link:definition>999097 - Disclosure - Property, Plant and Equipment - Summary of Property Plant and Equipment (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail" id="PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail">
        <link:definition>999098 - Disclosure - Property Plant and Equipment - Summary of Changes in Property Plant and Equipment (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail" id="PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail">
        <link:definition>999099 - Disclosure - Property Plant and Equipment - Summary of Changes in Property Plant and Equipment (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail" id="PropertyPlantAndEquipmentAdditionalInformationDetail">
        <link:definition>999100 - Disclosure - Property, Plant and Equipment - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail" id="PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail">
        <link:definition>999101 - Disclosure - Property, Plant and Equipment - Summary of Provision for Obsolescence of Materials and Equipment (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail" id="PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail">
        <link:definition>999102 - Disclosure - Property, Plant and Equipment - Summary of Provisions for Impairment of Property, Plant and Equipment (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail" id="PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail">
        <link:definition>999103 - Disclosure - Property, Plant and Equipment - Summary of Provisions for Impairment of Property, Plant and Equipment (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail" id="PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail">
        <link:definition>999104 - Disclosure - Property, Plant and Equipment - Summary of Property, Plant and Equipment by Geographic Area (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail" id="RightOfUseAssetsAdditionalInformationDetail">
        <link:definition>999105 - Disclosure - Right-of-use Assets - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail" id="RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail">
        <link:definition>999106 - Disclosure - Right-of-use Assets - Summary of Evolution of the Group's Right-of-use Assets (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail" id="RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail">
        <link:definition>999107 - Disclosure - Right-of-use Assets -Summary of Evolution of the Group's Right-of-use Assets (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail" id="InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail">
        <link:definition>999108 - Disclosure - Investments in Associates and Joint Ventures - Summary of Investments in Associates and Joint Ventures at an Aggregate Level (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail" id="InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail">
        <link:definition>999109 - Disclosure - Investments in Associates and Joint Ventures - Summary of Movements Which Affected the Value of the Investments in associates and joint ventures (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail">
        <link:definition>999110 - Disclosure - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail" id="InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail">
        <link:definition>999111 - Disclosure - Investments in Associates and Joint Ventures - Summary of analysis of assets and liabilities of significant associates and joint ventures (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail" id="InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail">
        <link:definition>999112 - Disclosure - Investments in Associates and Joint Ventures  - Summary of the investments in associates and joint ventures on a disaggregated basis (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail" id="AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail">
        <link:definition>999113 - Disclosure - Assets Held for Sale and Associated Liabilities - Summary of the Main Assets Held For Sale and Associated Liabilities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail" id="AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail">
        <link:definition>999114 - Disclosure - Assets Held for Sale and Associated Liabilities - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail" id="InventoriesSummaryOfInventoriesDetail">
        <link:definition>999115 - Disclosure - Inventories - Summary of Inventories (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InventoriesSummaryOfInventoriesParentheticalDetail" id="InventoriesSummaryOfInventoriesParentheticalDetail">
        <link:definition>999116 - Disclosure - Inventories - Summary of Inventories (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail" id="OtherReceivablesSummaryOfOtherReceivablesDetail">
        <link:definition>999117 - Disclosure - Other Receivables - Summary of Other Receivables (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail" id="TradeReceivablesSummaryOfTradeReceivablesDetail">
        <link:definition>999118 - Disclosure - Trade Receivables - Summary of Trade Receivables (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail" id="TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail">
        <link:definition>999119 - Disclosure - Trade Receivables - Summary of Evolution of the Provision for Doubtful Trade Receivables (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail" id="InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail">
        <link:definition>999120 - Disclosure - Investments in Financial Assets - Summary of Investments in Financial Assets (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail" id="CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail">
        <link:definition>999121 - Disclosure - Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail" id="CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail">
        <link:definition>999122 - Disclosure - Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail" id="ProvisionsSummaryOfChangesInGroupsProvisionsDetail">
        <link:definition>999123 - Disclosure - Provisions - Summary of Changes in Group's Provisions (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail" id="ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail">
        <link:definition>999124 - Disclosure - Provisions - Summary of Changes in Group's Provisions (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ProvisionsAdditionalInformationDetail" id="ProvisionsAdditionalInformationDetail">
        <link:definition>999125 - Disclosure - Provisions - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail" id="IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail">
        <link:definition>999126 - Disclosure - Income Tax - Summary of Calculation of Income Tax Expense Accrued (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94" id="IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94">
        <link:definition>999127 - Disclosure - Income Tax - Summary of Reconciliation between the Charge to Net Income for Income Tax and the One that would Result from Applying the Prevailing Tax Rate on Net Income Before Income Tax Arising from the Consolidated Statements of Comprehensive Income (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail" id="IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail">
        <link:definition>999128 - Disclosure - Income Tax - Summary of Breakdown of Income Tax Liability (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail" id="IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail">
        <link:definition>999129 - Disclosure - Income Tax - Summary of Breakdown of Income Tax Liability (Parentheticals) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail" id="IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail">
        <link:definition>999130 - Disclosure - Income Tax - Summary of Breakdown of Deferred Tax (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail" id="IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail">
        <link:definition>999131 - Disclosure - Income Tax - Summary of Breakdown of Deferred Tax (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail" id="IncomeTaxAdditionalInformationDetail">
        <link:definition>999132 - Disclosure - Income Tax - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail" id="TaxesPayableSummaryOfTaxesPayableDetail">
        <link:definition>999133 - Disclosure - Taxes Payable - Summary of taxes payable (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail" id="SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail">
        <link:definition>999134 - Disclosure - Salaries and social security - Summary of detailed information about salaries and social security (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail" id="LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail">
        <link:definition>999135 - Disclosure - Lease liabilities - Summary of Lease Libilities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail" id="LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail">
        <link:definition>999136 - Disclosure - Lease liabilities - Summary of lease liabilities and discount rates (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail" id="LeaseLiabilitiesAdditionalInformationDetail">
        <link:definition>999137 - Disclosure - Lease liabilities - Additional information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail" id="LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail">
        <link:definition>999138 - Disclosure - Lease liabilities - Summary of lease liabilities activity (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LoansScheduleOfLoansDetail" id="LoansScheduleOfLoansDetail">
        <link:definition>999139 - Disclosure - Loans - Schedule of Loans (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail" id="LoansScheduleOfLoansParentheticalDetail">
        <link:definition>999140 - Disclosure - Loans - Schedule of Loans (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail" id="LoansEvolutionOfTheLoansDetail">
        <link:definition>999141 - Disclosure - Loans - Evolution of the Loans (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail" id="LoansDetailsOfNegotiableObligationsDetail">
        <link:definition>999142 - Disclosure - Loans - Details of Negotiable Obligations (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail" id="LoansDetailsOfNegotiableObligationsParentheticalDetail">
        <link:definition>999143 - Disclosure - Loans - Details of Negotiable Obligations (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail" id="OtherLiabilitiesDetailsOfOtherLiabilitiesDetail">
        <link:definition>999144 - Disclosure - Other Liabilities - Details of Other Liabilities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail" id="AccountsPayableDetailedInformationAboutAccountsPayableDetail">
        <link:definition>999145 - Disclosure - Accounts payable - Detailed Information about Accounts Payable (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail" id="RevenuesDetailedInformationAboutRevenueDetail">
        <link:definition>999146 - Disclosure - Revenues - Detailed Information about Revenue (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail" id="RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail">
        <link:definition>999147 - Disclosure - Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail" id="RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail">
        <link:definition>999148 - Disclosure - Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail" id="RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail">
        <link:definition>999149 - Disclosure - Revenues - Summary of Breakdown of Revenues by Sales Channels (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail" id="RevenuesSummaryOfRevenueByGeographicAreaDetail">
        <link:definition>999150 - Disclosure - Revenues - Summary of Revenue by Geographic Area (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesAdditionalInformationDetail" id="RevenuesAdditionalInformationDetail">
        <link:definition>999151 - Disclosure - Revenues - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail" id="RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail">
        <link:definition>999152 - Disclosure - Revenues - Summary of Credits, Contract Assets and Contract Liabilities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail" id="CostsDetailedInformationOfInventoryCostsDetail">
        <link:definition>999153 - Disclosure - Costs - Detailed Information of Inventory Costs (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail" id="ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail">
        <link:definition>999154 - Disclosure - Expenses by Nature - Detailed Information about Expenses by Nature (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail" id="ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail">
        <link:definition>999155 - Disclosure - Expenses by Nature - Detailed Information about Expenses by Nature (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/OtherNetOperatingResultsDetail" id="OtherNetOperatingResultsDetail">
        <link:definition>999156 - Disclosure - Other Net Operating Results (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail" id="NetFinancialResultsDetailedInformationAboutFinancialResultsDetail">
        <link:definition>999157 - Disclosure - Net Financial Results - Detailed Information about Financial Results (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail" id="NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail">
        <link:definition>999158 - Disclosure - Net Financial Results - Detailed Information about Financial Results (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail" id="InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail">
        <link:definition>999159 - Disclosure - Investments in Joint Operations and Consortiums - Information of Assets and Liabilities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail" id="InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail">
        <link:definition>999160 - Disclosure - Investments in Joint Operations and Consortiums - Information about Exploration and Exploitation of Joint Ventures and Other Agreements (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail" id="ShareholdersEquityAdditionalInformationDetail">
        <link:definition>999161 - Disclosure - Shareholders' Equity - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail" id="EarningsPerShareSummaryOfEarningsPerShareDetail">
        <link:definition>999162 - Disclosure - Earnings Per Share - Summary of Earnings Per Share (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail" id="ContingentAssetsAndLiabilitiesAdditionalInformationDetail">
        <link:definition>999163 - Disclosure - Contingent Assets and Liabilities - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail" id="ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail">
        <link:definition>999164 - Disclosure - Contractual Commitments - Contractual Commitments - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail" id="ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail">
        <link:definition>999165 - Disclosure - Contractual Commitments - Granted Guarantees - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail" id="MainRegulationsAdditionalInformationDetail">
        <link:definition>999166 - Disclosure - Main Regulations - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1" id="MainRegulationsAdditionalInformationDetail1">
        <link:definition>999167 - Disclosure - Main Regulations - Additional Information (Detail 1)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail" id="BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail">
        <link:definition>999168 - Disclosure - Balances and Transactions with Related Parties - Information Detailed in the Tables below Shows the Balances with Associates and Joint Ventures (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail" id="BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail">
        <link:definition>999169 - Disclosure - Balances and Transactions with Related Parties - Information about Related Party (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail" id="BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail">
        <link:definition>999170 - Disclosure - Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail" id="BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail">
        <link:definition>999171 - Disclosure - Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail" id="BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail">
        <link:definition>999172 - Disclosure - Balances and Transactions with Related Parties - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail" id="EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail">
        <link:definition>999173 - Disclosure - Employee Benefit Plans and Similar Obligations - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail" id="EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail">
        <link:definition>999174 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2020-2023) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail" id="EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail">
        <link:definition>999175 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2021-2024) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail" id="EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail">
        <link:definition>999176 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2022-2025) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail" id="EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail">
        <link:definition>999177 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2023-2026) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail" id="EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail">
        <link:definition>999178 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2024-2027) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail" id="EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail">
        <link:definition>999179 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2025-2028) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail" id="SubsequentEventsAdditionalInformationDetail">
        <link:definition>999180 - Disclosure - Subsequent Events - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail">
        <link:definition>999181 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in YPF's Net Proved Reserves (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail">
        <link:definition>999182 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in YPF's Net Proved Reserves (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail">
        <link:definition>999183 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Additional Information (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail">
        <link:definition>999184 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail">
        <link:definition>999185 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail">
        <link:definition>999186 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail">
        <link:definition>999187 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Parenthetical) (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail">
        <link:definition>999188 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Results of Operations from Oil and Gas Producing Activities (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail">
        <link:definition>999189 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Standardized Measure of Discounted Future Net Cash Flows (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" id="SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail">
        <link:definition>999190 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in the Standardized Measure of Discounted Future Net Cash Flows (Detail)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1">
        <link:definition>1008 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 1</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2">
        <link:definition>1009 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 2</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3">
        <link:definition>1010 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 3</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4">
        <link:definition>1011 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 4</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5">
        <link:definition>1012 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 5</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6">
        <link:definition>1013 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 6</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7">
        <link:definition>1014 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 7</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8">
        <link:definition>1015 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 8</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:roleType roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9" id="InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9">
        <link:definition>1016 - Statement - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail) Alternate 9</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
      </link:roleType>
      <link:linkbase id="lnk" >
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CoverPage" roleURI="http://www.ypf.com/role/CoverPage"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ConsolidatedStatementsOfFinancialPosition" roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ConsolidatedStatementsOfComprehensiveIncome" roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ConsolidatedStatementsOfChangesInShareholdersEquity" roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical" roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ConsolidatedStatementsOfCashFlow" roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ConsolidatedStatementsOfCashFlowsParenthetical" roleURI="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#GeneralInformationStructureAndOrganizationOfTheGroupSBusiness" roleURI="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheGroupSBusiness"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BasisOfPreparationOfTheConsolidatedFinancialStatements" roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatements"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AcquisitionsAndDisposals" roleURI="http://www.ypf.com/role/AcquisitionsAndDisposals"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagement" roleURI="http://www.ypf.com/role/FinancialRiskManagement"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BusinessSegmentInformation" roleURI="http://www.ypf.com/role/BusinessSegmentInformation"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialInstrumentsByCategory" roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategory"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IntangibleAssets" roleURI="http://www.ypf.com/role/IntangibleAssets"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipment" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipment"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RightOfUseAssets" roleURI="http://www.ypf.com/role/RightOfUseAssets"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVentures" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVentures"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AssetsHeldForSaleAndAssociatedLiabilities" roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilities"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#Inventories" roleURI="http://www.ypf.com/role/Inventories"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherReceivables" roleURI="http://www.ypf.com/role/OtherReceivables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TradeReceivables" roleURI="http://www.ypf.com/role/TradeReceivables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInFinancialAssets" roleURI="http://www.ypf.com/role/InvestmentsInFinancialAssets"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CashAndCashEquivalents" roleURI="http://www.ypf.com/role/CashAndCashEquivalents"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#Provisions" roleURI="http://www.ypf.com/role/Provisions"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTax" roleURI="http://www.ypf.com/role/IncomeTax"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TaxesPayable" roleURI="http://www.ypf.com/role/TaxesPayable"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SalariesAndSocialSecurity" roleURI="http://www.ypf.com/role/SalariesAndSocialSecurity"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LeaseLiabilities" roleURI="http://www.ypf.com/role/LeaseLiabilities"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#Loans" roleURI="http://www.ypf.com/role/Loans"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherLiabilities" roleURI="http://www.ypf.com/role/OtherLiabilities"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AccountsPayable" roleURI="http://www.ypf.com/role/AccountsPayable"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#Revenues" roleURI="http://www.ypf.com/role/Revenues"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#Costs" roleURI="http://www.ypf.com/role/Costs"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ExpensesByNature" roleURI="http://www.ypf.com/role/ExpensesByNature"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherNetOperatingResults" roleURI="http://www.ypf.com/role/OtherNetOperatingResults"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#NetFinancialResults" roleURI="http://www.ypf.com/role/NetFinancialResults"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInJointOperationsAndConsortiums" roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiums"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ShareholdersEquity" roleURI="http://www.ypf.com/role/ShareholdersEquity"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EarningsPerShare" roleURI="http://www.ypf.com/role/EarningsPerShare"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ContingentAssetsAndLiabilities" roleURI="http://www.ypf.com/role/ContingentAssetsAndLiabilities"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ContractualCommitments" roleURI="http://www.ypf.com/role/ContractualCommitments"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#MainRegulations" roleURI="http://www.ypf.com/role/MainRegulations"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedParties" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedParties"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligations" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligations"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SubsequentEvents" roleURI="http://www.ypf.com/role/SubsequentEvents"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnaudited" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnaudited"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies" roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables" roleURI="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BasisOfPreparationOfTheConsolidatedFinancialStatementsTables" roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AcquisitionsAndDisposalsTables" roleURI="http://www.ypf.com/role/AcquisitionsAndDisposalsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementTables" roleURI="http://www.ypf.com/role/FinancialRiskManagementTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BusinessSegmentInformationTables" roleURI="http://www.ypf.com/role/BusinessSegmentInformationTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialInstrumentsByCategoryTables" roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategoryTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IntangibleAssetsTables" roleURI="http://www.ypf.com/role/IntangibleAssetsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentTables" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RightOfUseAssetsTables" roleURI="http://www.ypf.com/role/RightOfUseAssetsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesTables" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AssetsHeldForSaleAndAssociatedLiabilitiesTables" roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InventoriesTables" roleURI="http://www.ypf.com/role/InventoriesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherReceivablesTables" roleURI="http://www.ypf.com/role/OtherReceivablesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TradeReceivablesTables" roleURI="http://www.ypf.com/role/TradeReceivablesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInFinancialAssetsTables" roleURI="http://www.ypf.com/role/InvestmentsInFinancialAssetsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CashAndCashEquivalentsTables" roleURI="http://www.ypf.com/role/CashAndCashEquivalentsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ProvisionsTables" roleURI="http://www.ypf.com/role/ProvisionsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxTables" roleURI="http://www.ypf.com/role/IncomeTaxTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TaxesPayableTables" roleURI="http://www.ypf.com/role/TaxesPayableTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SalariesAndSocialSecurityTables" roleURI="http://www.ypf.com/role/SalariesAndSocialSecurityTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LeaseLiabilitiesTables" roleURI="http://www.ypf.com/role/LeaseLiabilitiesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LoansTables" roleURI="http://www.ypf.com/role/LoansTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherLiabilitiesTables" roleURI="http://www.ypf.com/role/OtherLiabilitiesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AccountsPayableTables" roleURI="http://www.ypf.com/role/AccountsPayableTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesTables" roleURI="http://www.ypf.com/role/RevenuesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CostsTables" roleURI="http://www.ypf.com/role/CostsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ExpensesByNatureTables" roleURI="http://www.ypf.com/role/ExpensesByNatureTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherNetOperatingResultsTables" roleURI="http://www.ypf.com/role/OtherNetOperatingResultsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#NetFinancialResultsTables" roleURI="http://www.ypf.com/role/NetFinancialResultsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInJointOperationsAndConsortiumsTables" roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EarningsPerShareTables" roleURI="http://www.ypf.com/role/EarningsPerShareTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedPartiesTables" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsTables" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail" roleURI="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail" roleURI="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AcquisitionsAndDisposalsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail" roleURI="http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementAdditionalInformationDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail" roleURI="http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail" roleURI="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail" roleURI="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail" roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail" roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail" roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#FinancialInstrumentsByCategoryAdditionalInformationDetail" roleURI="http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IntangibleAssetsScheduleOfIntangibleAssetsDetail" roleURI="http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail" roleURI="http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentAdditionalInformationDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail" roleURI="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RightOfUseAssetsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail" roleURI="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail" roleURI="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail" roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail" roleURI="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InventoriesSummaryOfInventoriesDetail" roleURI="http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InventoriesSummaryOfInventoriesParentheticalDetail" roleURI="http://www.ypf.com/role/InventoriesSummaryOfInventoriesParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherReceivablesSummaryOfOtherReceivablesDetail" roleURI="http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TradeReceivablesSummaryOfTradeReceivablesDetail" roleURI="http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail" roleURI="http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail" roleURI="http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail" roleURI="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail" roleURI="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ProvisionsSummaryOfChangesInGroupsProvisionsDetail" roleURI="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail" roleURI="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ProvisionsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail" roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94" roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail" roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail" roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail" roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail" roleURI="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#IncomeTaxAdditionalInformationDetail" roleURI="http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#TaxesPayableSummaryOfTaxesPayableDetail" roleURI="http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail" roleURI="http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail" roleURI="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail" roleURI="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LeaseLiabilitiesAdditionalInformationDetail" roleURI="http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail" roleURI="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LoansScheduleOfLoansDetail" roleURI="http://www.ypf.com/role/LoansScheduleOfLoansDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LoansScheduleOfLoansParentheticalDetail" roleURI="http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LoansEvolutionOfTheLoansDetail" roleURI="http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LoansDetailsOfNegotiableObligationsDetail" roleURI="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#LoansDetailsOfNegotiableObligationsParentheticalDetail" roleURI="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherLiabilitiesDetailsOfOtherLiabilitiesDetail" roleURI="http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#AccountsPayableDetailedInformationAboutAccountsPayableDetail" roleURI="http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesDetailedInformationAboutRevenueDetail" roleURI="http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail" roleURI="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail" roleURI="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail" roleURI="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesSummaryOfRevenueByGeographicAreaDetail" roleURI="http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesAdditionalInformationDetail" roleURI="http://www.ypf.com/role/RevenuesAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail" roleURI="http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#CostsDetailedInformationOfInventoryCostsDetail" roleURI="http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail" roleURI="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail" roleURI="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#OtherNetOperatingResultsDetail" roleURI="http://www.ypf.com/role/OtherNetOperatingResultsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#NetFinancialResultsDetailedInformationAboutFinancialResultsDetail" roleURI="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail" roleURI="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail" roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail" roleURI="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ShareholdersEquityAdditionalInformationDetail" roleURI="http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EarningsPerShareSummaryOfEarningsPerShareDetail" roleURI="http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ContingentAssetsAndLiabilitiesAdditionalInformationDetail" roleURI="http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail" roleURI="http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#MainRegulationsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#MainRegulationsAdditionalInformationDetail1" roleURI="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail" roleURI="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail" roleURI="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SubsequentEventsAdditionalInformationDetail" roleURI="http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" roleURI="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8"  />
        <link:roleRef xlink:type="simple" xlink:href="ypf-20251231.xsd#InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9" roleURI="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd#negatedLabel" roleURI="http://www.xbrl.org/2009/role/negatedLabel"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd#negatedPeriodEndLabel" roleURI="http://www.xbrl.org/2009/role/negatedPeriodEndLabel"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd#negatedPeriodStartLabel" roleURI="http://www.xbrl.org/2009/role/negatedPeriodStartLabel"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd#negatedTotalLabel" roleURI="http://www.xbrl.org/2009/role/negatedTotalLabel"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd#negatedNetLabel" roleURI="http://www.xbrl.org/2009/role/negatedNetLabel"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd#negatedTerseLabel" roleURI="http://www.xbrl.org/2009/role/negatedTerseLabel"  />
        <link:roleRef xlink:type="simple" xlink:href="http://www.xbrl.org/lrr/role/net-2009-12-16.xsd#netLabel" roleURI="http://www.xbrl.org/2009/role/netLabel"  />
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CoverPage" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CoverAbstract" xlink:label="loc_dei_CoverAbstract_1403434" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_1403435" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_CoverAbstract_1403434" xlink:to="loc_dei_DocumentInformationTable_1403435" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesAxis" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationTable_1403435" xlink:to="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesDomain" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" xlink:to="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassASharesMember" xlink:label="loc_ypf_ClassASharesMember_1403564" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassASharesMember_1403564" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassBSharesMember" xlink:label="loc_ypf_ClassBSharesMember_1403566" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassBSharesMember_1403566" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassCSharesMember" xlink:label="loc_ypf_ClassCSharesMember_1403567" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassCSharesMember_1403567" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassDSharesMember" xlink:label="loc_ypf_ClassDSharesMember_1403569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassDSharesMember_1403569" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AdrMember" xlink:label="loc_dei_AdrMember_1403570" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_dei_AdrMember_1403570" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressesAddressTypeAxis" xlink:label="loc_dei_EntityAddressesAddressTypeAxis_1403571" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationTable_1403435" xlink:to="loc_dei_EntityAddressesAddressTypeAxis_1403571" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_1403572" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_1403571" xlink:to="loc_dei_AddressTypeDomain_1403572" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_BusinessContactMember" xlink:label="loc_dei_BusinessContactMember_1403573" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_AddressTypeDomain_1403572" xlink:to="loc_dei_BusinessContactMember_1403573" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_1403574" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationTable_1403435" xlink:to="loc_dei_DocumentInformationLineItems_1403574" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_1403575" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentType_1403575" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_1403576" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AmendmentFlag_1403576" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_1403577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityInteractiveDataCurrent_1403577" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_1403578" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentPeriodEndDate_1403578" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_1403579" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentFiscalYearFocus_1403579" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_1403580" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentFiscalPeriodFocus_1403580" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_1403581" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_TradingSymbol_1403581" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_1403582" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityRegistrantName_1403582" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_1403583" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityCentralIndexKey_1403583" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_1403584" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_CurrentFiscalYearEndDate_1403584" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_1403585" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_1403585" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_1403586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityVoluntaryFilers_1403586" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_1403587" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityCurrentReportingStatus_1403587" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_1403588" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityFilerCategory_1403588" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_1403589" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityShellCompany_1403589" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_1403590" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityEmergingGrowthCompany_1403590" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_1403591" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_1403591" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentRegistrationStatement" xlink:label="loc_dei_DocumentRegistrationStatement_1403592" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentRegistrationStatement_1403592" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentAnnualReport" xlink:label="loc_dei_DocumentAnnualReport_1403593" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentAnnualReport_1403593" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_1403594" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentTransitionReport_1403594" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentShellCompanyReport" xlink:label="loc_dei_DocumentShellCompanyReport_1403595" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentShellCompanyReport_1403595" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_1403596" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_Security12bTitle_1403596" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_1403597" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_SecurityExchangeName_1403597" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_NoTradingSymbolFlag" xlink:label="loc_dei_NoTradingSymbolFlag_1403598" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_NoTradingSymbolFlag_1403598" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_IcfrAuditorAttestationFlag" xlink:label="loc_dei_IcfrAuditorAttestationFlag_1403599" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_IcfrAuditorAttestationFlag_1403599" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorName" xlink:label="loc_dei_AuditorName_1403600" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AuditorName_1403600" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorFirmId" xlink:label="loc_dei_AuditorFirmId_1403601" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AuditorFirmId_1403601" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorLocation" xlink:label="loc_dei_AuditorLocation_1403602" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AuditorLocation_1403602" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentAccountingStandard" xlink:label="loc_dei_DocumentAccountingStandard_1403603" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentAccountingStandard_1403603" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_ContactPersonnelName" xlink:label="loc_dei_ContactPersonnelName_1403604" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_ContactPersonnelName_1403604" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_1403605" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_CityAreaCode_1403605" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_1403606" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_LocalPhoneNumber_1403606" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_1403607" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityFileNumber_1403607" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_1403608" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressAddressLine1_1403608" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_1403610" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressPostalZipCode_1403610" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_1403611" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressCityOrTown_1403611" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCountry" xlink:label="loc_dei_EntityAddressCountry_1403613" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressCountry_1403613" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_1403614" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityIncorporationStateCountryCode_1403614" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFinStmtErrorCorrectionFlag" xlink:label="loc_dei_DocumentFinStmtErrorCorrectionFlag_1403617" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentFinStmtErrorCorrectionFlag_1403617" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfFinancialPositionAbstract" xlink:label="loc_ifrs-full_StatementOfFinancialPositionAbstract_27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAbstract" xlink:label="loc_ifrs-full_AssetsAbstract_28" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfFinancialPositionAbstract_27" xlink:to="loc_ifrs-full_AssetsAbstract_28" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssetsAbstract" xlink:label="loc_ifrs-full_NoncurrentAssetsAbstract_33" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAbstract_28" xlink:to="loc_ifrs-full_NoncurrentAssetsAbstract_33" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_61" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_61" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_62" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_62" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="loc_ifrs-full_RightofuseAssets_630571" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_RightofuseAssets_630571" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod_63" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod_63" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssets" xlink:label="loc_ifrs-full_DeferredTaxAssets_65" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_DeferredTaxAssets_65" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables_66" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_OtherNoncurrentReceivables_66" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentTradeReceivables" xlink:label="loc_ifrs-full_NoncurrentTradeReceivables_67" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_NoncurrentTradeReceivables_67" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_1328882" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_1328882" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets_69" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract_33" xlink:to="loc_ifrs-full_NoncurrentAssets_69" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssetsAbstract" xlink:label="loc_ifrs-full_CurrentAssetsAbstract_29" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAbstract_28" xlink:to="loc_ifrs-full_CurrentAssetsAbstract_29" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale_36" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale_36" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories_37" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_Inventories_37" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractAssets" xlink:label="loc_ifrs-full_CurrentContractAssets_38" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_CurrentContractAssets_38" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables_39" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_OtherCurrentReceivables_39" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables_40" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_CurrentTradeReceivables_40" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets_41" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_CurrentFinancialAssets_41" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_42" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_CashAndCashEquivalents_42" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets_43" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentAssetsAbstract_29" xlink:to="loc_ifrs-full_CurrentAssets_43" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_35" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAbstract_28" xlink:to="loc_ifrs-full_Assets_35" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAbstract" xlink:label="loc_ifrs-full_EquityAbstract_31" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfFinancialPositionAbstract_27" xlink:to="loc_ifrs-full_EquityAbstract_31" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IssuedCapital" xlink:label="loc_ifrs-full_IssuedCapital_1403618" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_IssuedCapital_1403618" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TreasuryShares" xlink:label="loc_ifrs-full_TreasuryShares_1403619" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_TreasuryShares_1403619" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlans" xlink:label="loc_ypf_ShareBasedBenefitPlans_1403622" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_ShareBasedBenefitPlans_1403622" use="optional" order="25" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionCostOfTreasuryShares" xlink:label="loc_ypf_AcquisitionCostOfTreasuryShares_1403632" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_AcquisitionCostOfTreasuryShares_1403632" use="optional" order="26" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareTradingPremiums" xlink:label="loc_ypf_ShareTradingPremiums_1403644" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_ShareTradingPremiums_1403644" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SharePremium" xlink:label="loc_ifrs-full_SharePremium_1403624" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_SharePremium_1403624" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserve" xlink:label="loc_ifrs-full_StatutoryReserve_1403625" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_StatutoryReserve_1403625" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForFutureDividends" xlink:label="loc_ypf_ReserveForFutureDividends_1403626" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_ReserveForFutureDividends_1403626" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForInvestments" xlink:label="loc_ypf_ReserveForInvestments_1403627" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_ReserveForInvestments_1403627" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForPurchaseOfTreasuryShares" xlink:label="loc_ypf_ReserveForPurchaseOfTreasuryShares_1403628" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_ReserveForPurchaseOfTreasuryShares_1403628" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncome" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_1403631" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome_1403631" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnappropriatedRetainedEarningsAndLosses" xlink:label="loc_ypf_UnappropriatedRetainedEarningsAndLosses_1403630" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ypf_UnappropriatedRetainedEarningsAndLosses_1403630" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent_56" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent_56" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncontrollingInterests" xlink:label="loc_ifrs-full_NoncontrollingInterests_57" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_NoncontrollingInterests_57" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity_58" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EquityAbstract_31" xlink:to="loc_ifrs-full_Equity_58" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiabilitiesAbstract" xlink:label="loc_ifrs-full_LiabilitiesAbstract_32" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfFinancialPositionAbstract_27" xlink:to="loc_ifrs-full_LiabilitiesAbstract_32" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilitiesAbstract" xlink:label="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LiabilitiesAbstract_32" xlink:to="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherLongtermProvisions" xlink:label="loc_ifrs-full_OtherLongtermProvisions_71" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_OtherLongtermProvisions_71" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentContractLiabilities" xlink:label="loc_ifrs-full_NoncurrentContractLiabilities_1402340" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_NoncurrentContractLiabilities_1402340" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilities" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_72" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_72" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesNoncurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent_636500" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent_636500" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_74" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_74" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurity" xlink:label="loc_ypf_SalariesAndSocialSecurity_861549" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ypf_SalariesAndSocialSecurity_861549" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLeaseLiabilities" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_630575" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_630575" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermBorrowings" xlink:label="loc_ifrs-full_LongtermBorrowings_75" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_LongtermBorrowings_75" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_76" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_76" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayables" xlink:label="loc_ifrs-full_NoncurrentPayables_77" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_NoncurrentPayables_77" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities_78" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract_34" xlink:to="loc_ifrs-full_NoncurrentLiabilities_78" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilitiesAbstract" xlink:label="loc_ifrs-full_CurrentLiabilitiesAbstract_30" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LiabilitiesAbstract_32" xlink:to="loc_ifrs-full_CurrentLiabilitiesAbstract_30" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_1402736" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale_1402736" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherShorttermProvisions" xlink:label="loc_ifrs-full_OtherShorttermProvisions_45" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_OtherShorttermProvisions_45" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractLiabilities" xlink:label="loc_ifrs-full_CurrentContractLiabilities_47" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_CurrentContractLiabilities_47" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesCurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_46" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent_46" use="optional" order="55" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_48" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_48" use="optional" order="56" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:label="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals_49" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals_49" use="optional" order="57" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLeaseLiabilities" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_630580" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_630580" use="optional" order="58" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermBorrowings" xlink:label="loc_ifrs-full_ShorttermBorrowings_50" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_ShorttermBorrowings_50" use="optional" order="59" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentLiabilities" xlink:label="loc_ifrs-full_OtherCurrentLiabilities_51" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_OtherCurrentLiabilities_51" use="optional" order="60" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_52" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_52" use="optional" order="61" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities_53" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract_30" xlink:to="loc_ifrs-full_CurrentLiabilities_53" use="optional" order="62" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_59" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LiabilitiesAbstract_32" xlink:to="loc_ifrs-full_Liabilities_59" use="optional" order="63" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAndLiabilities" xlink:label="loc_ifrs-full_EquityAndLiabilities_60" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LiabilitiesAbstract_32" xlink:to="loc_ifrs-full_EquityAndLiabilities_60" use="optional" order="64" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeStatementAbstract" xlink:label="loc_ifrs-full_IncomeStatementAbstract_80" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AnalysisOfIncomeAndExpenseAbstract" xlink:label="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_88" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_Revenue_88" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CostOfSales" xlink:label="loc_ifrs-full_CostOfSales_89" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_CostOfSales_89" use="optional" order="3" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossProfit" xlink:label="loc_ifrs-full_GrossProfit_90" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_GrossProfit_90" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DistributionCosts" xlink:label="loc_ifrs-full_DistributionCosts_91" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_DistributionCosts_91" use="optional" order="5" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdministrativeExpense" xlink:label="loc_ifrs-full_AdministrativeExpense_92" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_AdministrativeExpense_92" use="optional" order="6" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xlink:label="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources_93" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources_93" use="optional" order="7" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_94" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_94" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense_95" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_OtherOperatingIncomeExpense_95" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_96" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract_81" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_96" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_106" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_106" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome_107" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_FinanceIncome_107" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts_108" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_FinanceCosts_108" use="optional" order="13" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinanceIncomeCost" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost_109" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost_109" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost_110" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_FinanceIncomeCost_110" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_111" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_111" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_112" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_112" use="optional" order="17" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_113" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ProfitLoss_113" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" xlink:label="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract_83" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract_83" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_98" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract_83" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax_98" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xlink:label="loc_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition_99" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract_83" xlink:to="loc_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition_99" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xlink:label="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures_1403178" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract_83" xlink:to="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures_1403178" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_103" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract_83" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_103" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome_115" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ComprehensiveIncome_115" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToAbstract" xlink:label="loc_ifrs-full_ProfitLossAttributableToAbstract_87" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ProfitLossAttributableToAbstract_87" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_118" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProfitLossAttributableToAbstract_87" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_118" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_119" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProfitLossAttributableToAbstract_87" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests_119" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeAttributableToAbstract" xlink:label="loc_ypf_OtherComprehensiveIncomeAttributableToAbstract_86" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ypf_OtherComprehensiveIncomeAttributableToAbstract_86" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent_116" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherComprehensiveIncomeAttributableToAbstract_86" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent_116" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests_117" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherComprehensiveIncomeAttributableToAbstract_86" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests_117" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToAbstract" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToAbstract_85" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToAbstract_85" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_104" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToAbstract_85" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent_104" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_105" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToAbstract_85" xlink:to="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests_105" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EarningsPerShareAbstract" xlink:label="loc_ifrs-full_EarningsPerShareAbstract_82" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeStatementAbstract_80" xlink:to="loc_ifrs-full_EarningsPerShareAbstract_82" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BasicEarningsLossPerShare" xlink:label="loc_ifrs-full_BasicEarningsLossPerShare_1402637" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EarningsPerShareAbstract_82" xlink:to="loc_ifrs-full_BasicEarningsLossPerShare_1402637" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DilutedEarningsLossPerShare" xlink:label="loc_ifrs-full_DilutedEarningsLossPerShare_1402638" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EarningsPerShareAbstract_82" xlink:to="loc_ifrs-full_DilutedEarningsLossPerShare_1402638" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityAbstract" xlink:label="loc_ifrs-full_StatementOfChangesInEquityAbstract_121" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityTable" xlink:label="loc_ifrs-full_StatementOfChangesInEquityTable_127" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityAbstract_121" xlink:to="loc_ifrs-full_StatementOfChangesInEquityTable_127" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_122" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_127" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_122" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_123" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_122" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_123" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IssuedCapitalMember" xlink:label="loc_ifrs-full_IssuedCapitalMember_128" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_IssuedCapitalMember_128" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TreasurySharesMember" xlink:label="loc_ifrs-full_TreasurySharesMember_130" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_TreasurySharesMember_130" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfSharebasedPaymentsMember" xlink:label="loc_ifrs-full_ReserveOfSharebasedPaymentsMember_132" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_ReserveOfSharebasedPaymentsMember_132" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionCostOfTreasurySharesMember" xlink:label="loc_ypf_AcquisitionCostOfTreasurySharesMember_133" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_AcquisitionCostOfTreasurySharesMember_133" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareTradingPremiumMember" xlink:label="loc_ypf_ShareTradingPremiumMember_134" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_ShareTradingPremiumMember_134" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SharePremiumMember" xlink:label="loc_ifrs-full_SharePremiumMember_135" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_SharePremiumMember_135" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserveMember" xlink:label="loc_ifrs-full_StatutoryReserveMember_137" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_StatutoryReserveMember_137" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForFutureDividendsMember" xlink:label="loc_ypf_ReservesForFutureDividendsMember_138" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_ReservesForFutureDividendsMember_138" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_139" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_139" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForPurchaseOfTreasuryShareMember" xlink:label="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_140" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_140" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncomeMember_142" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncomeMember_142" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnappropriatedRetainedEarningsAndLossesMember" xlink:label="loc_ypf_UnappropriatedRetainedEarningsAndLossesMember_1402643" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_UnappropriatedRetainedEarningsAndLossesMember_1402643" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_144" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_144" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncontrollingInterestsMember" xlink:label="loc_ifrs-full_NoncontrollingInterestsMember_145" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_NoncontrollingInterestsMember_145" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityLineItems" xlink:label="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_127" xlink:to="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity_148" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_Equity_148" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xlink:label="loc_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity_149" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity_149" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CancellationOfTreasuryShares" xlink:label="loc_ifrs-full_CancellationOfTreasuryShares_1402114" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_CancellationOfTreasuryShares_1402114" use="optional" order="21" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions_151" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions_151" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xlink:label="loc_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity_1402127" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity_1402127" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConstitutionOfReservesEquity" xlink:label="loc_ypf_ConstitutionOfReservesEquity_1402129" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_ConstitutionOfReservesEquity_1402129" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReleaseOfReservesEquity" xlink:label="loc_ypf_ReleaseOfReservesEquity_1403193" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_ReleaseOfReservesEquity_1403193" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AppropriationToReservesEquity" xlink:label="loc_ypf_AppropriationToReservesEquity_1403184" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_AppropriationToReservesEquity_1403184" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_154" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_154" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_155" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_ProfitLoss_155" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity_156" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_Equity_156" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityAbstract" xlink:label="loc_ifrs-full_StatementOfChangesInEquityAbstract_158" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityTable" xlink:label="loc_ifrs-full_StatementOfChangesInEquityTable_162" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityAbstract_158" xlink:to="loc_ifrs-full_StatementOfChangesInEquityTable_162" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_162" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_160" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_160" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityLineItems" xlink:label="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_162" xlink:to="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_165" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_165" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xlink:label="loc_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition_166" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" xlink:to="loc_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition_166" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfCashFlowsAbstract" xlink:label="loc_ifrs-full_StatementOfCashFlowsAbstract_168" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract_172" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract_172" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_207" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract_172" xlink:to="loc_ifrs-full_ProfitLoss_207" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForReconcileProfitLossAbstract" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract_172" xlink:to="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_174" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_174" use="optional" order="4" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDepreciationExpense" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationExpense_175" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationExpense_175" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForAmortisationExpense" xlink:label="loc_ifrs-full_AdjustmentsForAmortisationExpense_176" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForAmortisationExpense_176" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_636550" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_636550" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" xlink:label="loc_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets_177" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets_177" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncomeTaxExpense" xlink:label="loc_ifrs-full_AdjustmentsForIncomeTaxExpense_178" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForIncomeTaxExpense_178" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForProvisions" xlink:label="loc_ifrs-full_AdjustmentsForProvisions_180" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForProvisions_180" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" xlink:label="loc_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories_1402535" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories_1402535" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" xlink:label="loc_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains_181" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains_181" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForSharebasedPayments" xlink:label="loc_ifrs-full_AdjustmentsForSharebasedPayments_182" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_AdjustmentsForSharebasedPayments_182" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForResultFromSaleOfAssets" xlink:label="loc_ypf_AdjustmentsForResultFromSaleOfAssets_1402057" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ypf_AdjustmentsForResultFromSaleOfAssets_1402057" use="optional" order="14" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" xlink:label="loc_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets_1402753" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets_1402753" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughrevaluationofcompanies" xlink:label="loc_ypf_Increasedecreasethroughrevaluationofcompanies_1403235" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ypf_Increasedecreasethroughrevaluationofcompanies_1403235" use="optional" order="16" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughsaleofcompanies" xlink:label="loc_ypf_Increasedecreasethroughsaleofcompanies_1403237" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ypf_Increasedecreasethroughsaleofcompanies_1403237" use="optional" order="17" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xlink:label="loc_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome_1330827" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome_1330827" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" xlink:label="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract_169" xlink:to="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable_209" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable_209" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables_210" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables_210" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories_211" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories_211" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable_212" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable_212" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_213" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities_213" use="optional" order="24" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities_214" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities_214" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities_215" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities_215" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForIncreaseDecreaseInProvision" xlink:label="loc_ypf_AdjustmentsForIncreaseDecreaseInProvision_216" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ypf_AdjustmentsForIncreaseDecreaseInProvision_216" use="optional" order="27" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets_1335963" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets_1335963" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities_1336238" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities_1336238" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_219" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_219" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xlink:label="loc_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance_220" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance_220" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_221" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract_173" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities_221" use="optional" order="32" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1402058" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract_172" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities_1402058" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_199" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets_199" use="optional" order="35" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xlink:label="loc_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale_1402752" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale_1402752" use="optional" order="36" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xlink:label="loc_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures_200" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures_200" use="optional" order="37" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xlink:label="loc_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents_1403233" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents_1403233" use="optional" order="38" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities_201" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities_201" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities_861569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities_861569" use="optional" order="40" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestReceivedClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_InterestReceivedClassifiedAsInvestingActivities_202" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ifrs-full_InterestReceivedClassifiedAsInvestingActivities_202" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xlink:label="loc_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets_1402536" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets_1402536" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_206" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract_171" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities_206" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_186" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_186" use="optional" order="45" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_187" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_187" use="optional" order="46" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_188" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_188" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xlink:label="loc_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities_1402056" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities_1402056" use="optional" order="48" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:label="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares_189" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares_189" use="optional" order="49" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_636549" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities_636549" use="optional" order="50" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PaymentOfInterestsOnIncomeTax" xlink:label="loc_ypf_PaymentOfInterestsOnIncomeTax_636556" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ypf_PaymentOfInterestsOnIncomeTax_636556" use="optional" order="51" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_192" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract_170" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities_192" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_193" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents_193" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_196" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents_196" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_197" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_CashAndCashEquivalents_197" use="optional" order="55" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_198" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_168" xlink:to="loc_ifrs-full_CashAndCashEquivalents_198" use="optional" order="56" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfCashFlowsAbstract" xlink:label="loc_ifrs-full_StatementOfCashFlowsAbstract_223" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PaymentOfShortTermLeaseAndVariableCharge" xlink:label="loc_ypf_PaymentOfShortTermLeaseAndVariableCharge_887549" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_223" xlink:to="loc_ypf_PaymentOfShortTermLeaseAndVariableCharge_887549" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCashTransactionsAbstract" xlink:label="loc_ypf_NonCashTransactionsAbstract_224" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract_223" xlink:to="loc_ypf_NonCashTransactionsAbstract_224" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" xlink:label="loc_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets_1402538" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets_1402538" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnpaidAdditionsOfAssetsHeldForSale" xlink:label="loc_ypf_UnpaidAdditionsOfAssetsHeldForSale_1402754" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_UnpaidAdditionsOfAssetsHeldForSale_1402754" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" xlink:label="loc_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts_1403239" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts_1403239" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="loc_ifrs-full_AdditionsToRightofuseAssets_636567" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ifrs-full_AdditionsToRightofuseAssets_636567" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfDepreciationOfRightOfUseAssets" xlink:label="loc_ypf_CapitalizationOfDepreciationOfRightOfUseAssets_861571" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_CapitalizationOfDepreciationOfRightOfUseAssets_861571" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xlink:label="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities_636576" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities_636576" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DebtCapitalizationOfJointVentures" xlink:label="loc_ypf_DebtCapitalizationOfJointVentures_636577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_DebtCapitalizationOfJointVentures_636577" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" xlink:label="loc_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions_1403241" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions_1403241" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Receivablesfromsaleofnoncashsettledassets" xlink:label="loc_ypf_Receivablesfromsaleofnoncashsettledassets_1403242" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_Receivablesfromsaleofnoncashsettledassets_1403242" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnpaidReceivablesFromSaleOfCompanies" xlink:label="loc_ypf_UnpaidReceivablesFromSaleOfCompanies_1403243" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NonCashTransactionsAbstract_224" xlink:to="loc_ypf_UnpaidReceivablesFromSaleOfCompanies_1403243" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheGroupSBusiness" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2701" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfGeneralInformationExplanatory" xlink:label="loc_ypf_DisclosureOfGeneralInformationExplanatory_2702" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2701" xlink:to="loc_ypf_DisclosureOfGeneralInformationExplanatory_2702" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatements" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2704" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory_2705" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2704" xlink:to="loc_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory_2705" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposals" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2741" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsExplanatory_2742" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2741" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsExplanatory_2742" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagement" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2749" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureFinancialRiskManagementExplanatory" xlink:label="loc_ypf_DisclosureFinancialRiskManagementExplanatory_2750" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2749" xlink:to="loc_ypf_DisclosureFinancialRiskManagementExplanatory_2750" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BusinessSegmentInformation" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2761" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory_2762" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2761" xlink:to="loc_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory_2762" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategory" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2768" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory_2769" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2768" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory_2769" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IntangibleAssets" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2776" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfIntangibleAssetsExplanatory_2777" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2776" xlink:to="loc_ifrs-full_DisclosureOfIntangibleAssetsExplanatory_2777" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipment" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2782" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory_2783" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2782" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory_2783" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssets" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_637514" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRightOfUseAssets" xlink:label="loc_ypf_DisclosureOfRightOfUseAssets_637516" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_637514" xlink:to="loc_ypf_DisclosureOfRightOfUseAssets_637516" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVentures" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2793" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory_2794" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2793" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory_2794" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilities" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402809" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" xlink:label="loc_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock_1402810" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402809" xlink:to="loc_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock_1402810" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/Inventories" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2803" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInventoriesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfInventoriesExplanatory_2804" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2803" xlink:to="loc_ifrs-full_DisclosureOfInventoriesExplanatory_2804" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherReceivables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2809" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory_2810" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2809" xlink:to="loc_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory_2810" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TradeReceivables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2815" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesExplanatory" xlink:label="loc_ypf_DisclosureOfTradeReceivablesExplanatory_2816" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2815" xlink:to="loc_ypf_DisclosureOfTradeReceivablesExplanatory_2816" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInFinancialAssets" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_1330541" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock_1330609" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_1330541" xlink:to="loc_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock_1330609" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalents" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2822" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory_2823" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2822" xlink:to="loc_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory_2823" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/Provisions" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2828" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfProvisionsExplanatory_2829" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2828" xlink:to="loc_ifrs-full_DisclosureOfProvisionsExplanatory_2829" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTax" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2834" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfIncomeTaxExplanatory" xlink:label="loc_ifrs-full_DisclosureOfIncomeTaxExplanatory_2835" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2834" xlink:to="loc_ifrs-full_DisclosureOfIncomeTaxExplanatory_2835" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TaxesPayable" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_637385" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayable" xlink:label="loc_ypf_DisclosureOfTaxesPayable_637386" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_637385" xlink:to="loc_ypf_DisclosureOfTaxesPayable_637386" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SalariesAndSocialSecurity" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xlink:label="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637151" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" xlink:label="loc_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock_637152" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637151" xlink:to="loc_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock_637152" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilities" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract_637172" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfLeasesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfLeasesExplanatory_637173" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637172" xlink:to="loc_ifrs-full_DisclosureOfLeasesExplanatory_637173" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/Loans" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2843" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" xlink:label="loc_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory_2844" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2843" xlink:to="loc_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory_2844" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherLiabilities" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2851" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory_2852" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2851" xlink:to="loc_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory_2852" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AccountsPayable" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2857" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAccountsPayableExplanatory" xlink:label="loc_ypf_DisclosureOfAccountsPayableExplanatory_2858" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2857" xlink:to="loc_ypf_DisclosureOfAccountsPayableExplanatory_2858" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/Revenues" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2863" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfRevenueExplanatory" xlink:label="loc_ifrs-full_DisclosureOfRevenueExplanatory_2864" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2863" xlink:to="loc_ifrs-full_DisclosureOfRevenueExplanatory_2864" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/Costs" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2872" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfExpensesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfExpensesExplanatory_2873" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2872" xlink:to="loc_ifrs-full_DisclosureOfExpensesExplanatory_2873" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNature" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2878" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfExpensesByNatureExplanatory" xlink:label="loc_ifrs-full_DisclosureOfExpensesByNatureExplanatory_2879" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2878" xlink:to="loc_ifrs-full_DisclosureOfExpensesByNatureExplanatory_2879" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherNetOperatingResults" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2884" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" xlink:label="loc_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory_2885" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2884" xlink:to="loc_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory_2885" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/NetFinancialResults" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2890" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFinancialResultsNetExplanatory" xlink:label="loc_ypf_DisclosureOfFinancialResultsNetExplanatory_2891" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2890" xlink:to="loc_ypf_DisclosureOfFinancialResultsNetExplanatory_2891" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiums" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" xlink:label="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract_2896" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsExplanatory_2897" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract_2896" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsExplanatory_2897" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ShareholdersEquity" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2903" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" xlink:label="loc_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory_2904" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2903" xlink:to="loc_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory_2904" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EarningsPerShare" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2906" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfEarningsPerShareExplanatory" xlink:label="loc_ifrs-full_DisclosureOfEarningsPerShareExplanatory_2907" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2906" xlink:to="loc_ifrs-full_DisclosureOfEarningsPerShareExplanatory_2907" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContingentAssetsAndLiabilities" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2915" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory_2916" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2915" xlink:to="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory_2916" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContractualCommitments" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2918" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCommitmentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfCommitmentsExplanatory_2919" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2918" xlink:to="loc_ifrs-full_DisclosureOfCommitmentsExplanatory_2919" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/MainRegulations" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2924" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" xlink:label="loc_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory_2925" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2924" xlink:to="loc_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory_2925" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedParties" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2927" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" xlink:label="loc_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory_2928" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2927" xlink:to="loc_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory_2928" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligations" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2935" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory_2936" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2935" xlink:to="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory_2936" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SubsequentEvents" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2957" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" xlink:label="loc_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory_2958" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2957" xlink:to="loc_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory_2958" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnaudited" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2960" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory_2961" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2960" xlink:to="loc_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory_2961" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2707" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" xlink:label="loc_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock_1402430" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock_1402430" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory_1402434" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory_1402434" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory_2711" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory_2711" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory_2713" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory_2713" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory_2719" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory_2719" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory_2715" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory_2715" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory_2712" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory_2712" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory_1402427" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory_1402427" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories_2710" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories_2710" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory_2726" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory_2726" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory_2723" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory_2723" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory_2717" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory_2717" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue_2718" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue_2718" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory_2731" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory_2731" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory_2733" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory_2733" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory_1402432" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory_1402432" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory_2735" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2707" xlink:to="loc_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory_2735" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_1402766" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock_1402769" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_1402766" xlink:to="loc_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock_1402769" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2737" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" xlink:label="loc_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory_2738" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2737" xlink:to="loc_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory_2738" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposalsTables" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsAbstract" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsAbstract_2744" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsAbstract_2744" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402734" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402734" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_637063" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_637063" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_637064" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_637063" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_637064" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember_1403409" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_637064" xlink:to="loc_ypf_MobilArgentinaSaMember_1403409" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1403410" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_637064" xlink:to="loc_ypf_OLCLPMember_1403410" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403411" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_637064" xlink:to="loc_ypf_VmiMember_1403411" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403412" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_JointVenturesAxis_1403412" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403413" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_1403412" xlink:to="loc_ifrs-full_JointVenturesDomain_1403413" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1403414" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1403413" xlink:to="loc_ypf_RefinorMember_1403414" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_637058" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_637058" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock_1403234" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_637058" xlink:to="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock_1403234" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2752" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory_2753" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory_2753" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory_2754" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory_2754" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" xlink:label="loc_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory_2755" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory_2755" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" xlink:label="loc_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory_2756" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory_2756" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" xlink:label="loc_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities_2757" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities_2757" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExplanatory" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExplanatory_2758" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ifrs-full_DisclosureOfCreditRiskExplanatory_2758" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory_2759" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2752" xlink:to="loc_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory_2759" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BusinessSegmentInformationTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2764" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsExplanatory_2765" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2764" xlink:to="loc_ifrs-full_DisclosureOfOperatingSegmentsExplanatory_2765" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategoryTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2771" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory_2772" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2771" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory_2772" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock_2773" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2771" xlink:to="loc_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock_2773" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory_2774" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2771" xlink:to="loc_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory_2774" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IntangibleAssetsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2779" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory_631420" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2779" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory_631420" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory_2780" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2779" xlink:to="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory_2780" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2785" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory_2786" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2785" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory_2786" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory_2787" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2785" xlink:to="loc_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory_2787" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" xlink:label="loc_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory_2788" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2785" xlink:to="loc_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory_2788" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory_2789" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2785" xlink:to="loc_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory_2789" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock_1402568" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2785" xlink:to="loc_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock_1402568" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_637520" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory_637521" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_637520" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory_637521" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2796" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory_2797" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2796" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory_2797" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory_2798" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2796" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory_2798" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory_2799" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2796" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory_2799" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" xlink:label="loc_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory_2800" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2796" xlink:to="loc_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory_2800" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" xlink:label="loc_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock_1402774" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2796" xlink:to="loc_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock_1402774" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402814" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" xlink:label="loc_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock_1402816" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402814" xlink:to="loc_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock_1402816" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InventoriesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2806" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory_2807" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2806" xlink:to="loc_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory_2807" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherReceivablesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2812" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherAccountsReceivableExplanatory" xlink:label="loc_ypf_DisclosureOfOtherAccountsReceivableExplanatory_2813" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2812" xlink:to="loc_ypf_DisclosureOfOtherAccountsReceivableExplanatory_2813" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TradeReceivablesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2818" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory_2819" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2818" xlink:to="loc_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory_2819" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" xlink:label="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory_2820" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2818" xlink:to="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory_2820" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInFinancialAssetsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_1330545" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsExplanatory_1330612" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_1330545" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsExplanatory_1330612" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalentsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2825" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory_2826" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2825" xlink:to="loc_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory_2826" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2831" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixExplanatory" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixExplanatory_2832" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2831" xlink:to="loc_ifrs-full_DisclosureOfProvisionMatrixExplanatory_2832" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2837" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory_2838" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2837" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory_2838" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" xlink:label="loc_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory_2839" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2837" xlink:to="loc_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory_2839" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDeferredTaxesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDeferredTaxesExplanatory_2840" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2837" xlink:to="loc_ifrs-full_DisclosureOfDeferredTaxesExplanatory_2840" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TaxesPayableTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_637387" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutTaxesPayable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutTaxesPayable_637395" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_637387" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutTaxesPayable_637395" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SalariesAndSocialSecurityTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xlink:label="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637156" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock_637157" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637156" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock_637157" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilitiesTables" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract_637175" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" xlink:label="loc_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock_861914" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637175" xlink:to="loc_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock_861914" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" xlink:label="loc_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock_637176" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637175" xlink:to="loc_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock_637176" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" xlink:label="loc_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock_637177" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637175" xlink:to="loc_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock_637177" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2846" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory_2847" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2846" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory_2847" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEvolutionLoansExplanatory" xlink:label="loc_ypf_DisclosureOfEvolutionLoansExplanatory_2848" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2846" xlink:to="loc_ypf_DisclosureOfEvolutionLoansExplanatory_2848" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfNegotiableObligationsExplanatory" xlink:label="loc_ypf_DisclosureOfNegotiableObligationsExplanatory_2849" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2846" xlink:to="loc_ypf_DisclosureOfNegotiableObligationsExplanatory_2849" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherLiabilitiesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2854" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" xlink:label="loc_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory_2855" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2854" xlink:to="loc_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory_2855" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AccountsPayableTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2860" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory_2861" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2860" xlink:to="loc_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory_2861" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2866" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfNetRevenueExplanatory" xlink:label="loc_ypf_DisclosureOfNetRevenueExplanatory_2867" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2866" xlink:to="loc_ypf_DisclosureOfNetRevenueExplanatory_2867" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" xlink:label="loc_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory_2868" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2866" xlink:to="loc_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory_2868" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" xlink:label="loc_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory_2869" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2866" xlink:to="loc_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory_2869" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" xlink:label="loc_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock_1402424" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2866" xlink:to="loc_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock_1402424" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" xlink:label="loc_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory_2870" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2866" xlink:to="loc_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory_2870" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CostsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2875" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" xlink:label="loc_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory_2876" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2875" xlink:to="loc_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory_2876" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNatureTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2881" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" xlink:label="loc_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory_2882" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2881" xlink:to="loc_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory_2882" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherNetOperatingResultsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2887" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherOperatingResultsNetExplanatory" xlink:label="loc_ypf_DisclosureOfOtherOperatingResultsNetExplanatory_2888" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2887" xlink:to="loc_ypf_DisclosureOfOtherOperatingResultsNetExplanatory_2888" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/NetFinancialResultsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2893" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" xlink:label="loc_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory_2894" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2893" xlink:to="loc_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory_2894" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsTables" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" xlink:label="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract_2899" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" xlink:label="loc_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory_2900" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract_2899" xlink:to="loc_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory_2900" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" xlink:label="loc_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory_2901" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract_2899" xlink:to="loc_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory_2901" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EarningsPerShareTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2909" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EarningsPerShareExplanatory" xlink:label="loc_ifrs-full_EarningsPerShareExplanatory_2910" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2909" xlink:to="loc_ifrs-full_EarningsPerShareExplanatory_2910" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2930" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" xlink:label="loc_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory_2931" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2930" xlink:to="loc_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory_2931" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" xlink:label="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory_2932" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2930" xlink:to="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory_2932" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" xlink:label="loc_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory_2933" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2930" xlink:to="loc_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory_2933" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2938" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2938" xlink:to="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_859643" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_859643" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1330086" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1330086" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember_1402104" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember_1402104" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402390" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402390" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember_1403194" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember_1403194" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember_1403196" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember_1403196" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems_2940" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" xlink:to="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems_2940" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory_2949" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems_2940" xlink:to="loc_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory_2949" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract_2963" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TextBlock1Abstract_2963" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasLiquidsMember" xlink:label="loc_ypf_NaturalGasLiquidsMember_2970" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965" xlink:to="loc_ypf_NaturalGasLiquidsMember_2970" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ReserveQuantitiesByTypeOfReserveAxis" xlink:label="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" xlink:to="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain_2969" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" xlink:to="loc_srt_TypeOfReserveDomain_2969" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_OilReservesMember" xlink:label="loc_srt_OilReservesMember_2977" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_TypeOfReserveDomain_2969" xlink:to="loc_srt_OilReservesMember_2977" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember_2978" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_TypeOfReserveDomain_2969" xlink:to="loc_ypf_NaturalGasMember_2978" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilEquivalentMember" xlink:label="loc_ypf_OilEquivalentMember_2979" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_TypeOfReserveDomain_2969" xlink:to="loc_ypf_OilEquivalentMember_2979" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory_2971" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory_2971" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCapitalizedCostsExplanatory" xlink:label="loc_ypf_DisclosureOfCapitalizedCostsExplanatory_2972" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfCapitalizedCostsExplanatory_2972" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xlink:label="loc_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory_2973" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory_2973" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xlink:label="loc_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory_2974" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory_2974" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory_2975" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory_2975" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xlink:label="loc_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory_2976" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory_2976" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupAbstract" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupAbstract_1402776" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupTable" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupAbstract_1402776" xlink:to="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupAxis" xlink:label="loc_ypf_EntityGroupAxis_1403078" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" xlink:to="loc_ypf_EntityGroupAxis_1403078" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupDomain" xlink:label="loc_ypf_EntityGroupDomain_1403079" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EntityGroupAxis_1403078" xlink:to="loc_ypf_EntityGroupDomain_1403079" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1403080" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_UpstreamMember_1403080" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1403081" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1403081" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1403082" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_LNGandIntegratedGasMember_1403082" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403177" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_NewEnergiesMember_1403177" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_1403083" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_1403083" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EleranMember" xlink:label="loc_ypf_EleranMember_1402861" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_EleranMember_1402861" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScGasMember" xlink:label="loc_ypf_ScGasMember_1403198" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_ScGasMember_1403198" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403199" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_VmiMember_1403199" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OPESSAMember" xlink:label="loc_ypf_OPESSAMember_1402862" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OPESSAMember_1402862" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1402866" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OLCLPMember_1402866" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1402865" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_RefinorMember_1402865" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMember" xlink:label="loc_ypf_OTAMember_1402867" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OTAMember_1402867" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTCMember" xlink:label="loc_ypf_OTCMember_1402868" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OTCMember_1402868" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember_1402869" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OldelvalMember_1402869" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember_1403200" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OTAMERICAMember_1403200" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember_1402872" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_TermapMember_1402872" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember_1402871" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_VmosMember_1402871" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember_1402889" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YPFGasMember_1402889" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFChileMember" xlink:label="loc_ypf_YPFChileMember_1402863" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YPFChileMember_1402863" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ArgentinaLngMember" xlink:label="loc_ypf_ArgentinaLngMember_1402882" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_ArgentinaLngMember_1402882" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergeticasMember" xlink:label="loc_ypf_SurInversionesEnergeticasMember_1402884" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_SurInversionesEnergeticasMember_1402884" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember_1402885" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_MEGAMember_1402885" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember_1402873" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_MetrogasMember_1402873" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetroenergiaMember" xlink:label="loc_ypf_MetroenergiaMember_1402874" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_MetroenergiaMember_1402874" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YTECMember" xlink:label="loc_ypf_YTECMember_1402895" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YTECMember_1402895" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfVenturesMember" xlink:label="loc_ypf_YpfVenturesMember_1402899" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YpfVenturesMember_1402899" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_1402886" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YPFEEMember_1402886" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1402887" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_CTBarraganMember_1402887" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember_1402888" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_CDSMember_1402888" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AESAMember" xlink:label="loc_ypf_AESAMember_1402890" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_AESAMember_1402890" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfDigitalMember" xlink:label="loc_ypf_YpfDigitalMember_1403201" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YpfDigitalMember_1403201" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupLineItems" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" xlink:to="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfSubsidiary" xlink:label="loc_ifrs-full_NameOfSubsidiary_1403063" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_NameOfSubsidiary_1403063" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfJointVenture" xlink:label="loc_ifrs-full_NameOfJointVenture_1403074" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_NameOfJointVenture_1403074" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfAssociate" xlink:label="loc_ifrs-full_NameOfAssociate_1403070" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_NameOfAssociate_1403070" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" xlink:label="loc_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary_1403069" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary_1403069" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOfJointVenture" xlink:label="loc_ifrs-full_CountryOfIncorporationOfJointVenture_1403075" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_CountryOfIncorporationOfJointVenture_1403075" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" xlink:label="loc_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate_1403071" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate_1403071" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xlink:label="loc_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary_1402779" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary_1402779" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture_1403076" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture_1403076" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate_1403072" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate_1403072" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402792" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402792" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/disclosureGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointVenture_1403077" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointVenture_1403077" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInAssociate_1403073" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInAssociate_1403073" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract_231" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract_231" xlink:to="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_286" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_286" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_248" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_RangeAxis_248" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_249" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_248" xlink:to="loc_ifrs-full_RangeDomain_249" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_239" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_239" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_243" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_MaturityAxis_243" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_232" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_243" xlink:to="loc_ifrs-full_MaturityDomain_232" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_240" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_240" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_250" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_SegmentsAxis_250" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_251" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsAxis_250" xlink:to="loc_ifrs-full_SegmentsDomain_251" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_234" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_234" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_241" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_234" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_241" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis_252" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ypf_EventAfterReportingAxis_252" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_253" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EventAfterReportingAxis_252" xlink:to="loc_ypf_EventAfterReportingMember_253" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_246" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_246" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_247" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_246" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_247" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_245" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_245" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain_636805" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain_636805" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_640257" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_NewIFRSsAxis_640257" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_640258" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NewIFRSsAxis_640257" xlink:to="loc_ifrs-full_NewIFRSsDomain_640258" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_861702" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_861702" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_865000" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_GeographicalAreasAxis_865000" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_865001" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_865000" xlink:to="loc_ifrs-full_GeographicalAreasDomain_865001" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember_1402107" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" xlink:to="loc_ifrs-full_RestatedMember_1402107" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember_1402361" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" xlink:to="loc_ypf_MetrogasMember_1402361" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YTECMember" xlink:label="loc_ypf_YTECMember_1402362" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" xlink:to="loc_ypf_YTECMember_1402362" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OPESSAMember" xlink:label="loc_ypf_OPESSAMember_1403192" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" xlink:to="loc_ypf_OPESSAMember_1403192" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402358" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402358" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" xlink:label="loc_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax_1403195" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" xlink:to="loc_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax_1403195" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract_306" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract_306" xlink:to="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_311" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" xlink:to="loc_ifrs-full_RangeAxis_311" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_312" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_311" xlink:to="loc_ifrs-full_RangeDomain_312" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_322" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_312" xlink:to="loc_ifrs-full_BottomOfRangeMember_322" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_323" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_312" xlink:to="loc_ifrs-full_TopOfRangeMember_323" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BuildingsMember" xlink:label="loc_ifrs-full_BuildingsMember_314" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_BuildingsMember_314" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember_315" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_MachineryMember_315" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OilAndGasAssetsMember" xlink:label="loc_ifrs-full_OilAndGasAssetsMember_316" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_OilAndGasAssetsMember_316" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember_317" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_VehiclesMember_317" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixturesAndFittingsMember" xlink:label="loc_ifrs-full_FixturesAndFittingsMember_318" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_FixturesAndFittingsMember_318" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OfficeEquipmentMember" xlink:label="loc_ifrs-full_OfficeEquipmentMember_319" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_OfficeEquipmentMember_319" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherPropertyPlantAndEquipmentMember" xlink:label="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_321" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_321" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_308" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_308" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment_1402292" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_308" xlink:to="loc_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment_1402292" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsAbstract" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsAbstract_339" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsAbstract_339" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_341" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_341" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_346" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_341" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_346" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1403296" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_346" xlink:to="loc_ypf_OLCLPMember_1403296" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403299" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_346" xlink:to="loc_ypf_VmiMember_1403299" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember_1402767" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" xlink:to="loc_ypf_MobilArgentinaSaMember_1402767" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataMember" xlink:label="loc_ypf_SierraChataMember_1402768" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" xlink:to="loc_ypf_SierraChataMember_1402768" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_348" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_348" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis_352" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_JointOperationsAxis_352" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_347" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsAxis_352" xlink:to="loc_ifrs-full_JointOperationsDomain_347" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_345" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_345" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_350" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_GeographicalAreasAxis_350" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_351" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_350" xlink:to="loc_ifrs-full_GeographicalAreasDomain_351" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_354" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_RangeAxis_354" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_355" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_354" xlink:to="loc_ifrs-full_RangeDomain_355" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_353" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_MaturityAxis_353" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_340" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_353" xlink:to="loc_ifrs-full_MaturityDomain_340" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_636910" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_636910" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_636916" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_CounterpartiesAxis_636916" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_636917" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CounterpartiesAxis_636916" xlink:to="loc_ifrs-full_CounterpartiesDomain_636917" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis_637108" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ypf_EventAfterReportingAxis_637108" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_637109" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EventAfterReportingAxis_637108" xlink:to="loc_ypf_EventAfterReportingMember_637109" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermAxis" xlink:label="loc_ypf_TypeOfTermAxis_862161" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ypf_TypeOfTermAxis_862161" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermMember" xlink:label="loc_ypf_TypeOfTermMember_862162" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TypeOfTermAxis_862161" xlink:to="loc_ypf_TypeOfTermMember_862162" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402547" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402547" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403308" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_JointVenturesAxis_1403308" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403309" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_1403308" xlink:to="loc_ifrs-full_JointVenturesDomain_1403309" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1403310" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1403309" xlink:to="loc_ypf_RefinorMember_1403310" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember_1403315" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1403309" xlink:to="loc_ypf_ProfertilMember_1403315" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_374" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_374" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xlink:label="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1402545" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1402545" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInOtherOperatingResults" xlink:label="loc_ypf_IncreaseInOtherOperatingResults_1403297" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_IncreaseInOtherOperatingResults_1403297" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403298" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403298" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorkingInterestInUnconventionalExploitationConcessions" xlink:label="loc_ypf_WorkingInterestInUnconventionalExploitationConcessions_1403302" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_WorkingInterestInUnconventionalExploitationConcessions_1403302" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_1403305" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_1403305" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403306" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403306" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" xlink:label="loc_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned_1403307" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned_1403307" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashTransferred" xlink:label="loc_ifrs-full_CashTransferred_1403312" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_CashTransferred_1403312" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" xlink:label="loc_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits_1403313" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits_1403313" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xlink:label="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures_1403314" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures_1403314" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisposalOfSubsidiariesSalePrice" xlink:label="loc_ypf_DisposalOfSubsidiariesSalePrice_1403316" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_DisposalOfSubsidiariesSalePrice_1403316" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestDisposed" xlink:label="loc_ypf_PercentageOfOwnershipInterestDisposed_1403317" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_PercentageOfOwnershipInterestDisposed_1403317" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" xlink:label="loc_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment_1403318" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment_1403318" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" xlink:label="loc_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations_1403319" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations_1403319" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract_1403255" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract_1403255" xlink:to="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis_1403267" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ifrs-full_MeasurementAxis_1403267" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_1403268" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MeasurementAxis_1403267" xlink:to="loc_ifrs-full_MeasurementDomain_1403268" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AtFairValueMember" xlink:label="loc_ifrs-full_AtFairValueMember_1403269" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MeasurementDomain_1403268" xlink:to="loc_ifrs-full_AtFairValueMember_1403269" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationAxis" xlink:label="loc_ypf_BusinessCombinationAxis_1403258" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ypf_BusinessCombinationAxis_1403258" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationDomain" xlink:label="loc_ypf_BusinessCombinationDomain_1403259" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BusinessCombinationAxis_1403258" xlink:to="loc_ypf_BusinessCombinationDomain_1403259" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember_1403261" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BusinessCombinationDomain_1403259" xlink:to="loc_ypf_MobilArgentinaSaMember_1403261" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1403262" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BusinessCombinationDomain_1403259" xlink:to="loc_ypf_OLCLPMember_1403262" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403263" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BusinessCombinationDomain_1403259" xlink:to="loc_ypf_VmiMember_1403263" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403293" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ifrs-full_JointVenturesAxis_1403293" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403294" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_1403293" xlink:to="loc_ifrs-full_JointVenturesDomain_1403294" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1403295" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1403294" xlink:to="loc_ypf_RefinorMember_1403295" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate_1403266" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate_1403266" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate_1403270" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate_1403270" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_InventoryRecognisedAsOfAcquisitionDate_1403289" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_InventoryRecognisedAsOfAcquisitionDate_1403289" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate_1403271" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate_1403271" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate_1403272" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate_1403272" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate_1403284" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate_1403284" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate_1403273" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate_1403273" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionsRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_ProvisionsRecognisedAsOfAcquisitionDate_1403274" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_ProvisionsRecognisedAsOfAcquisitionDate_1403274" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate_1403275" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate_1403275" use="optional" order="22" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate_1403285" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate_1403285" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate_1403288" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate_1403288" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate_1403291" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate_1403291" use="optional" order="25" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate_1403276" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate_1403276" use="optional" order="26" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:label="loc_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed_1403277" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed_1403277" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_464" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_464" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_466" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_srt_CurrencyAxis_466" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_465" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_CurrencyAxis_466" xlink:to="loc_currency_AllCurrenciesDomain_465" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_USD" xlink:label="loc_currency_USD_473" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_currency_AllCurrenciesDomain_465" xlink:to="loc_currency_USD_473" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_471" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_ifrs-full_TypesOfRisksAxis_471" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_472" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksAxis_471" xlink:to="loc_ifrs-full_TypesOfRisksDomain_472" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrencyRiskMember" xlink:label="loc_ifrs-full_CurrencyRiskMember_478" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksDomain_472" xlink:to="loc_ifrs-full_CurrencyRiskMember_478" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskAxis" xlink:label="loc_ypf_ForeignCurrencyRiskAxis_469" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_ypf_ForeignCurrencyRiskAxis_469" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain_470" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ForeignCurrencyRiskAxis_469" xlink:to="loc_ypf_ForeignCurrencyRiskDomain_470" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:label="loc_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_476" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_470" xlink:to="loc_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_476" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:label="loc_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_477" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_470" xlink:to="loc_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_477" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xlink:label="loc_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency_474" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" xlink:to="loc_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency_474" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_475" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_475" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract_480" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract_480" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_485" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" xlink:to="loc_ifrs-full_TypesOfRisksAxis_485" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_486" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksAxis_485" xlink:to="loc_ifrs-full_TypesOfRisksDomain_486" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember_1403124" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksDomain_486" xlink:to="loc_ifrs-full_InterestRateRiskMember_1403124" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_484" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_484" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_483" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_484" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_483" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixedInterestRateMember" xlink:label="loc_ifrs-full_FixedInterestRateMember_489" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_483" xlink:to="loc_ifrs-full_FixedInterestRateMember_489" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FloatingInterestRateMember" xlink:label="loc_ifrs-full_FloatingInterestRateMember_490" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_483" xlink:to="loc_ifrs-full_FloatingInterestRateMember_490" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets_487" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" xlink:to="loc_ifrs-full_FinancialAssets_487" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities_488" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" xlink:to="loc_ifrs-full_FinancialLiabilities_488" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_493" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_493" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_504" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_TypesOfRisksAxis_504" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_505" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksAxis_504" xlink:to="loc_ifrs-full_TypesOfRisksDomain_505" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember_1403123" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksDomain_505" xlink:to="loc_ifrs-full_InterestRateRiskMember_1403123" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiquidityRiskMember" xlink:label="loc_ifrs-full_LiquidityRiskMember_530" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksDomain_505" xlink:to="loc_ifrs-full_LiquidityRiskMember_530" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_503" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_503" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_499" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_503" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_499" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SofrMember" xlink:label="loc_ypf_SofrMember_1329968" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_499" xlink:to="loc_ypf_SofrMember_1329968" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_501" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_RangeAxis_501" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_502" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_501" xlink:to="loc_ifrs-full_RangeDomain_502" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_526" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_502" xlink:to="loc_ifrs-full_BottomOfRangeMember_526" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_527" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_502" xlink:to="loc_ifrs-full_TopOfRangeMember_527" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesAxis" xlink:label="loc_ifrs-full_InternalCreditGradesAxis_500" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_InternalCreditGradesAxis_500" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesDomain" xlink:label="loc_ifrs-full_InternalCreditGradesDomain_498" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_InternalCreditGradesAxis_500" xlink:to="loc_ifrs-full_InternalCreditGradesDomain_498" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xlink:label="loc_ypf_NationalGovernmentAndDirectAgenciesAccountsMember_523" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_InternalCreditGradesDomain_498" xlink:to="loc_ypf_NationalGovernmentAndDirectAgenciesAccountsMember_523" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_495" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_srt_CurrencyAxis_495" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_494" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_CurrencyAxis_495" xlink:to="loc_currency_AllCurrenciesDomain_494" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="loc_ifrs-full_BorrowingsAdjustmentToInterestRateBasis_509" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_BorrowingsAdjustmentToInterestRateBasis_509" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountAvailableForLiquidity" xlink:label="loc_ypf_AmountAvailableForLiquidity_513" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_AmountAvailableForLiquidity_513" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Cash" xlink:label="loc_ifrs-full_Cash_514" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_Cash_514" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCashAndCashEquivalents" xlink:label="loc_ifrs-full_OtherCashAndCashEquivalents_515" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_OtherCashAndCashEquivalents_515" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaximumExposureToCreditRisk" xlink:label="loc_ifrs-full_MaximumExposureToCreditRisk_518" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_MaximumExposureToCreditRisk_518" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivables" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivables_519" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_ProvisionForDoubtfulTradeReceivables_519" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOtherDoubtfulReceivables" xlink:label="loc_ypf_ProvisionForOtherDoubtfulReceivables_520" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_ProvisionForOtherDoubtfulReceivables_520" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteesGrantedByThirdParties" xlink:label="loc_ypf_GuaranteesGrantedByThirdParties_521" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_GuaranteesGrantedByThirdParties_521" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherInvestmentsFreelyAvailable" xlink:label="loc_ypf_OtherInvestmentsFreelyAvailable_1402652" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_OtherInvestmentsFreelyAvailable_1402652" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignExchangeRatePercentage" xlink:label="loc_ypf_ForeignExchangeRatePercentage_1384280" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_ForeignExchangeRatePercentage_1384280" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xlink:label="loc_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities_1402101" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities_1402101" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" xlink:label="loc_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation_1402654" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation_1402654" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorkingCapital" xlink:label="loc_ypf_WorkingCapital_1403226" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_WorkingCapital_1403226" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_532" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_532" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_537" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" xlink:to="loc_ifrs-full_TypesOfRisksAxis_537" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_538" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksAxis_537" xlink:to="loc_ifrs-full_TypesOfRisksDomain_538" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember_1403122" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksDomain_538" xlink:to="loc_ifrs-full_InterestRateRiskMember_1403122" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_536" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_536" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_535" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_536" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_535" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnNetIncomeMember" xlink:label="loc_ypf_PositiveVariationImpactOnNetIncomeMember_541" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_535" xlink:to="loc_ypf_PositiveVariationImpactOnNetIncomeMember_541" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnNetIncomeMember" xlink:label="loc_ypf_NegativeVariationImpactOnNetIncomeMember_542" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_535" xlink:to="loc_ypf_NegativeVariationImpactOnNetIncomeMember_542" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xlink:label="loc_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints_539" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" xlink:to="loc_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints_539" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xlink:label="loc_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax_540" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" xlink:to="loc_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax_540" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_545" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract_545" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_550" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" xlink:to="loc_ifrs-full_TypesOfRisksAxis_550" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_551" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksAxis_550" xlink:to="loc_ifrs-full_TypesOfRisksDomain_551" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PriceRiskMember" xlink:label="loc_ypf_PriceRiskMember_556" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRisksDomain_551" xlink:to="loc_ypf_PriceRiskMember_556" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskAxis" xlink:label="loc_ypf_ForeignCurrencyRiskAxis_548" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" xlink:to="loc_ypf_ForeignCurrencyRiskAxis_548" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain_549" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ForeignCurrencyRiskAxis_548" xlink:to="loc_ypf_ForeignCurrencyRiskDomain_549" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:label="loc_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402664" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_549" xlink:to="loc_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402664" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:label="loc_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402665" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_549" xlink:to="loc_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402665" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xlink:label="loc_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments_552" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" xlink:to="loc_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments_552" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_553" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" xlink:to="loc_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_553" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract_558" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract_558" xlink:to="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_562" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" xlink:to="loc_ifrs-full_MaturityAxis_562" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_559" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_562" xlink:to="loc_ifrs-full_MaturityDomain_559" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="loc_ifrs-full_NotLaterThanOneYearMember_563" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_NotLaterThanOneYearMember_563" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_564" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_564" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_565" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_565" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_566" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_566" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_567" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_567" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFiveYearsMember_568" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanFiveYearsMember_568" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" xlink:to="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossLeaseLiabilities" xlink:label="loc_ifrs-full_GrossLeaseLiabilities_630969" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_GrossLeaseLiabilities_630969" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LoansReceived" xlink:label="loc_ifrs-full_LoansReceived_569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_LoansReceived_569" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinancialLiabilities" xlink:label="loc_ifrs-full_OtherFinancialLiabilities_570" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_OtherFinancialLiabilities_570" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayables" xlink:label="loc_ifrs-full_TradeAndOtherPayables_571" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_TradeAndOtherPayables_571" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities_572" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_FinancialLiabilities_572" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureAbstract" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureAbstract_574" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureTable" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureAbstract_574" xlink:to="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember_579" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" xlink:to="loc_ypf_CashAndCashEquivalentMember_579" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentInFinancialAssetsMember" xlink:label="loc_ypf_InvestmentInFinancialAssetsMember_1329848" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" xlink:to="loc_ypf_InvestmentInFinancialAssetsMember_1329848" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialAssetMember" xlink:label="loc_ypf_OtherFinancialAssetMember_580" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" xlink:to="loc_ypf_OtherFinancialAssetMember_580" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureLineItems" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems_577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" xlink:to="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems_577" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaximumExposureToCreditRisk" xlink:label="loc_ifrs-full_MaximumExposureToCreditRisk_581" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems_577" xlink:to="loc_ifrs-full_MaximumExposureToCreditRisk_581" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract_583" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract_583" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentTradeReceivableMember" xlink:label="loc_ypf_CurrentTradeReceivableMember_591" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" xlink:to="loc_ypf_CurrentTradeReceivableMember_591" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentReceivablesMember" xlink:label="loc_ypf_OtherCurrentReceivablesMember_592" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" xlink:to="loc_ypf_OtherCurrentReceivablesMember_592" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis_588" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" xlink:to="loc_ifrs-full_PastDueStatusAxis_588" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_589" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusAxis_588" xlink:to="loc_ifrs-full_PastDueStatusDomain_589" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanThreeMonthsMember" xlink:label="loc_ifrs-full_NotLaterThanThreeMonthsMember_593" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusDomain_589" xlink:to="loc_ifrs-full_NotLaterThanThreeMonthsMember_593" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BetweenThreeAndSixMonthsMember" xlink:label="loc_ypf_BetweenThreeAndSixMonthsMember_594" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusDomain_589" xlink:to="loc_ypf_BetweenThreeAndSixMonthsMember_594" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="loc_ifrs-full_LaterThanSixMonthsMember_595" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusDomain_589" xlink:to="loc_ifrs-full_LaterThanSixMonthsMember_595" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_585" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_585" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets_590" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_585" xlink:to="loc_ifrs-full_FinancialAssets_590" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsAbstract_597" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsAbstract_597" xlink:to="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsAxis" xlink:label="loc_ifrs-full_SegmentConsolidationItemsAxis_601" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" xlink:to="loc_ifrs-full_SegmentConsolidationItemsAxis_601" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="loc_ifrs-full_SegmentConsolidationItemsDomain_600" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentConsolidationItemsAxis_601" xlink:to="loc_ifrs-full_SegmentConsolidationItemsDomain_600" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OperatingSegmentsMember" xlink:label="loc_ifrs-full_OperatingSegmentsMember_614" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentConsolidationItemsDomain_600" xlink:to="loc_ifrs-full_OperatingSegmentsMember_614" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:label="loc_ifrs-full_EliminationOfIntersegmentAmountsMember_615" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentConsolidationItemsDomain_600" xlink:to="loc_ifrs-full_EliminationOfIntersegmentAmountsMember_615" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_602" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" xlink:to="loc_ifrs-full_SegmentsAxis_602" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_603" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsAxis_602" xlink:to="loc_ifrs-full_SegmentsDomain_603" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_616" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_UpstreamMember_616" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_618" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_MidstreamAndDownstreamMember_618" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1403415" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_LNGandIntegratedGasMember_1403415" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403416" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_NewEnergiesMember_1403416" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_619" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_619" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" xlink:to="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfOilAndGasProducts" xlink:label="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts_604" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts_604" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions_605" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions_605" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_606" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_Revenue_606" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_607" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_607" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_608" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_608" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost_1402147" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_FinanceIncomeCost_1402147" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_1402134" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_1402134" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1402135" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1402135" use="optional" order="21" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_1402136" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ProfitLoss_1402136" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_612" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_612" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="loc_ifrs-full_AdditionsToRightofuseAssets_1402140" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_AdditionsToRightofuseAssets_1402140" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughbusinesscombinations" xlink:label="loc_ypf_Increasedecreasethroughbusinesscombinations_1403228" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ypf_Increasedecreasethroughbusinesscombinations_1403228" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_613" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_Assets_613" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_609" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_609" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill_1402143" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill_1402143" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_1402144" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_1402144" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss_611" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss_611" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_1403229" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_1403229" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsAbstract_1403147" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnproductiveExploratoryDrillings" xlink:label="loc_ypf_UnproductiveExploratoryDrillings_1403148" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsAbstract_1403147" xlink:to="loc_ypf_UnproductiveExploratoryDrillings_1403148" use="optional" order="1" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsAbstract_636" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsAbstract_636" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesMember" xlink:label="loc_ifrs-full_LeaseLiabilitiesMember_631076" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ifrs-full_LeaseLiabilitiesMember_631076" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Loans1Member" xlink:label="loc_ypf_Loans1Member_657" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ypf_Loans1Member_657" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialLiabilitiesOtherMember" xlink:label="loc_ypf_FinancialLiabilitiesOtherMember_658" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ypf_FinancialLiabilitiesOtherMember_658" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountsPayable1Member" xlink:label="loc_ypf_AccountsPayable1Member_659" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ypf_AccountsPayable1Member_659" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherReceivablesMember" xlink:label="loc_ypf_OtherReceivablesMember_653" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ypf_OtherReceivablesMember_653" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="loc_ifrs-full_TradeReceivablesMember_654" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ifrs-full_TradeReceivablesMember_654" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsAndFinancialAssetsMember" xlink:label="loc_ypf_InvestmentsAndFinancialAssetsMember_655" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ypf_InvestmentsAndFinancialAssetsMember_655" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember_656" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ypf_CashAndCashEquivalentMember_656" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCost_643" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialAssetsAtAmortisedCost_643" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_644" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_644" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets_645" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialAssets_645" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNonfinancialAssets" xlink:label="loc_ifrs-full_OtherNonfinancialAssets_646" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_OtherNonfinancialAssets_646" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssets" xlink:label="loc_ypf_FinancialAndNonFinancialAssets_647" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ypf_FinancialAndNonFinancialAssets_647" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilitiesAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialLiabilitiesAtAmortisedCost_648" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialLiabilitiesAtAmortisedCost_648" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss_649" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss_649" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities_650" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialLiabilities_650" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonFinancialLiabilities" xlink:label="loc_ypf_NonFinancialLiabilities_651" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ypf_NonFinancialLiabilities_651" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialLiabilities" xlink:label="loc_ypf_FinancialAndNonFinancialLiabilities_652" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ypf_FinancialAndNonFinancialLiabilities_652" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract_661" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract_661" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xlink:label="loc_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember_666" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" xlink:to="loc_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember_666" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xlink:label="loc_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember_667" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" xlink:to="loc_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember_667" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome_1403010" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_FinanceIncome_1403010" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts_1403011" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_FinanceCosts_1403011" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetForeignExchangeGainLoss" xlink:label="loc_ypf_NetForeignExchangeGainLoss_671" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_NetForeignExchangeGainLoss_671" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_672" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_672" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnDerivativeFinancialInstruments" xlink:label="loc_ypf_GainLossOnDerivativeFinancialInstruments_673" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_GainLossOnDerivativeFinancialInstruments_673" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgrammeOtherIncome" xlink:label="loc_ypf_ExportIncreaseProgrammeOtherIncome_1402552" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_ExportIncreaseProgrammeOtherIncome_1402552" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xlink:label="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer_861599" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer_861599" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromNetMonetaryPosition" xlink:label="loc_ypf_ResultFromNetMonetaryPosition_674" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_ResultFromNetMonetaryPosition_674" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost_675" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_FinanceIncomeCost_675" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract" xlink:label="loc_ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract_677" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract_677" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level1OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level1OfFairValueHierarchyMember_686" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" xlink:to="loc_ifrs-full_Level1OfFairValueHierarchyMember_686" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level2OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level2OfFairValueHierarchyMember_637016" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" xlink:to="loc_ifrs-full_Level2OfFairValueHierarchyMember_637016" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level3OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level3OfFairValueHierarchyMember_637017" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" xlink:to="loc_ifrs-full_Level3OfFairValueHierarchyMember_637017" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicSecuritiesMember" xlink:label="loc_ypf_PublicSecuritiesMember_690" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" xlink:to="loc_ypf_PublicSecuritiesMember_690" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MutualFundsMember" xlink:label="loc_ypf_MutualFundsMember_691" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" xlink:to="loc_ypf_MutualFundsMember_691" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PrivateSecuritiesMember" xlink:label="loc_ypf_PrivateSecuritiesMember_1403012" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" xlink:to="loc_ypf_PrivateSecuritiesMember_1403012" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_679" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_679" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_680" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_679" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_680" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInFinancialAssetsMember" xlink:label="loc_ypf_InvestmentsInFinancialAssetsMember_687" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_680" xlink:to="loc_ypf_InvestmentsInFinancialAssetsMember_687" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember_688" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_680" xlink:to="loc_ypf_CashAndCashEquivalentMember_688" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_682" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_682" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_689" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_682" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_689" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsAbstract_705" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsAbstract_705" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level1OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level1OfFairValueHierarchyMember_712" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706" xlink:to="loc_ifrs-full_Level1OfFairValueHierarchyMember_712" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedFairValueOfLoansMember" xlink:label="loc_ypf_EstimatedFairValueOfLoansMember_713" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708" xlink:to="loc_ypf_EstimatedFairValueOfLoansMember_713" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_709" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_709" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedFairValueOfLoans" xlink:label="loc_ypf_EstimatedFairValueOfLoans_714" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_709" xlink:to="loc_ypf_EstimatedFairValueOfLoans_714" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfIntangibleAssetsAbstract_631423" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_631424" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfIntangibleAssetsAbstract_631423" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_631424" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfIntangibleAssets" xlink:label="loc_ypf_ProvisionForImpairmentOfIntangibleAssets_631426" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfIntangibleAssetsAbstract_631423" xlink:to="loc_ypf_ProvisionForImpairmentOfIntangibleAssets_631426" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_631427" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfIntangibleAssetsAbstract_631423" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill_631427" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract_716" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract_716" xlink:to="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" xlink:to="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" xlink:to="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServiceConcessionRightsMember" xlink:label="loc_ifrs-full_ServiceConcessionRightsMember_731" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" xlink:to="loc_ifrs-full_ServiceConcessionRightsMember_731" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MiningRightsMember" xlink:label="loc_ifrs-full_MiningRightsMember_732" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" xlink:to="loc_ifrs-full_MiningRightsMember_732" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherIntangibleAssetsMember" xlink:label="loc_ifrs-full_OtherIntangibleAssetsMember_733" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" xlink:to="loc_ifrs-full_OtherIntangibleAssetsMember_733" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_718" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" xlink:to="loc_ifrs-full_CarryingAmountMember_718" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_723" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_718" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_723" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember_724" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_718" xlink:to="loc_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember_724" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" xlink:to="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_725" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_725" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill_726" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill_726" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill_1403252" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill_1403252" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill_727" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill_727" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill_728" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill_728" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xlink:label="loc_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets_729" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets_729" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_730" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_730" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_735" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBookValueOfPropertyPlantAndEquipment" xlink:label="loc_ypf_NetBookValueOfPropertyPlantAndEquipment_736" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_735" xlink:to="loc_ypf_NetBookValueOfPropertyPlantAndEquipment_736" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment_1403431" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_735" xlink:to="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment_1403431" use="optional" order="2" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xlink:label="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment_738" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_735" xlink:to="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment_738" use="optional" order="3" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_739" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_735" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_739" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_741" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_741" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LandAndBuildingsMember" xlink:label="loc_ifrs-full_LandAndBuildingsMember_759" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_LandAndBuildingsMember_759" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiningPropertyWellsAndRelatedEquipmentMember" xlink:label="loc_ypf_MiningPropertyWellsAndRelatedEquipmentMember_760" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ypf_MiningPropertyWellsAndRelatedEquipmentMember_760" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember_761" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_MachineryMember_761" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember_762" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_VehiclesMember_762" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaterialsAndEquipmentInWarehouseMember" xlink:label="loc_ypf_MaterialsAndEquipmentInWarehouseMember_763" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ypf_MaterialsAndEquipmentInWarehouseMember_763" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConstructionInProgressMember" xlink:label="loc_ifrs-full_ConstructionInProgressMember_764" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_ConstructionInProgressMember_764" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingInProgressMember" xlink:label="loc_ypf_ExploratoryDrillingInProgressMember_765" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ypf_ExploratoryDrillingInProgressMember_765" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixturesAndFittingsMember" xlink:label="loc_ifrs-full_FixturesAndFittingsMember_766" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_FixturesAndFittingsMember_766" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OfficeEquipmentMember" xlink:label="loc_ifrs-full_OfficeEquipmentMember_767" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_OfficeEquipmentMember_767" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OilAndGasAssetsMember" xlink:label="loc_ifrs-full_OilAndGasAssetsMember_768" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_OilAndGasAssetsMember_768" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherPropertyPlantAndEquipmentMember" xlink:label="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_770" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_770" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_743" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" xlink:to="loc_ifrs-full_CarryingAmountMember_743" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_748" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_743" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_748" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_749" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_743" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_749" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xlink:label="loc_ypf_NetBookValueOfPropertyPlantAndEquipmentMember_750" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_743" xlink:to="loc_ypf_NetBookValueOfPropertyPlantAndEquipmentMember_750" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_751" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_751" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_752" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_752" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_1403395" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_1403395" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_753" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_753" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_754" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_754" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreasesAndReclassifications" xlink:label="loc_ypf_DecreasesAndReclassifications_755" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ypf_DecreasesAndReclassifications_755" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_757" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_757" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_772" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_772" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentMember_800" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentMember_800" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403396" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403396" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403397" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403396" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403397" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1403399" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403397" xlink:to="loc_ypf_MatureFieldsProjectMember_1403399" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChanarMember" xlink:label="loc_ypf_AguadaDelChanarMember_1403398" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403397" xlink:to="loc_ypf_AguadaDelChanarMember_1403398" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember_1403400" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403397" xlink:to="loc_ypf_OptimizationPlanMember_1403400" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_776" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" xlink:to="loc_ifrs-full_CarryingAmountMember_776" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_786" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_776" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_786" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403149" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_776" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403149" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_774" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_774" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_781" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_774" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_781" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_784" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_784" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis_783" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_MeasurementAxis_783" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_773" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MeasurementAxis_783" xlink:to="loc_ifrs-full_MeasurementDomain_773" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_861649" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_GeographicalAreasAxis_861649" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_861650" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_861649" xlink:to="loc_ifrs-full_GeographicalAreasDomain_861650" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralProperty" xlink:label="loc_ypf_MineralProperty_788" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_MineralProperty_788" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingInProgress" xlink:label="loc_ypf_ExploratoryDrillingInProgress_789" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_ExploratoryDrillingInProgress_789" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingPropertyInProgress" xlink:label="loc_ypf_DrillingPropertyInProgress_790" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_DrillingPropertyInProgress_790" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingWells" xlink:label="loc_ypf_ExploratoryDrillingWells_791" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_ExploratoryDrillingWells_791" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransferredToProvedProperties" xlink:label="loc_ypf_TransferredToProvedProperties_792" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_TransferredToProvedProperties_792" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment_793" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment_793" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_794" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_794" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_795" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_795" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale_798" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale_798" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" xlink:label="loc_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed_637027" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed_637027" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" xlink:label="loc_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities_637028" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities_637028" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfAmortizationOfRightofuseAssets" xlink:label="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637029" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637029" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xlink:label="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities_637030" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities_637030" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_804" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_804" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasNeuquinaBasinMember" xlink:label="loc_ypf_CguGasNeuquinaBasinMember_1402121" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasNeuquinaBasinMember_1402121" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasAustralBasinMember" xlink:label="loc_ypf_CguGasAustralBasinMember_1402123" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasAustralBasinMember_1402123" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" xlink:label="loc_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember_1402559" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember_1402559" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasNorthwestBasinMember" xlink:label="loc_ypf_CguGasNorthwestBasinMember_1402956" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasNorthwestBasinMember_1402956" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasCuencaNeuquinaMember" xlink:label="loc_ypf_CguGasCuencaNeuquinaMember_1403405" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasCuencaNeuquinaMember_1403405" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasCuencaNoroesteMember" xlink:label="loc_ypf_CguGasCuencaNoroesteMember_1403406" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasCuencaNoroesteMember_1403406" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1402130" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_RangeAxis_1402130" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402131" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1402130" xlink:to="loc_ifrs-full_RangeDomain_1402131" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1402138" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_MaturityAxis_1402138" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1402139" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_1402138" xlink:to="loc_ifrs-full_MaturityDomain_1402139" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" xlink:label="loc_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation_805" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation_805" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingCostsCapitalised" xlink:label="loc_ifrs-full_BorrowingCostsCapitalised_806" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_BorrowingCostsCapitalised_806" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment_1402116" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment_1402116" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xlink:label="loc_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax_1402122" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax_1402122" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" xlink:label="loc_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit_1402128" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit_1402128" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xlink:label="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402137" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402137" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecoverableValueAfterTaxes" xlink:label="loc_ypf_RecoverableValueAfterTaxes_1402328" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ypf_RecoverableValueAfterTaxes_1402328" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetAssetsLiabilities" xlink:label="loc_ifrs-full_NetAssetsLiabilities_1403407" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_NetAssetsLiabilities_1403407" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract_808" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract_808" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_810" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" xlink:to="loc_ifrs-full_CarryingAmountMember_810" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember_813" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_810" xlink:to="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember_813" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_814" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_814" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_815" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_815" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xlink:label="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403403" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403403" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xlink:label="loc_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment_1332333" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment_1332333" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_818" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_818" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332332" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332332" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1403402" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1403402" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_820" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_820" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract_822" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract_822" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_824" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" xlink:to="loc_ifrs-full_CarryingAmountMember_824" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xlink:label="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember_827" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_824" xlink:to="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember_827" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_828" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_828" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_829" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_829" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xlink:label="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403404" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403404" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_831" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_831" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_832" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_832" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332319" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332319" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1402954" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1402954" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_834" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_834" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract_1403418" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract_1403418" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403423" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403423" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403424" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403423" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403424" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1403425" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403424" xlink:to="loc_ypf_MatureFieldsProjectMember_1403425" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1403422" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1403422" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentAssociatedWithAssets" xlink:label="loc_ypf_ProvisionForImpairmentAssociatedWithAssets_1403420" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1403422" xlink:to="loc_ypf_ProvisionForImpairmentAssociatedWithAssets_1403420" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_1402411" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasTable" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract_1402411" xlink:to="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402413" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402413" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402414" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402413" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402414" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_1402415" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402414" xlink:to="loc_country_AR_1402415" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MercosurAndAssociatesCountriesMember" xlink:label="loc_ypf_MercosurAndAssociatesCountriesMember_1402416" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402414" xlink:to="loc_ypf_MercosurAndAssociatesCountriesMember_1402416" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasLineItems" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems_1402417" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" xlink:to="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems_1402417" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_1402418" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems_1402417" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_1402418" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract_1402504" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract_1402504" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1402506" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1402506" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1402507" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1402506" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1402507" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploitationEquipmentAndFacilitiesMember" xlink:label="loc_ypf_ExploitationEquipmentAndFacilitiesMember_1402516" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_ExploitationEquipmentAndFacilitiesMember_1402516" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xlink:label="loc_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember_1402508" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember_1402508" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RegasificationAndGasLiquefactionEquipmentMember" xlink:label="loc_ypf_RegasificationAndGasLiquefactionEquipmentMember_1402509" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_RegasificationAndGasLiquefactionEquipmentMember_1402509" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VesselsAndBargesForHydrocarbonTransportationMember" xlink:label="loc_ypf_VesselsAndBargesForHydrocarbonTransportationMember_1402510" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_VesselsAndBargesForHydrocarbonTransportationMember_1402510" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TruckFleetsMember" xlink:label="loc_ypf_TruckFleetsMember_1402511" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_TruckFleetsMember_1402511" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_1402661" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_GasStationsMember_1402661" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" xlink:label="loc_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember_1402512" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember_1402512" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitsForTheUseOfPortsAndLandMember" xlink:label="loc_ypf_PermitsForTheUseOfPortsAndLandMember_1402513" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_PermitsForTheUseOfPortsAndLandMember_1402513" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_1402514" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_1402514" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AggregateLeaseTermLease" xlink:label="loc_ypf_AggregateLeaseTermLease_1402515" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_1402514" xlink:to="loc_ypf_AggregateLeaseTermLease_1402515" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract_637377" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract_637377" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_637428" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" xlink:to="loc_ifrs-full_CarryingAmountMember_637428" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_637429" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_637428" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_637429" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_637430" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_637428" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_637430" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_637421" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_NewIFRSsAxis_637421" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_637422" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NewIFRSsAxis_637421" xlink:to="loc_ifrs-full_NewIFRSsDomain_637422" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_637383" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_637383" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_637384" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_637383" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_637384" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LandAndBuildingsMember" xlink:label="loc_ifrs-full_LandAndBuildingsMember_637413" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ifrs-full_LandAndBuildingsMember_637413" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploitationFacilitiesAndEquipmentMember" xlink:label="loc_ypf_ExploitationFacilitiesAndEquipmentMember_637415" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ypf_ExploitationFacilitiesAndEquipmentMember_637415" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember_637416" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ifrs-full_MachineryMember_637416" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_637419" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ypf_GasStationsMember_637419" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember_637420" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ifrs-full_VehiclesMember_637420" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="loc_ifrs-full_RightofuseAssets_637434" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ifrs-full_RightofuseAssets_637434" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="loc_ifrs-full_AdditionsToRightofuseAssets_637437" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ifrs-full_AdditionsToRightofuseAssets_637437" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets_637435" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets_637435" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets_637438" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets_637438" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets_637441" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets_637441" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseInRightOfUseAssets_637448" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseInRightOfUseAssets_637448" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="loc_ifrs-full_RightofuseAssets_637479" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ifrs-full_RightofuseAssets_637479" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract_637506" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract_637506" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_861631" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" xlink:to="loc_ifrs-full_CarryingAmountMember_861631" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_861635" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_861635" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_861636" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_861635" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_861636" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_637507" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_637507" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfAmortizationOfRightofuseAssets" xlink:label="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637511" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" xlink:to="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637511" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xlink:label="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_864" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInAssociates" xlink:label="loc_ifrs-full_InvestmentsInAssociates_865" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_864" xlink:to="loc_ifrs-full_InvestmentsInAssociates_865" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInJointVentures" xlink:label="loc_ifrs-full_InvestmentsInJointVentures_866" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_864" xlink:to="loc_ifrs-full_InvestmentsInJointVentures_866" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_868" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_864" xlink:to="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_868" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xlink:label="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_871" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_871" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionsAndContributions" xlink:label="loc_ypf_AcquisitionsAndContributions_872" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ypf_AcquisitionsAndContributions_872" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationInJointVentures" xlink:label="loc_ypf_CapitalizationInJointVentures_637348" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ypf_CapitalizationInJointVentures_637348" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_873" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_873" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/positiveTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceived" xlink:label="loc_ifrs-full_DividendsReceived_875" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ifrs-full_DividendsReceived_875" use="optional" order="5" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TranslationDifferencesOnInvestments" xlink:label="loc_ypf_TranslationDifferencesOnInvestments_874" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ypf_TranslationDifferencesOnInvestments_874" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InflationAdjustment" xlink:label="loc_ypf_InflationAdjustment_877" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ypf_InflationAdjustment_877" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseFromSaleOfCompanies" xlink:label="loc_ypf_DecreaseFromSaleOfCompanies_1403232" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ypf_DecreaseFromSaleOfCompanies_1403232" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMovements" xlink:label="loc_ypf_OtherMovements_879" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ypf_OtherMovements_879" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_880" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_870" xlink:to="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_880" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract_882" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract_882" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="loc_ifrs-full_AssociatesMember_893" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887" xlink:to="loc_ifrs-full_AssociatesMember_893" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_888" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" xlink:to="loc_ifrs-full_JointVenturesAxis_888" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_886" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_888" xlink:to="loc_ifrs-full_JointVenturesDomain_886" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesMember" xlink:label="loc_ifrs-full_JointVenturesMember_892" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_886" xlink:to="loc_ifrs-full_JointVenturesMember_892" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAssociatesAndJointVenturesLineItems" xlink:label="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" xlink:to="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_889" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ifrs-full_ProfitLoss_889" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_890" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_890" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome_891" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ifrs-full_ComprehensiveIncome_891" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" xlink:label="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract_895" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xlink:label="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract_895" xlink:to="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_916" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898" xlink:to="loc_ypf_YPFEEMember_916" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureofYPFEELineItems" xlink:label="loc_ypf_DisclosureofYPFEELineItems_896" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" xlink:to="loc_ypf_DisclosureofYPFEELineItems_896" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets_900" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_NoncurrentAssets_900" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_1402158" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CashAndCashEquivalents_1402158" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentAssets" xlink:label="loc_ifrs-full_OtherCurrentAssets_1402159" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherCurrentAssets_1402159" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets_901" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CurrentAssets_901" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_902" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Assets_902" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialLiabilities" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_1402151" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_1402151" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentNonfinancialLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialLiabilities_1402152" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialLiabilities_1402152" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities_903" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_NoncurrentLiabilities_903" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialLiabilities" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_1402168" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_1402168" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentNonfinancialLiabilities" xlink:label="loc_ifrs-full_OtherCurrentNonfinancialLiabilities_1402153" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherCurrentNonfinancialLiabilities_1402153" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities_904" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CurrentLiabilities_904" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_905" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Liabilities_905" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity_906" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Equity_906" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_1402154" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_1402154" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClosingForeignExchangeRate" xlink:label="loc_ifrs-full_ClosingForeignExchangeRate_1402155" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ClosingForeignExchangeRate_1402155" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_907" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Revenue_907" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromInterest" xlink:label="loc_ifrs-full_RevenueFromInterest_1402172" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_RevenueFromInterest_1402172" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationAndAmortisationExpense" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_1402174" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_1402174" use="optional" order="23" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestExpense" xlink:label="loc_ifrs-full_InterestExpense_1402173" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_InterestExpense_1402173" use="optional" order="24" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_914" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_914" use="optional" order="25" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_910" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_910" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_915" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ProfitLoss_915" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_1402175" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_1402175" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome_1402176" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ComprehensiveIncome_1402176" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AverageForeignExchangeRate" xlink:label="loc_ifrs-full_AverageForeignExchangeRate_1402178" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_AverageForeignExchangeRate_1402178" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xlink:label="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_1402782" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract_1402782" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember_1402787" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_OldelvalMember_1402787" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember_1402788" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_TermapMember_1402788" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember_1403231" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_OTAMERICAMember_1403231" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember_1402790" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_CDSMember_1402790" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember_1402791" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_YPFGasMember_1402791" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember_1403230" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_VmosMember_1403230" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1402793" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" xlink:to="loc_ifrs-full_JointVenturesAxis_1402793" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1402794" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_1402793" xlink:to="loc_ifrs-full_JointVenturesDomain_1402794" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_1402795" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_YPFEEMember_1402795" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember_1402796" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_MEGAMember_1402796" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember_1402797" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_ProfertilMember_1402797" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1402798" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_OLCLPMember_1402798" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1402799" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_CTBarraganMember_1402799" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCompaniesMember" xlink:label="loc_ypf_OtherCompaniesMember_1402800" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_OtherCompaniesMember_1402800" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems_1402784" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems_1402784" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_1402801" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems_1402784" xlink:to="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_1402801" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402820" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402820" xlink:to="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402826" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402826" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1402827" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1402827" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1402829" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1402827" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1402829" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1402832" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402829" xlink:to="loc_ypf_MatureFieldsProjectMember_1402832" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_1402833" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402829" xlink:to="loc_ypf_GasStationsMember_1402833" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfBrazilMember" xlink:label="loc_ypf_YpfBrazilMember_1402838" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837" xlink:to="loc_ypf_YpfBrazilMember_1402838" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember_1403108" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember_1403108" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xlink:label="loc_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember_1403109" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" xlink:to="loc_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember_1403109" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1402847" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" xlink:to="loc_ypf_MatureFieldsProjectMember_1402847" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_1402855" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_SegmentsAxis_1402855" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_1402856" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsAxis_1402855" xlink:to="loc_ifrs-full_SegmentsDomain_1402856" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1402858" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_1402856" xlink:to="loc_ypf_UpstreamMember_1402858" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1402859" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_1402856" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1402859" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_1402848" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_1402848" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_1402850" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_Assets_1402850" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1402851" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_Provisions_1402851" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_1402852" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_Liabilities_1402852" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402876" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract_1402876" xlink:to="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EscalanteElTrebolMember" xlink:label="loc_ypf_EscalanteElTrebolMember_1402883" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_EscalanteElTrebolMember_1402883" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LlancaneloAndLlancaneloRMember" xlink:label="loc_ypf_LlancaneloAndLlancaneloRMember_1402897" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_LlancaneloAndLlancaneloRMember_1402897" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstacionFernandezOroMember" xlink:label="loc_ypf_EstacionFernandezOroMember_1402904" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_EstacionFernandezOroMember_1402904" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CampamentoCentralCanadonPerdidoMember" xlink:label="loc_ypf_CampamentoCentralCanadonPerdidoMember_1402905" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_CampamentoCentralCanadonPerdidoMember_1402905" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" xlink:label="loc_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember_1403179" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember_1403179" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" xlink:label="loc_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember_1403180" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember_1403180" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AlNortedelaDorsalOctgonoandDadnMember" xlink:label="loc_ypf_AlNortedelaDorsalOctgonoandDadnMember_1403181" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_AlNortedelaDorsalOctgonoandDadnMember_1403181" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" xlink:label="loc_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember_1403182" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember_1403182" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" xlink:label="loc_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember_1403183" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember_1403183" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElTordilloPuestoQuirogaandLaTaperaMember" xlink:label="loc_ypf_ElTordilloPuestoQuirogaandLaTaperaMember_1403185" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_ElTordilloPuestoQuirogaandLaTaperaMember_1403185" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" xlink:label="loc_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember_1403187" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember_1403187" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" xlink:to="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402879" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402879" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfTransferOfShares" xlink:label="loc_ypf_ProportionOfTransferOfShares_1402891" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ypf_ProportionOfTransferOfShares_1402891" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfWorkingInterestInSubsidiary" xlink:label="loc_ypf_ProportionOfWorkingInterestInSubsidiary_1402907" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ypf_ProportionOfWorkingInterestInSubsidiary_1402907" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xlink:label="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402909" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402909" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesAbstract" xlink:label="loc_ypf_DisclosureOfInventoriesAbstract_976" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesTable" xlink:label="loc_ypf_DisclosureOfInventoriesTable_979" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInventoriesAbstract_976" xlink:to="loc_ypf_DisclosureOfInventoriesTable_979" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInventoriesTable_979" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinishedGoodsMember" xlink:label="loc_ypf_FinishedGoodsMember_1402351" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_FinishedGoodsMember_1402351" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOilAndCommercializedNaturalGasMember" xlink:label="loc_ypf_CrudeOilAndCommercializedNaturalGasMember_983" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_CrudeOilAndCommercializedNaturalGasMember_983" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductsInProcessMember" xlink:label="loc_ypf_ProductsInProcessMember_984" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_ProductsInProcessMember_984" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RawMaterialsPackagingMaterialsAndOthersMember" xlink:label="loc_ypf_RawMaterialsPackagingMaterialsAndOthersMember_985" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_RawMaterialsPackagingMaterialsAndOthersMember_985" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesLineItems" xlink:label="loc_ypf_DisclosureOfInventoriesLineItems_978" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInventoriesTable_979" xlink:to="loc_ypf_DisclosureOfInventoriesLineItems_978" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories_981" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInventoriesLineItems_978" xlink:to="loc_ifrs-full_Inventories_981" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InventoriesSummaryOfInventoriesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesAbstract" xlink:label="loc_ypf_DisclosureOfInventoriesAbstract_1402915" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionOfInventoriesWritedown" xlink:label="loc_ypf_ProvisionOfInventoriesWritedown_1402916" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInventoriesAbstract_1402915" xlink:to="loc_ypf_ProvisionOfInventoriesWritedown_1402916" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeAndOtherReceivablesAbstract" xlink:label="loc_ypf_DisclosureOfTradeAndOtherReceivablesAbstract_987" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentReceivablesAbstract" xlink:label="loc_ypf_OtherCurrentReceivablesAbstract_988" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeAndOtherReceivablesAbstract_987" xlink:to="loc_ypf_OtherCurrentReceivablesAbstract_988" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherAccountsReceivableTradeCurrent" xlink:label="loc_ypf_OtherAccountsReceivableTradeCurrent_990" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_OtherAccountsReceivableTradeCurrent_990" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax_991" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax_991" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties_992" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties_992" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentCollateralDeposits" xlink:label="loc_ypf_CurrentCollateralDeposits_993" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_CurrentCollateralDeposits_993" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPrepaidExpenses" xlink:label="loc_ifrs-full_CurrentPrepaidExpenses_994" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ifrs-full_CurrentPrepaidExpenses_994" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentAdvancesAndLoansToEmployees" xlink:label="loc_ypf_CurrentAdvancesAndLoansToEmployees_995" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_CurrentAdvancesAndLoansToEmployees_995" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAdvancesToSuppliers" xlink:label="loc_ifrs-full_CurrentAdvancesToSuppliers_996" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ifrs-full_CurrentAdvancesToSuppliers_996" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:label="loc_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements_997" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements_997" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentInsuranceReceivables" xlink:label="loc_ypf_CurrentInsuranceReceivables_998" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_CurrentInsuranceReceivables_998" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Miscellaneous" xlink:label="loc_ypf_Miscellaneous_999" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_Miscellaneous_999" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:label="loc_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision_1000" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision_1000" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables_1002" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract_988" xlink:to="loc_ifrs-full_OtherCurrentReceivables_1002" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherNoncurrentReceivablesAbstract" xlink:label="loc_ypf_OtherNoncurrentReceivablesAbstract_989" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeAndOtherReceivablesAbstract_987" xlink:to="loc_ypf_OtherNoncurrentReceivablesAbstract_989" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherAccountsReceivableTradeNonCurrent" xlink:label="loc_ypf_OtherAccountsReceivableTradeNonCurrent_1003" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ypf_OtherAccountsReceivableTradeNonCurrent_1003" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax_1004" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax_1004" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesDueFromRelatedParties" xlink:label="loc_ifrs-full_NoncurrentReceivablesDueFromRelatedParties_1005" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ifrs-full_NoncurrentReceivablesDueFromRelatedParties_1005" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPrepayments" xlink:label="loc_ifrs-full_NoncurrentPrepayments_1007" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ifrs-full_NoncurrentPrepayments_1007" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAdvances" xlink:label="loc_ifrs-full_NoncurrentAdvances_1009" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ifrs-full_NoncurrentAdvances_1009" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:label="loc_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements_1010" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements_1010" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentMiscellaneous" xlink:label="loc_ypf_NoncurrentMiscellaneous_1012" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ypf_NoncurrentMiscellaneous_1012" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentReceivablesOtherthanProvision" xlink:label="loc_ypf_NoncurrentReceivablesOtherthanProvision_1013" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ypf_NoncurrentReceivablesOtherthanProvision_1013" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xlink:label="loc_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables_1014" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables_1014" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables_1015" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract_989" xlink:to="loc_ifrs-full_OtherNoncurrentReceivables_1015" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesAbstract" xlink:label="loc_ypf_TradeReceivablesAbstract_1017" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesTable" xlink:label="loc_ypf_DisclosureOfTradeReceivablesTable_1021" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TradeReceivablesAbstract_1017" xlink:to="loc_ypf_DisclosureOfTradeReceivablesTable_1021" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1018" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeReceivablesTable_1021" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1018" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1019" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1018" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1019" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountsReceivableAndRelatedPartiesMember" xlink:label="loc_ypf_AccountsReceivableAndRelatedPartiesMember_1022" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1019" xlink:to="loc_ypf_AccountsReceivableAndRelatedPartiesMember_1022" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivableMember" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivableMember_1023" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1019" xlink:to="loc_ypf_ProvisionForDoubtfulTradeReceivableMember_1023" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesLineItems" xlink:label="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeReceivablesTable_1021" xlink:to="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables_1024" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ifrs-full_CurrentTradeReceivables_1024" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentProvisionForDoubtfulTradeReceivable" xlink:label="loc_ypf_CurrentProvisionForDoubtfulTradeReceivable_1403640" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ypf_CurrentProvisionForDoubtfulTradeReceivable_1403640" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentTradeReceivables" xlink:label="loc_ifrs-full_NoncurrentTradeReceivables_1026" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ifrs-full_NoncurrentTradeReceivables_1026" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xlink:label="loc_ypf_NonCurrentProvisionForDoubtfulTradeReceivable_1403642" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ypf_NonCurrentProvisionForDoubtfulTradeReceivable_1403642" use="optional" order="10" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" xlink:label="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract_1028" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xlink:label="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract_1028" xlink:to="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1029" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1029" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1030" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1029" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1030" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember_1033" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" xlink:to="loc_ifrs-full_RestatedMember_1033" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionAxis" xlink:label="loc_ypf_ClassOfProvisionAxis_861653" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ypf_ClassOfProvisionAxis_861653" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionDomain" xlink:label="loc_ypf_ClassOfProvisionDomain_861654" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ClassOfProvisionAxis_861653" xlink:to="loc_ypf_ClassOfProvisionDomain_861654" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentMember" xlink:label="loc_ifrs-full_CurrentMember_861661" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ClassOfProvisionDomain_861654" xlink:to="loc_ifrs-full_CurrentMember_861661" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentMember" xlink:label="loc_ypf_NonCurrentMember_861660" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ClassOfProvisionDomain_861654" xlink:to="loc_ypf_NonCurrentMember_861660" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xlink:label="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivables" xlink:label="loc_ifrs-full_TradeReceivables_1036" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ifrs-full_TradeReceivables_1036" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xlink:label="loc_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables_1037" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables_1037" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xlink:label="loc_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables_1038" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables_1038" use="optional" order="13" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesIncurredDueToUtilization" xlink:label="loc_ypf_TradeReceivablesIncurredDueToUtilization_637340" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesIncurredDueToUtilization_637340" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:label="loc_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_1039" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_1039" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesResultFromNetMonetaryPosition" xlink:label="loc_ypf_TradeReceivablesResultFromNetMonetaryPosition_1040" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesResultFromNetMonetaryPosition_1040" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesReclassificationAdjustments" xlink:label="loc_ypf_TradeReceivablesReclassificationAdjustments_1402917" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesReclassificationAdjustments_1402917" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivables" xlink:label="loc_ifrs-full_TradeReceivables_1042" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ifrs-full_TradeReceivables_1042" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsAbstract_1330549" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsAbstract_1330549" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicSecuritiesMember" xlink:label="loc_ypf_PublicSecuritiesMember_1330559" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" xlink:to="loc_ypf_PublicSecuritiesMember_1330559" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PrivateSecuritiesMember" xlink:label="loc_ypf_PrivateSecuritiesMember_1330561" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" xlink:to="loc_ypf_PrivateSecuritiesMember_1330561" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermDepositsMember" xlink:label="loc_ypf_TermDepositsMember_1330562" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" xlink:to="loc_ypf_TermDepositsMember_1330562" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember_1330570" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" xlink:to="loc_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember_1330570" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember_1330572" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember_1330572" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_1330565" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_1330565" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets_1330566" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" xlink:to="loc_ifrs-full_CurrentFinancialAssets_1330566" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalentsAbstract" xlink:label="loc_ifrs-full_CashAndCashEquivalentsAbstract_1047" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsTable" xlink:label="loc_ypf_CashAndCashEquivalentsTable_1048" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashAndCashEquivalentsAbstract_1047" xlink:to="loc_ypf_CashAndCashEquivalentsTable_1048" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CashAndCashEquivalentsTable_1048" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1051" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1051" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCashAndCashEquivalentsLineItems" xlink:label="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CashAndCashEquivalentsTable_1048" xlink:to="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndBankBalancesAtCentralBanks" xlink:label="loc_ifrs-full_CashAndBankBalancesAtCentralBanks_1052" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ifrs-full_CashAndBankBalancesAtCentralBanks_1052" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents_1053" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents_1053" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xlink:label="loc_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss_1054" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss_1054" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_1055" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ifrs-full_CashAndCashEquivalents_1055" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalentsAbstract" xlink:label="loc_ifrs-full_CashAndCashEquivalentsAbstract_1402297" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsTable" xlink:label="loc_ypf_CashAndCashEquivalentsTable_1402298" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CashAndCashEquivalentsAbstract_1402297" xlink:to="loc_ypf_CashAndCashEquivalentsTable_1402298" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CashAndCashEquivalentsTable_1402298" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoCentralDeLaRepublicaArgentinaMember" xlink:label="loc_ypf_BancoCentralDeLaRepublicaArgentinaMember_1403150" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" xlink:to="loc_ypf_BancoCentralDeLaRepublicaArgentinaMember_1403150" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoNacionArgentinaMember" xlink:label="loc_ypf_BancoNacionArgentinaMember_1402301" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" xlink:to="loc_ypf_BancoNacionArgentinaMember_1402301" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCashAndCashEquivalentsLineItems" xlink:label="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1402302" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CashAndCashEquivalentsTable_1402298" xlink:to="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1402302" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents_1402303" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1402302" xlink:to="loc_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents_1402303" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixAbstract" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract_1059" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsTable" xlink:label="loc_ypf_DisclosureOfProvisionsTable_1063" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract_1059" xlink:to="loc_ypf_DisclosureOfProvisionsTable_1063" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis_1064" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1063" xlink:to="loc_ifrs-full_PastDueStatusAxis_1064" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_1065" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusAxis_1064" xlink:to="loc_ifrs-full_PastDueStatusDomain_1065" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentMember" xlink:label="loc_ypf_NonCurrentMember_1080" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusDomain_1065" xlink:to="loc_ypf_NonCurrentMember_1080" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentMember" xlink:label="loc_ifrs-full_CurrentMember_1081" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusDomain_1065" xlink:to="loc_ifrs-full_CurrentMember_1081" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1063" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LegalProceedingsContingentLiabilityMember" xlink:label="loc_ifrs-full_LegalProceedingsContingentLiabilityMember_1066" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" xlink:to="loc_ifrs-full_LegalProceedingsContingentLiabilityMember_1066" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForEnvironmentalLiabilitiesMember" xlink:label="loc_ypf_ProvisionForEnvironmentalLiabilitiesMember_1067" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" xlink:to="loc_ypf_ProvisionForEnvironmentalLiabilitiesMember_1067" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherContingentLiabilitiesMember" xlink:label="loc_ifrs-full_OtherContingentLiabilitiesMember_1068" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" xlink:to="loc_ifrs-full_OtherContingentLiabilitiesMember_1068" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsLineItems" xlink:label="loc_ypf_DisclosureOfProvisionsLineItems_1062" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1063" xlink:to="loc_ypf_DisclosureOfProvisionsLineItems_1062" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1070" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_Provisions_1070" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesChargedToProvisionExpenses" xlink:label="loc_ypf_IncreasesChargedToProvisionExpenses_1071" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_IncreasesChargedToProvisionExpenses_1071" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreasesChargedToProvisionIncome" xlink:label="loc_ypf_DecreasesChargedToProvisionIncome_1072" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_DecreasesChargedToProvisionIncome_1072" use="optional" order="14" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions_1076" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions_1076" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicationsDueToUtilization" xlink:label="loc_ypf_ApplicationsDueToUtilization_1329718" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_ApplicationsDueToUtilization_1329718" use="optional" order="16" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions_1074" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions_1074" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions_1078" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions_1078" use="optional" order="18" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xlink:label="loc_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions_1077" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions_1077" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1079" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_Provisions_1079" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixAbstract" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract_1083" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsTable" xlink:label="loc_ypf_DisclosureOfProvisionsTable_1086" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract_1083" xlink:to="loc_ypf_DisclosureOfProvisionsTable_1086" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentCostsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1093" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1093" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransportadoraDeGasDelNorteSaMember" xlink:label="loc_ypf_TransportadoraDeGasDelNorteSaMember_1402579" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" xlink:to="loc_ypf_TransportadoraDeGasDelNorteSaMember_1402579" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumAxis" xlink:label="loc_ypf_MoratoriumAxis_862132" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_MoratoriumAxis_862132" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumMember" xlink:label="loc_ypf_MoratoriumMember_862133" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_MoratoriumAxis_862132" xlink:to="loc_ypf_MoratoriumMember_862133" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1402195" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1402195" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsAxis" xlink:label="loc_ypf_DetailsAxis_1402187" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_DetailsAxis_1402187" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain_1402197" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DetailsAxis_1402187" xlink:to="loc_ypf_DetailsDomain_1402197" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1402199" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1402199" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis_1402581" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_AgreementAxis_1402581" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402583" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AgreementAxis_1402581" xlink:to="loc_ypf_AgreementDomain_1402583" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TrustSettlementAgreementMember" xlink:label="loc_ypf_TrustSettlementAgreementMember_1402585" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AgreementDomain_1402583" xlink:to="loc_ypf_TrustSettlementAgreementMember_1402585" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentObligationsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentObligationsMember_1402922" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentObligationsMember_1402922" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalLiabilitiesMember" xlink:label="loc_ypf_EnvironmentalLiabilitiesMember_1402923" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" xlink:to="loc_ypf_EnvironmentalLiabilitiesMember_1402923" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402926" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402926" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403349" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403349" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403350" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403349" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403350" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember_1403351" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403350" xlink:to="loc_ypf_OptimizationPlanMember_1403351" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsLineItems" xlink:label="loc_ypf_DisclosureOfProvisionsLineItems_1085" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_DisclosureOfProvisionsLineItems_1085" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_1088" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_1088" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherLiabilities" xlink:label="loc_ifrs-full_OtherLiabilities_1402420" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ifrs-full_OtherLiabilities_1402420" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xlink:label="loc_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement_1402421" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement_1402421" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1402919" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ifrs-full_Provisions_1402919" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixAbstract" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract_1095" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsTable" xlink:label="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract_1095" xlink:to="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_1098" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_CounterpartiesAxis_1098" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_1099" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CounterpartiesAxis_1098" xlink:to="loc_ifrs-full_CounterpartiesDomain_1099" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ParentMember" xlink:label="loc_ifrs-full_ParentMember_1127" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" xlink:to="loc_ifrs-full_ParentMember_1127" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xlink:label="loc_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember_1130" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" xlink:to="loc_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember_1130" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis_1402202" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ypf_AgreementAxis_1402202" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402203" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AgreementAxis_1402202" xlink:to="loc_ypf_AgreementDomain_1402203" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1104" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1104" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_1097" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_1097" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1097" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalClaimsLaPlataMember" xlink:label="loc_ypf_EnvironmentalClaimsLaPlataMember_1403643" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105" xlink:to="loc_ypf_EnvironmentalClaimsLaPlataMember_1403643" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1332056" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_RangeAxis_1332056" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1332059" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1332056" xlink:to="loc_ifrs-full_RangeDomain_1332059" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_1332060" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1332059" xlink:to="loc_ifrs-full_BottomOfRangeMember_1332060" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1332061" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1332059" xlink:to="loc_ifrs-full_TopOfRangeMember_1332061" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodAxis" xlink:label="loc_ypf_PeriodAxis_1402209" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ypf_PeriodAxis_1402209" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain_1402210" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PeriodAxis_1402209" xlink:to="loc_ypf_PeriodDomain_1402210" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsAxis" xlink:label="loc_ypf_ClaimsAxis_1402215" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ypf_ClaimsAxis_1402215" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsMember" xlink:label="loc_ypf_ClaimsMember_1402338" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ClaimsAxis_1402215" xlink:to="loc_ypf_ClaimsMember_1402338" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixLineItems" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" xlink:label="loc_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities_1109" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities_1109" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromTransferActivity" xlink:label="loc_ifrs-full_ProceedsFromTransferActivity_1124" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ifrs-full_ProceedsFromTransferActivity_1124" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfRiskInEnvironmentalClaims" xlink:label="loc_ypf_DescriptionOfRiskInEnvironmentalClaims_1125" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_DescriptionOfRiskInEnvironmentalClaims_1125" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtendedPeriodCoveredByFinancialStatements" xlink:label="loc_ypf_ExtendedPeriodCoveredByFinancialStatements_862141" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_ExtendedPeriodCoveredByFinancialStatements_862141" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefineryTermPeriod" xlink:label="loc_ypf_RefineryTermPeriod_1332098" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_RefineryTermPeriod_1332098" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfHydrocarbons" xlink:label="loc_ypf_PercentageOfHydrocarbons_1332105" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_PercentageOfHydrocarbons_1332105" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LossContingentDamagesSought" xlink:label="loc_ypf_LossContingentDamagesSought_1334287" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_LossContingentDamagesSought_1334287" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" xlink:label="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract_1135" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxExpenseIncome" xlink:label="loc_ifrs-full_CurrentTaxExpenseIncome_1136" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract_1135" xlink:to="loc_ifrs-full_CurrentTaxExpenseIncome_1136" use="optional" order="1" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxExpenseIncome" xlink:label="loc_ifrs-full_DeferredTaxExpenseIncome_1137" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract_1135" xlink:to="loc_ifrs-full_DeferredTaxExpenseIncome_1137" use="optional" order="2" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xlink:label="loc_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount_1403348" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract_1135" xlink:to="loc_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount_1403348" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustedIncomeTaxExpenseBenefit" xlink:label="loc_ypf_AdjustedIncomeTaxExpenseBenefit_637439" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract_1135" xlink:to="loc_ypf_AdjustedIncomeTaxExpenseBenefit_637439" use="optional" order="4" preferredLabel="http://www.xbrl.org/2009/role/negatedTotalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract" xlink:label="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_1141" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_1141" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ApplicableTaxRate" xlink:label="loc_ifrs-full_ApplicableTaxRate_1142" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_ApplicableTaxRate_1142" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" xlink:label="loc_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate_1143" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate_1143" use="optional" order="3" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xlink:label="loc_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets_1144" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets_1144" use="optional" order="4" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferences" xlink:label="loc_ypf_ExchangeDifferences_1145" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ypf_ExchangeDifferences_1145" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTheValuationOfInventories" xlink:label="loc_ypf_EffectOfTheValuationOfInventories_1146" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ypf_EffectOfTheValuationOfInventories_1146" use="optional" order="6" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentIncome" xlink:label="loc_ifrs-full_InvestmentIncome_1147" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_InvestmentIncome_1147" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxEffectFromChangeInTaxRate" xlink:label="loc_ifrs-full_TaxEffectFromChangeInTaxRate_1148" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_TaxEffectFromChangeInTaxRate_1148" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" xlink:label="loc_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome_1149" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome_1149" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xlink:label="loc_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount_1403352" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount_1403352" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousOtherOperatingIncomeExpense" xlink:label="loc_ypf_MiscellaneousOtherOperatingIncomeExpense_1150" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ypf_MiscellaneousOtherOperatingIncomeExpense_1150" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1151" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract_1140" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1151" use="optional" order="12" preferredLabel="http://www.xbrl.org/2009/role/negatedTotalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfIncomeTaxLiabilityAbstract" xlink:label="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract_1402237" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesNoncurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent_1402238" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract_1402237" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent_1402238" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilities" xlink:label="loc_ifrs-full_CurrentTaxLiabilities_1402239" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract_1402237" xlink:to="loc_ifrs-full_CurrentTaxLiabilities_1402239" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfIncomeTaxLiabilityAbstract" xlink:label="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract_1402241" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownofincometaxliabilityTable" xlink:label="loc_ypf_BreakdownofincometaxliabilityTable_1402242" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract_1402241" xlink:to="loc_ypf_BreakdownofincometaxliabilityTable_1402242" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsAxis" xlink:label="loc_ypf_DetailsAxis_1402243" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_DetailsAxis_1402243" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain_1402244" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DetailsAxis_1402243" xlink:to="loc_ypf_DetailsDomain_1402244" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" xlink:label="loc_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember_1402306" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DetailsDomain_1402244" xlink:to="loc_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember_1402306" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RemainingInstallmentsOfTheRegimesMember" xlink:label="loc_ypf_RemainingInstallmentsOfTheRegimesMember_1402305" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DetailsDomain_1402244" xlink:to="loc_ypf_RemainingInstallmentsOfTheRegimesMember_1402305" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneAxis" xlink:label="loc_ypf_DetailsOneAxis_1402246" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_DetailsOneAxis_1402246" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneDomain" xlink:label="loc_ypf_DetailsOneDomain_1402247" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DetailsOneAxis_1402246" xlink:to="loc_ypf_DetailsOneDomain_1402247" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentCostsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1402248" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DetailsOneDomain_1402247" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1402248" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsAxis" xlink:label="loc_ypf_InstalmentsAxis_1402249" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_InstalmentsAxis_1402249" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsDomain" xlink:label="loc_ypf_InstalmentsDomain_1402250" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InstalmentsAxis_1402249" xlink:to="loc_ypf_InstalmentsDomain_1402250" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwelveInstalmentsMember" xlink:label="loc_ypf_TwelveInstalmentsMember_1402251" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InstalmentsDomain_1402250" xlink:to="loc_ypf_TwelveInstalmentsMember_1402251" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakDownOfIncomeTaxLiabilityLineItems" xlink:label="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems_1402252" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems_1402252" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilities" xlink:label="loc_ifrs-full_CurrentTaxLiabilities_1402253" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems_1402252" xlink:to="loc_ifrs-full_CurrentTaxLiabilities_1402253" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" xlink:label="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract_1153" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract_1153" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousDeferredTaxLiabilitiesMember" xlink:label="loc_ypf_MiscellaneousDeferredTaxLiabilitiesMember_1168" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159" xlink:to="loc_ypf_MiscellaneousDeferredTaxLiabilitiesMember_1168" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" xlink:to="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xlink:label="loc_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember_1169" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember_1169" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForTaxInflationMember" xlink:label="loc_ypf_AdjustmentForTaxInflationMember_637577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_AdjustmentForTaxInflationMember_637577" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xlink:label="loc_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember_1402594" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember_1402594" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xlink:label="loc_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember_1402595" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember_1402595" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" xlink:label="loc_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember_1402944" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember_1402944" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1154" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1154" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1155" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1154" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1155" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xlink:label="loc_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember_1162" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember_1162" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousDeferredTaxAssetsMember" xlink:label="loc_ypf_MiscellaneousDeferredTaxAssetsMember_1163" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ypf_MiscellaneousDeferredTaxAssetsMember_1163" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1164" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1164" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" xlink:label="loc_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember_1402940" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember_1402940" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfDeferredTaxLineItems" xlink:label="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxAssets" xlink:label="loc_ifrs-full_NetDeferredTaxAssets_1165" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_NetDeferredTaxAssets_1165" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxLiabilities" xlink:label="loc_ifrs-full_NetDeferredTaxLiabilities_1166" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_NetDeferredTaxLiabilities_1166" use="optional" order="20" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilityAsset" xlink:label="loc_ifrs-full_DeferredTaxLiabilityAsset_1167" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_DeferredTaxLiabilityAsset_1167" use="optional" order="21" preferredLabel="http://www.xbrl.org/2009/role/negatedTotalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" xlink:label="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract_1171" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract_1171" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" xlink:to="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain_1175" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" xlink:to="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain_1175" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfDeferredTaxLineItems" xlink:label="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" xlink:to="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xlink:label="loc_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency_1179" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" xlink:to="loc_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency_1179" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xlink:label="loc_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar_1402254" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" xlink:to="loc_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar_1402254" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" xlink:label="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract_1183" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract_1183" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1189" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1189" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1190" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1189" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1190" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1188" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1188" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1191" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_MaturityAxis_1191" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1184" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_1191" xlink:to="loc_ifrs-full_MaturityDomain_1184" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanAxis" xlink:label="loc_ypf_NameOfPlanAxis_637482" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ypf_NameOfPlanAxis_637482" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanMember" xlink:label="loc_ypf_NameOfPlanMember_637484" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NameOfPlanAxis_637482" xlink:to="loc_ypf_NameOfPlanMember_637484" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearAxis" xlink:label="loc_ypf_TaxYearAxis_637489" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ypf_TaxYearAxis_637489" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearMember" xlink:label="loc_ypf_TaxYearMember_637490" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxYearAxis_637489" xlink:to="loc_ypf_TaxYearMember_637490" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" xlink:label="loc_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember_1402945" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxYearMember_637490" xlink:to="loc_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember_1402945" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssets" xlink:label="loc_ifrs-full_DeferredTaxAssets_1199" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ifrs-full_DeferredTaxAssets_1199" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilities" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_1200" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_1200" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountsOfDeferredTaxAssetsNotRecognised" xlink:label="loc_ypf_AmountsOfDeferredTaxAssetsNotRecognised_640270" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ypf_AmountsOfDeferredTaxAssetsNotRecognised_640270" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecognizedTaxLossesCarryforward" xlink:label="loc_ypf_RecognizedTaxLossesCarryforward_1402284" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ypf_RecognizedTaxLossesCarryforward_1402284" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableAbstract" xlink:label="loc_ypf_DisclosureOfTaxesPayableAbstract_637250" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableTable" xlink:label="loc_ypf_DisclosureOfTaxesPayableTable_637251" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTaxesPayableAbstract_637250" xlink:to="loc_ypf_DisclosureOfTaxesPayableTable_637251" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeAxis" xlink:label="loc_ypf_TaxesByTypeAxis_637253" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTaxesPayableTable_637251" xlink:to="loc_ypf_TaxesByTypeAxis_637253" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeDomain" xlink:label="loc_ypf_TaxesByTypeDomain_637254" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeAxis_637253" xlink:to="loc_ypf_TaxesByTypeDomain_637254" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IvaMember" xlink:label="loc_ypf_IvaMember_637255" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_IvaMember_637255" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WithholdingsAndPerceptionsMember" xlink:label="loc_ypf_WithholdingsAndPerceptionsMember_637257" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_WithholdingsAndPerceptionsMember_637257" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RoyaltiesMember" xlink:label="loc_ypf_RoyaltiesMember_637261" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_RoyaltiesMember_637261" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FuelsTaxMember" xlink:label="loc_ypf_FuelsTaxMember_637262" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_FuelsTaxMember_637262" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TurnoverTaxPayableMember" xlink:label="loc_ypf_TurnoverTaxPayableMember_1402353" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_TurnoverTaxPayableMember_1402353" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousMember" xlink:label="loc_ypf_MiscellaneousMember_637264" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_MiscellaneousMember_637264" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableLineItems" xlink:label="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTaxesPayableTable_637251" xlink:to="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637268" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" xlink:to="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637268" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637269" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" xlink:to="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637269" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xlink:label="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityPayablesCurrent" xlink:label="loc_ypf_SalariesAndSocialSecurityPayablesCurrent_637161" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_SalariesAndSocialSecurityPayablesCurrent_637161" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BonusesAndIncentivesProvisionCurrent" xlink:label="loc_ypf_BonusesAndIncentivesProvisionCurrent_637162" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_BonusesAndIncentivesProvisionCurrent_637162" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xlink:label="loc_ypf_NonCurrentCashSettledSharebasedPaymentsProvision_1402950" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_NonCurrentCashSettledSharebasedPaymentsProvision_1402950" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VacationProvisionCurrent" xlink:label="loc_ypf_VacationProvisionCurrent_637163" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_VacationProvisionCurrent_637163" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForSeveranceIndemnitiesCurrent" xlink:label="loc_ypf_ProvisionForSeveranceIndemnitiesCurrent_1402951" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_ProvisionForSeveranceIndemnitiesCurrent_1402951" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:label="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals_637165" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals_637165" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurity" xlink:label="loc_ypf_SalariesAndSocialSecurity_867149" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_SalariesAndSocialSecurity_867149" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" xlink:label="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent_1403342" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent_1403342" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" xlink:label="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent_1403343" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract_637160" xlink:to="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent_1403343" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract_861919" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLeaseLiabilities" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities_861920" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_861919" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities_861920" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLeaseLiabilities" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities_861921" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_861919" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities_861921" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract_637182" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xlink:label="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637182" xlink:to="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_637184" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" xlink:to="loc_ifrs-full_MaturityAxis_637184" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_637185" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_637184" xlink:to="loc_ifrs-full_MaturityDomain_637185" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="loc_ifrs-full_NotLaterThanOneYearMember_637186" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_NotLaterThanOneYearMember_637186" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_637187" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_637187" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_637188" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_637188" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_637189" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_637189" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_637190" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_637190" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xlink:label="loc_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember_637191" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember_637191" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaterThanNineYearsMember" xlink:label="loc_ypf_LaterThanNineYearsMember_637193" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ypf_LaterThanNineYearsMember_637193" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xlink:label="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" xlink:to="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilities" xlink:label="loc_ifrs-full_LeaseLiabilities_637196" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" xlink:to="loc_ifrs-full_LeaseLiabilities_637196" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:label="loc_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16_637195" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" xlink:to="loc_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16_637195" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract_637219" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xlink:label="loc_ypf_InterestExpensesOnLeaseLiabilitiesIncurred_637220" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637219" xlink:to="loc_ypf_InterestExpensesOnLeaseLiabilitiesIncurred_637220" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:label="loc_ifrs-full_InterestExpenseOnLeaseLiabilities_637221" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637219" xlink:to="loc_ifrs-full_InterestExpenseOnLeaseLiabilities_637221" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestCostsCapitalised" xlink:label="loc_ifrs-full_InterestCostsCapitalised_637222" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637219" xlink:to="loc_ifrs-full_InterestCostsCapitalised_637222" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" xlink:label="loc_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations_1334001" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637219" xlink:to="loc_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations_1334001" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilities" xlink:label="loc_ifrs-full_LeaseLiabilities_637208" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ifrs-full_LeaseLiabilities_637208" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionsToLeaseLiabilities" xlink:label="loc_ypf_AdditionsToLeaseLiabilities_637209" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ypf_AdditionsToLeaseLiabilities_637209" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xlink:label="loc_ypf_InterestExpensesOnLeaseLiabilitiesIncurred_637210" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ypf_InterestExpensesOnLeaseLiabilitiesIncurred_637210" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DeletionsToLeaseLiabilities" xlink:label="loc_ypf_DeletionsToLeaseLiabilities_637211" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ypf_DeletionsToLeaseLiabilities_637211" use="optional" order="4" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashOutflowForLeases" xlink:label="loc_ifrs-full_CashOutflowForLeases_637212" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ifrs-full_CashOutflowForLeases_637212" use="optional" order="5" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" xlink:label="loc_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities_637215" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities_637215" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilities" xlink:label="loc_ifrs-full_LeaseLiabilities_637216" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract_637197" xlink:to="loc_ifrs-full_LeaseLiabilities_637216" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansScheduleOfLoansDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1223" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1223" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_1225" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_1225" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1226" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1225" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1226" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsMember" xlink:label="loc_ypf_NegotiableObligationsMember_1235" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_NegotiableObligationsMember_1235" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPreFinancingMember" xlink:label="loc_ypf_ExportPreFinancingMember_1234" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_ExportPreFinancingMember_1234" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialLoansMember" xlink:label="loc_ypf_FinancialLoansMember_1402764" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_FinancialLoansMember_1402764" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportsFinancingMember" xlink:label="loc_ypf_ImportsFinancingMember_1238" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_ImportsFinancingMember_1238" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountOverdraftMember" xlink:label="loc_ypf_AccountOverdraftMember_1237" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_AccountOverdraftMember_1237" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StockMarketPromissoryNotesMember" xlink:label="loc_ypf_StockMarketPromissoryNotesMember_1402771" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_StockMarketPromissoryNotesMember_1402771" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_1227" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_srt_CurrencyAxis_1227" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_1224" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_CurrencyAxis_1227" xlink:to="loc_currency_AllCurrenciesDomain_1224" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_ARS" xlink:label="loc_currency_ARS_1232" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_currency_AllCurrenciesDomain_1224" xlink:to="loc_currency_ARS_1232" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_OtherCurrencyMember" xlink:label="loc_srt_OtherCurrencyMember_1233" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_currency_AllCurrenciesDomain_1224" xlink:to="loc_srt_OtherCurrencyMember_1233" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1230" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_ifrs-full_RangeAxis_1230" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1231" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1230" xlink:to="loc_ifrs-full_RangeDomain_1231" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_1243" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1231" xlink:to="loc_ifrs-full_BottomOfRangeMember_1243" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1244" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1231" xlink:to="loc_ifrs-full_TopOfRangeMember_1244" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="loc_ifrs-full_BorrowingsInterestRate_1239" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_BorrowingsInterestRate_1239" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="loc_ifrs-full_BorrowingsMaturity_1240" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_BorrowingsMaturity_1240" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermBorrowings" xlink:label="loc_ifrs-full_LongtermBorrowings_1241" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_LongtermBorrowings_1241" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermBorrowings" xlink:label="loc_ifrs-full_ShorttermBorrowings_1242" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_ShorttermBorrowings_1242" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1246" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1246" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_1247" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_1247" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1248" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1247" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1248" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPreFinancingMember" xlink:label="loc_ypf_ExportPreFinancingMember_1255" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1248" xlink:to="loc_ypf_ExportPreFinancingMember_1255" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoNacionArgentinaMember" xlink:label="loc_ypf_BancoNacionArgentinaMember_1264" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252" xlink:to="loc_ypf_BancoNacionArgentinaMember_1264" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_1254" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_1254" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_1253" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_1254" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_1253" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_632537" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_RangeAxis_632537" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_632538" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_632537" xlink:to="loc_ifrs-full_RangeDomain_632538" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsRepurchased" xlink:label="loc_ypf_NegotiableObligationsRepurchased_1257" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ypf_NegotiableObligationsRepurchased_1257" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Borrowings" xlink:label="loc_ifrs-full_Borrowings_1258" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ifrs-full_Borrowings_1258" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsCancelled" xlink:label="loc_ypf_NegotiableObligationsCancelled_1261" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ypf_NegotiableObligationsCancelled_1261" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansGranted" xlink:label="loc_ypf_LoansGranted_1402802" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ypf_LoansGranted_1402802" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Borrowings" xlink:label="loc_ifrs-full_Borrowings_1272" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ifrs-full_Borrowings_1272" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_1273" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities_1273" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_1274" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities_1274" use="optional" order="3" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_1275" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities_1275" use="optional" order="4" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xlink:label="loc_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities_1402112" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities_1402112" use="optional" order="5" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccruedInterestOnGroupLoans" xlink:label="loc_ypf_AccruedInterestOnGroupLoans_1276" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ypf_AccruedInterestOnGroupLoans_1276" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" xlink:label="loc_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax_1277" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax_1277" use="optional" order="7" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnNetMonetaryPosition" xlink:label="loc_ifrs-full_GainsLossesOnNetMonetaryPosition_1278" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ifrs-full_GainsLossesOnNetMonetaryPosition_1278" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesOfBorrowingDueToBusinessCombination" xlink:label="loc_ypf_IncreasesOfBorrowingDueToBusinessCombination_1403353" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ypf_IncreasesOfBorrowingDueToBusinessCombination_1403353" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BorrowingsReclassifications" xlink:label="loc_ypf_BorrowingsReclassifications_1402803" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ypf_BorrowingsReclassifications_1402803" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Borrowings" xlink:label="loc_ifrs-full_Borrowings_1280" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1271" xlink:to="loc_ifrs-full_Borrowings_1280" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1296" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1296" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_1298" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_1298" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1299" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1298" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1299" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsMember" xlink:label="loc_ypf_NegotiableObligationsMember_1336" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1299" xlink:to="loc_ypf_NegotiableObligationsMember_1336" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1305" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_MaturityAxis_1305" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1297" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_1305" xlink:to="loc_ifrs-full_MaturityDomain_1297" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NineteenNinetyEightMember" xlink:label="loc_ypf_NineteenNinetyEightMember_1328" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_NineteenNinetyEightMember_1328" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xlink:label="loc_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember_1332" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember_1332" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFourteenSeptemberMember" xlink:label="loc_ypf_TwoThousandFourteenSeptemberMember_1315" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFourteenSeptemberMember_1315" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFifteenAprilMember" xlink:label="loc_ypf_TwoThousandFifteenAprilMember_1317" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFifteenAprilMember_1317" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFifteenOctoberMember" xlink:label="loc_ypf_TwoThousandFifteenOctoberMember_1321" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFifteenOctoberMember_1321" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandSeventeenJulyAndDecemberMember" xlink:label="loc_ypf_TwoThousandSeventeenJulyAndDecemberMember_1334" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandSeventeenJulyAndDecemberMember_1334" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandSeventeenDecemberMember" xlink:label="loc_ypf_TwoThousandSeventeenDecemberMember_1327" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandSeventeenDecemberMember_1327" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandNineteenJuneMember" xlink:label="loc_ypf_TwoThousandNineteenJuneMember_637237" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandNineteenJuneMember_637237" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyJulyMember" xlink:label="loc_ypf_TwoThousandTwentyJulyMember_863348" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyJulyMember_863348" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyOneFebruaryMember" xlink:label="loc_ypf_TwoThousandTwentyOneFebruaryMember_1330768" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyOneFebruaryMember_1330768" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyOneJulyMember" xlink:label="loc_ypf_TwoThousandTwentyOneJulyMember_1330770" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyOneJulyMember_1330770" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJanuaryMember_1402380" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeJanuaryMember_1402380" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember_1402381" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember_1402381" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeAprilMember" xlink:label="loc_ypf_TwoThousandTwentyThreeAprilMember_1402382" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeAprilMember_1402382" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJuneMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJuneMember_1402383" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeJuneMember_1402383" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeSeptemberMember" xlink:label="loc_ypf_TwoThousandTwentyThreeSeptemberMember_1402384" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeSeptemberMember_1402384" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyThreeOctoberMember_1402385" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeOctoberMember_1402385" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyFourJanuaryMember_1402893" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourJanuaryMember_1402893" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourMayMember" xlink:label="loc_ypf_TwoThousandTwentyFourMayMember_1402894" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourMayMember_1402894" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourSeptemberMember" xlink:label="loc_ypf_TwoThousandTwentyFourSeptemberMember_1402898" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourSeptemberMember_1402898" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyFourOctoberMember_1402900" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourOctoberMember_1402900" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJanuaryMember_1403218" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveJanuaryMember_1403218" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveFebruaryMember" xlink:label="loc_ypf_TwoThousandTwentyFiveFebruaryMember_1403219" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveFebruaryMember_1403219" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveMayMember" xlink:label="loc_ypf_TwoThousandTwentyFiveMayMember_1403220" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveMayMember_1403220" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJulyMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJulyMember_1403221" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveJulyMember_1403221" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJulyAndAugustMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJulyAndAugustMember_1403222" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveJulyAndAugustMember_1403222" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveAugustMember" xlink:label="loc_ypf_TwoThousandTwentyFiveAugustMember_1403223" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveAugustMember_1403223" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyFiveOctoberMember_1403224" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveOctoberMember_1403224" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveDecemberMember" xlink:label="loc_ypf_TwoThousandTwentyFiveDecemberMember_1403225" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveDecemberMember_1403225" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" xlink:label="loc_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember_1403227" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember_1403227" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyEightMember" xlink:label="loc_ypf_ClassTwentyEightMember_1363" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyEightMember_1363" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyFourMember" xlink:label="loc_ypf_ClassThirtyFourMember_1343" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyFourMember_1343" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyNineMember" xlink:label="loc_ypf_ClassThirtyNineMember_1365" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyNineMember_1365" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFiftyThreeMember" xlink:label="loc_ypf_ClassFiftyThreeMember_1368" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFiftyThreeMember_1368" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFiftyFourMember" xlink:label="loc_ypf_ClassFiftyFourMember_1369" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFiftyFourMember_1369" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOneMember" xlink:label="loc_ypf_ClassOneMember_637242" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassOneMember_637242" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirteenMember" xlink:label="loc_ypf_ClassThirteenMember_1339" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirteenMember_1339" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassSixteenMember" xlink:label="loc_ypf_ClassSixteenMember_1330828" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassSixteenMember_1330828" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassSeventeenMember" xlink:label="loc_ypf_ClassSeventeenMember_1340" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassSeventeenMember_1340" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassEighteenMember" xlink:label="loc_ypf_ClassEighteenMember_1330794" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassEighteenMember_1330794" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassNineteenMember" xlink:label="loc_ypf_ClassNineteenMember_1359" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassNineteenMember_1359" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyMember" xlink:label="loc_ypf_ClassTwentyMember_1341" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyMember_1341" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyOneMember" xlink:label="loc_ypf_ClassTwentyOneMember_1402386" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyOneMember_1402386" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyTwoMember" xlink:label="loc_ypf_ClassTwentyTwoMember_1360" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyTwoMember_1360" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyThreeMember" xlink:label="loc_ypf_ClassTwentyThreeMember_1402387" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyThreeMember_1402387" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyFourMember" xlink:label="loc_ypf_ClassTwentyFourMember_1361" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyFourMember_1361" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyFiveMember" xlink:label="loc_ypf_ClassTwentyFiveMember_1402388" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyFiveMember_1402388" use="optional" order="55" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentySixMember" xlink:label="loc_ypf_ClassTwentySixMember_1362" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentySixMember_1362" use="optional" order="56" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentySevenMember" xlink:label="loc_ypf_ClassTwentySevenMember_1402389" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentySevenMember_1402389" use="optional" order="57" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyNineMember" xlink:label="loc_ypf_ClassTwentyNineMember_1342" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyNineMember_1342" use="optional" order="58" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyFiveMember" xlink:label="loc_ypf_ClassThirtyFiveMember_1344" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyFiveMember_1344" use="optional" order="59" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtySixMember" xlink:label="loc_ypf_ClassThirtySixMember_1345" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtySixMember_1345" use="optional" order="60" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtySevenMember" xlink:label="loc_ypf_ClassThirtySevenMember_1346" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtySevenMember_1346" use="optional" order="61" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyEightMember" xlink:label="loc_ypf_ClassThirtyEightMember_1347" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyEightMember_1347" use="optional" order="62" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyMember" xlink:label="loc_ypf_ClassFortyMember_1348" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFortyMember_1348" use="optional" order="63" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyOneMember" xlink:label="loc_ypf_ClassFortyOneMember_1349" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFortyOneMember_1349" use="optional" order="64" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyTwoMember" xlink:label="loc_ypf_ClassFortyTwoMember_1350" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFortyTwoMember_1350" use="optional" order="65" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyMember" xlink:label="loc_ypf_ClassThirtyMember_1402902" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyMember_1402902" use="optional" order="66" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyOneMember" xlink:label="loc_ypf_ClassThirtyOneMember_1402903" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyOneMember_1402903" use="optional" order="67" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyTwoMember" xlink:label="loc_ypf_ClassThirtyTwoMember_1402908" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyTwoMember_1402908" use="optional" order="68" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyThreeMember" xlink:label="loc_ypf_ClassThirtyThreeMember_1364" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyThreeMember_1364" use="optional" order="69" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_1307" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_1307" use="optional" order="70" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_1304" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_1307" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_1304" use="optional" order="71" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixedInterestRateMember" xlink:label="loc_ifrs-full_FixedInterestRateMember_1378" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_1304" xlink:to="loc_ifrs-full_FixedInterestRateMember_1378" use="optional" order="72" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" use="optional" order="73" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1306" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1306" use="optional" order="74" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" use="optional" order="75" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Loans" xlink:label="loc_ypf_Loans_1372" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_Loans_1372" use="optional" order="76" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansInterestRate" xlink:label="loc_ypf_LoansInterestRate_1374" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_LoansInterestRate_1374" use="optional" order="77" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansMaturity" xlink:label="loc_ypf_LoansMaturity_1375" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_LoansMaturity_1375" use="optional" order="78" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentLoans" xlink:label="loc_ypf_NoncurrentLoans_1376" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_NoncurrentLoans_1376" use="optional" order="79" preferredLabel="http://www.xbrl.org/2003/role/positiveTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentLoans" xlink:label="loc_ypf_CurrentLoans_1377" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_CurrentLoans_1377" use="optional" order="80" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1382" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract_1382" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1384" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1384" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1385" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1384" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1385" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MediumTermNotes1Member" xlink:label="loc_ypf_MediumTermNotes1Member_1391" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1385" xlink:to="loc_ypf_MediumTermNotes1Member_1391" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1388" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" xlink:to="loc_ifrs-full_MaturityAxis_1388" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1383" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_1388" xlink:to="loc_ifrs-full_MaturityDomain_1383" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NineteenNinetySevenMember" xlink:label="loc_ypf_NineteenNinetySevenMember_1389" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1383" xlink:to="loc_ypf_NineteenNinetySevenMember_1389" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandEightMember" xlink:label="loc_ypf_TwoThousandEightMember_1390" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1383" xlink:to="loc_ypf_TwoThousandEightMember_1390" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1386" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1386" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableAmount" xlink:label="loc_ypf_NegotiableAmount_1392" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1386" xlink:to="loc_ypf_NegotiableAmount_1392" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherLiabilitiesAbstract" xlink:label="loc_ypf_DisclosureOfOtherLiabilitiesAbstract_1394" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentLiabilitiesAbstract" xlink:label="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherLiabilitiesAbstract_1394" xlink:to="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForConcessionsCurrent" xlink:label="loc_ypf_LiabilitiesForConcessionsCurrent_1402357" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" xlink:to="loc_ypf_LiabilitiesForConcessionsCurrent_1402357" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForContractualClaimsCurrent" xlink:label="loc_ypf_LiabilitiesForContractualClaimsCurrent_1397" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" xlink:to="loc_ypf_LiabilitiesForContractualClaimsCurrent_1397" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOperatingOptimizationsCurrent" xlink:label="loc_ypf_ProvisionForOperatingOptimizationsCurrent_1402918" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" xlink:to="loc_ypf_ProvisionForOperatingOptimizationsCurrent_1402918" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermMiscellaneousOtherProvisions" xlink:label="loc_ifrs-full_ShorttermMiscellaneousOtherProvisions_1400" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" xlink:to="loc_ifrs-full_ShorttermMiscellaneousOtherProvisions_1400" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForAgreementsCurrent" xlink:label="loc_ypf_LiabilitiesForAgreementsCurrent_1403345" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" xlink:to="loc_ypf_LiabilitiesForAgreementsCurrent_1403345" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentLiabilities" xlink:label="loc_ifrs-full_OtherCurrentLiabilities_1401" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract_1395" xlink:to="loc_ifrs-full_OtherCurrentLiabilities_1401" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherNoncurrentLiabilitiesAbstract" xlink:label="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherLiabilitiesAbstract_1394" xlink:to="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForConcessionsNoncurrent" xlink:label="loc_ypf_LiabilitiesForConcessionsNoncurrent_1402356" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" xlink:to="loc_ypf_LiabilitiesForConcessionsNoncurrent_1402356" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForContractualClaimsNoncurrent" xlink:label="loc_ypf_LiabilitiesForContractualClaimsNoncurrent_1402" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" xlink:to="loc_ypf_LiabilitiesForContractualClaimsNoncurrent_1402" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMiscellaneousLiabilitiesNoncurrent" xlink:label="loc_ypf_OtherMiscellaneousLiabilitiesNoncurrent_1405" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" xlink:to="loc_ypf_OtherMiscellaneousLiabilitiesNoncurrent_1405" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForAgreementsNoncurrent" xlink:label="loc_ypf_LiabilitiesForAgreementsNoncurrent_1403346" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" xlink:to="loc_ypf_LiabilitiesForAgreementsNoncurrent_1403346" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities_1406" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherNoncurrentLiabilitiesAbstract_1396" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities_1406" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAccountsPayableAbstract" xlink:label="loc_ypf_DisclosureOfAccountsPayableAbstract_1408" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesAbstract" xlink:label="loc_ifrs-full_NoncurrentPayablesAbstract_1409" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfAccountsPayableAbstract_1408" xlink:to="loc_ifrs-full_NoncurrentPayablesAbstract_1409" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesToTradeSuppliers" xlink:label="loc_ifrs-full_NoncurrentPayablesToTradeSuppliers_1416" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentPayablesAbstract_1409" xlink:to="loc_ifrs-full_NoncurrentPayablesToTradeSuppliers_1416" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentDepositsFromCustomers" xlink:label="loc_ifrs-full_NoncurrentDepositsFromCustomers_1417" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentPayablesAbstract_1409" xlink:to="loc_ifrs-full_NoncurrentDepositsFromCustomers_1417" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PayablesWithPartnersNoncurrent" xlink:label="loc_ypf_PayablesWithPartnersNoncurrent_1418" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentPayablesAbstract_1409" xlink:to="loc_ypf_PayablesWithPartnersNoncurrent_1418" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermMiscellaneousOtherProvisions" xlink:label="loc_ifrs-full_LongtermMiscellaneousOtherProvisions_1419" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentPayablesAbstract_1409" xlink:to="loc_ifrs-full_LongtermMiscellaneousOtherProvisions_1419" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayables" xlink:label="loc_ifrs-full_NoncurrentPayables_1420" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NoncurrentPayablesAbstract_1409" xlink:to="loc_ifrs-full_NoncurrentPayables_1420" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesAbstract" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfAccountsPayableAbstract_1408" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers_1411" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers_1411" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentDepositsFromCustomers" xlink:label="loc_ifrs-full_CurrentDepositsFromCustomers_1412" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" xlink:to="loc_ifrs-full_CurrentDepositsFromCustomers_1412" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PayablesWithPartnersCurrent" xlink:label="loc_ypf_PayablesWithPartnersCurrent_1413" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" xlink:to="loc_ypf_PayablesWithPartnersCurrent_1413" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherLiabilitiesCurrent1" xlink:label="loc_ypf_OtherLiabilitiesCurrent1_1414" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" xlink:to="loc_ypf_OtherLiabilitiesCurrent1_1414" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_1415" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract_1410" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_1415" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenuesAbstract" xlink:label="loc_ypf_DisclosureOfRevenuesAbstract_1422" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenuesFromContractsWithCustomers" xlink:label="loc_ypf_RevenuesFromContractsWithCustomers_1402374" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenuesAbstract_1422" xlink:to="loc_ypf_RevenuesFromContractsWithCustomers_1402374" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueFromGovernmentIncentives" xlink:label="loc_ypf_RevenueFromGovernmentIncentives_1424" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenuesAbstract_1422" xlink:to="loc_ypf_RevenueFromGovernmentIncentives_1424" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_1426" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenuesAbstract_1422" xlink:to="loc_ifrs-full_Revenue_1426" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueAbstract" xlink:label="loc_ypf_DisclosureOfRevenueAbstract_1428" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable_1430" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1428" xlink:to="loc_ypf_DisclosureOfRevenueTable_1430" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersAxis" xlink:label="loc_ifrs-full_MarketsOfCustomersAxis_1431" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1430" xlink:to="loc_ifrs-full_MarketsOfCustomersAxis_1431" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain_1432" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis_1431" xlink:to="loc_ifrs-full_MarketsOfCustomersDomain_1432" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1436" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_UpstreamMember_1436" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1437" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1437" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1438" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_LNGandIntegratedGasMember_1438" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403216" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_NewEnergiesMember_1403216" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_1439" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_1439" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_1433" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1430" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_1433" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_1434" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_1433" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_1434" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DieselMember" xlink:label="loc_ypf_DieselMember_636455" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_DieselMember_636455" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasolinesMember" xlink:label="loc_ypf_GasolinesMember_1441" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_GasolinesMember_1441" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember_1442" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_NaturalGasMember_1442" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CrudeOilMember" xlink:label="loc_srt_CrudeOilMember_1443" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_srt_CrudeOilMember_1443" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JetFuelMember" xlink:label="loc_ypf_JetFuelMember_1444" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_JetFuelMember_1444" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LubricantsAndByproductsMember" xlink:label="loc_ypf_LubricantsAndByproductsMember_1445" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_LubricantsAndByproductsMember_1445" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquefiedPetroleumGasMember" xlink:label="loc_ypf_LiquefiedPetroleumGasMember_1446" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_LiquefiedPetroleumGasMember_1446" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FuelOilMember" xlink:label="loc_ypf_FuelOilMember_1447" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_FuelOilMember_1447" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetrochemicalsMember" xlink:label="loc_ypf_PetrochemicalsMember_1448" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_PetrochemicalsMember_1448" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FertilizersAndCropProtectionProductsMember" xlink:label="loc_ypf_FertilizersAndCropProtectionProductsMember_1449" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_FertilizersAndCropProtectionProductsMember_1449" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FloursOilsAndGrainsMember" xlink:label="loc_ypf_FloursOilsAndGrainsMember_1450" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_FloursOilsAndGrainsMember_1450" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsphaltsMember" xlink:label="loc_ypf_AsphaltsMember_1451" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_AsphaltsMember_1451" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GoodsForResaleAtGasStationsMember" xlink:label="loc_ypf_GoodsForResaleAtGasStationsMember_1452" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_GoodsForResaleAtGasStationsMember_1452" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromServicesMember" xlink:label="loc_ypf_IncomeFromServicesMember_1453" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_IncomeFromServicesMember_1453" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromConstructionContractsMember" xlink:label="loc_ypf_IncomeFromConstructionContractsMember_1454" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_IncomeFromConstructionContractsMember_1454" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VirginNaphthaMember" xlink:label="loc_ypf_VirginNaphthaMember_1455" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_VirginNaphthaMember_1455" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetroleumCokeMember" xlink:label="loc_ypf_PetroleumCokeMember_1456" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_PetroleumCokeMember_1456" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquefiedNaturalGasRegasificationMember" xlink:label="loc_ypf_LiquefiedNaturalGasRegasificationMember_1457" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_LiquefiedNaturalGasRegasificationMember_1457" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherGoodsAndServicesMember" xlink:label="loc_ypf_OtherGoodsAndServicesMember_1458" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_OtherGoodsAndServicesMember_1458" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems_1429" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1430" xlink:to="loc_ypf_DisclosureOfRevenueLineItems_1429" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromContractsWithCustomers" xlink:label="loc_ifrs-full_RevenueFromContractsWithCustomers_1435" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1429" xlink:to="loc_ifrs-full_RevenueFromContractsWithCustomers_1435" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueAbstract" xlink:label="loc_ypf_DisclosureOfRevenueAbstract_1460" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfNaturalGas" xlink:label="loc_ifrs-full_RevenueFromSaleOfNaturalGas_1461" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1460" xlink:to="loc_ifrs-full_RevenueFromSaleOfNaturalGas_1461" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueAbstract" xlink:label="loc_ypf_DisclosureOfRevenueAbstract_1463" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable_1465" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1463" xlink:to="loc_ypf_DisclosureOfRevenueTable_1465" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersAxis" xlink:label="loc_ifrs-full_MarketsOfCustomersAxis_1466" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1465" xlink:to="loc_ifrs-full_MarketsOfCustomersAxis_1466" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain_1467" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis_1466" xlink:to="loc_ifrs-full_MarketsOfCustomersDomain_1467" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1471" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_UpstreamMember_1471" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1472" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1472" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1473" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_LNGandIntegratedGasMember_1473" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403217" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_NewEnergiesMember_1403217" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_1474" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_1474" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsAxis" xlink:label="loc_ifrs-full_SalesChannelsAxis_1468" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1465" xlink:to="loc_ifrs-full_SalesChannelsAxis_1468" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsDomain" xlink:label="loc_ifrs-full_SalesChannelsDomain_1469" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsAxis_1468" xlink:to="loc_ifrs-full_SalesChannelsDomain_1469" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_1475" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_GasStationsMember_1475" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PowerPlantsMember" xlink:label="loc_ypf_PowerPlantsMember_1476" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_PowerPlantsMember_1476" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DistributionCompaniesMember" xlink:label="loc_ypf_DistributionCompaniesMember_1477" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_DistributionCompaniesMember_1477" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RetailDistributionOfNaturalGasMember" xlink:label="loc_ypf_RetailDistributionOfNaturalGasMember_1478" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_RetailDistributionOfNaturalGasMember_1478" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IndustriesTransportAndAviationMember" xlink:label="loc_ypf_IndustriesTransportAndAviationMember_1479" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_IndustriesTransportAndAviationMember_1479" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgricultureMember" xlink:label="loc_ypf_AgricultureMember_1480" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_AgricultureMember_1480" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetrochemicalIndustryMember" xlink:label="loc_ypf_PetrochemicalIndustryMember_1481" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_PetrochemicalIndustryMember_1481" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradingMember" xlink:label="loc_ypf_TradingMember_1482" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_TradingMember_1482" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilCompaniesMember" xlink:label="loc_ypf_OilCompaniesMember_1483" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_OilCompaniesMember_1483" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CommercializationOfLiquefiedPetroleumGasMember" xlink:label="loc_ypf_CommercializationOfLiquefiedPetroleumGasMember_1484" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_CommercializationOfLiquefiedPetroleumGasMember_1484" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherSalesChannelsMember" xlink:label="loc_ypf_OtherSalesChannelsMember_1485" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_OtherSalesChannelsMember_1485" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems_1464" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1465" xlink:to="loc_ypf_DisclosureOfRevenueLineItems_1464" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromContractsWithCustomers" xlink:label="loc_ifrs-full_RevenueFromContractsWithCustomers_1470" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1464" xlink:to="loc_ifrs-full_RevenueFromContractsWithCustomers_1470" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueAbstract" xlink:label="loc_ifrs-full_RevenueAbstract_1402364" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueByGeographicalAreaTable" xlink:label="loc_ypf_RevenueByGeographicalAreaTable_1402365" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RevenueAbstract_1402364" xlink:to="loc_ypf_RevenueByGeographicalAreaTable_1402365" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402366" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_RevenueByGeographicalAreaTable_1402365" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402366" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402367" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402366" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402367" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_1402368" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_country_AR_1402368" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MercosurAndAssociatesCountriesMember" xlink:label="loc_ypf_MercosurAndAssociatesCountriesMember_1402369" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_ypf_MercosurAndAssociatesCountriesMember_1402369" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EuropeMember" xlink:label="loc_srt_EuropeMember_1402371" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_srt_EuropeMember_1402371" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ForeignCountriesMember" xlink:label="loc_ifrs-full_ForeignCountriesMember_1402370" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_ifrs-full_ForeignCountriesMember_1402370" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueByGeographicalAreaLineItems" xlink:label="loc_ypf_RevenueByGeographicalAreaLineItems_1402372" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_RevenueByGeographicalAreaTable_1402365" xlink:to="loc_ypf_RevenueByGeographicalAreaLineItems_1402372" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_1402373" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_RevenueByGeographicalAreaLineItems_1402372" xlink:to="loc_ifrs-full_Revenue_1402373" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueAbstract" xlink:label="loc_ypf_DisclosureOfRevenueAbstract_1487" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable_1489" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1487" xlink:to="loc_ypf_DisclosureOfRevenueTable_1489" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1490" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1489" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1490" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1491" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1490" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1491" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DomesticMarketMember" xlink:label="loc_ypf_DomesticMarketMember_1494" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1491" xlink:to="loc_ypf_DomesticMarketMember_1494" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InternationalMarketMember" xlink:label="loc_ypf_InternationalMarketMember_1495" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1491" xlink:to="loc_ypf_InternationalMarketMember_1495" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems_1488" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueTable_1489" xlink:to="loc_ypf_DisclosureOfRevenueLineItems_1488" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_1492" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ifrs-full_Revenue_1492" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xlink:label="loc_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue_1402425" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue_1402425" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xlink:label="loc_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities_1402690" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities_1402690" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueAbstract" xlink:label="loc_ypf_DisclosureOfRevenueAbstract_1497" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentReceivablesFromContractsWithCustomers" xlink:label="loc_ifrs-full_CurrentReceivablesFromContractsWithCustomers_1498" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1497" xlink:to="loc_ifrs-full_CurrentReceivablesFromContractsWithCustomers_1498" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractAssets" xlink:label="loc_ifrs-full_CurrentContractAssets_1499" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1497" xlink:to="loc_ifrs-full_CurrentContractAssets_1499" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractLiabilities" xlink:label="loc_ifrs-full_CurrentContractLiabilities_1500" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1497" xlink:to="loc_ifrs-full_CurrentContractLiabilities_1500" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" xlink:label="loc_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers_1501" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1497" xlink:to="loc_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers_1501" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentContractLiabilities" xlink:label="loc_ifrs-full_NoncurrentContractLiabilities_1503" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfRevenueAbstract_1497" xlink:to="loc_ifrs-full_NoncurrentContractLiabilities_1503" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailsOfInventoryCostsAbstract" xlink:label="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories_1506" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ifrs-full_Inventories_1506" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryPurchases" xlink:label="loc_ypf_InventoryPurchases_1507" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ypf_InventoryPurchases_1507" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryProductionCosts" xlink:label="loc_ypf_InventoryProductionCosts_1508" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ypf_InventoryProductionCosts_1508" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryTranslationEffect" xlink:label="loc_ypf_InventoryTranslationEffect_1509" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ypf_InventoryTranslationEffect_1509" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WritedownsReversalsOfInventories" xlink:label="loc_ifrs-full_WritedownsReversalsOfInventories_1402927" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ifrs-full_WritedownsReversalsOfInventories_1402927" use="optional" order="5" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryInflationAdjustment" xlink:label="loc_ypf_InventoryInflationAdjustment_1511" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ypf_InventoryInflationAdjustment_1511" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesOfInventoriesFromBusinessCombinations" xlink:label="loc_ypf_IncreasesOfInventoriesFromBusinessCombinations_1403344" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ypf_IncreasesOfInventoriesFromBusinessCombinations_1403344" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationOfInventories" xlink:label="loc_ypf_ReclassificationOfInventories_1402928" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ypf_ReclassificationOfInventories_1402928" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories_1513" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ifrs-full_Inventories_1513" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedPeriodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CostOfSales" xlink:label="loc_ifrs-full_CostOfSales_1514" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract_1505" xlink:to="loc_ifrs-full_CostOfSales_1514" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNatureAbstract" xlink:label="loc_ifrs-full_ExpenseByNatureAbstract_1519" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfExpensesTable" xlink:label="loc_ypf_DisclosureOfExpensesTable_1521" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ExpenseByNatureAbstract_1519" xlink:to="loc_ypf_DisclosureOfExpensesTable_1521" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesTable_1521" xlink:to="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" xlink:to="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCostsMember" xlink:label="loc_ypf_ProductionCostsMember_1543" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_ProductionCostsMember_1543" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdministrativeExpensesMember" xlink:label="loc_ypf_AdministrativeExpensesMember_1544" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_AdministrativeExpensesMember_1544" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SellingExpensesMember" xlink:label="loc_ypf_SellingExpensesMember_1545" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_SellingExpensesMember_1545" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationExpensesMember" xlink:label="loc_ypf_ExplorationExpensesMember_1546" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_ExplorationExpensesMember_1546" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfExpensesLineItems" xlink:label="loc_ypf_DisclosureOfExpensesLineItems_1520" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesTable_1521" xlink:to="loc_ypf_DisclosureOfExpensesLineItems_1520" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityTaxes" xlink:label="loc_ypf_SalariesAndSocialSecurityTaxes_1524" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_SalariesAndSocialSecurityTaxes_1524" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServicesExpense" xlink:label="loc_ifrs-full_ServicesExpense_1525" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_ServicesExpense_1525" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherExpenseByNature" xlink:label="loc_ifrs-full_OtherExpenseByNature_1526" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_OtherExpenseByNature_1526" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xlink:label="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense_1527" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense_1527" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RoyaltyExpense" xlink:label="loc_ifrs-full_RoyaltyExpense_1528" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RoyaltyExpense_1528" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InsuranceExpense" xlink:label="loc_ifrs-full_InsuranceExpense_1529" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_InsuranceExpense_1529" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RentalExpense" xlink:label="loc_ifrs-full_RentalExpense_1530" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RentalExpense_1530" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurveyExpenses" xlink:label="loc_ypf_SurveyExpenses_1531" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_SurveyExpenses_1531" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_1532" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_1532" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationExpense" xlink:label="loc_ifrs-full_AmortisationExpense_1533" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_AmortisationExpense_1533" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_637617" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_637617" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RawMaterialsAndConsumablesUsed" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_1534" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_1534" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OperationServicesAndOtherServiceContracts" xlink:label="loc_ypf_OperationServicesAndOtherServiceContracts_1535" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_OperationServicesAndOtherServiceContracts_1535" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepairsAndMaintenanceExpense" xlink:label="loc_ifrs-full_RepairsAndMaintenanceExpense_1536" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RepairsAndMaintenanceExpense_1536" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnproductiveExploratoryDrillings" xlink:label="loc_ypf_UnproductiveExploratoryDrillings_1537" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_UnproductiveExploratoryDrillings_1537" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TransportationExpense" xlink:label="loc_ifrs-full_TransportationExpense_1538" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_TransportationExpense_1538" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss_1539" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss_1539" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdvertisingExpenses" xlink:label="loc_ypf_AdvertisingExpenses_1540" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_AdvertisingExpenses_1540" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FuelAndEnergyExpense" xlink:label="loc_ifrs-full_FuelAndEnergyExpense_1541" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_FuelAndEnergyExpense_1541" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNature" xlink:label="loc_ifrs-full_ExpenseByNature_1542" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_ExpenseByNature_1542" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNatureAbstract" xlink:label="loc_ifrs-full_ExpenseByNatureAbstract_1548" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseByNatureTable" xlink:label="loc_ypf_ExpenseByNatureTable_861853" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ExpenseByNatureAbstract_1548" xlink:to="loc_ypf_ExpenseByNatureTable_861853" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureTable_861853" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_861855" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_861855" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseByNatureLineItems" xlink:label="loc_ypf_ExpenseByNatureLineItems_861857" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureTable_861853" xlink:to="loc_ypf_ExpenseByNatureLineItems_861857" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportWithholdings" xlink:label="loc_ypf_ExportWithholdings_1549" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExportWithholdings_1549" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ResearchAndDevelopmentExpense" xlink:label="loc_ifrs-full_ResearchAndDevelopmentExpense_1552" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ifrs-full_ResearchAndDevelopmentExpense_1552" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseRelatingToShortTermLease" xlink:label="loc_ypf_ExpenseRelatingToShortTermLease_637735" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExpenseRelatingToShortTermLease_637735" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseRelatingToLeaseUnderlyingAsset" xlink:label="loc_ypf_ExpenseRelatingToLeaseUnderlyingAsset_637738" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExpenseRelatingToLeaseUnderlyingAsset_637738" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TurnoverTax" xlink:label="loc_ypf_TurnoverTax_1402218" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_TurnoverTax_1402218" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="loc_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1402952" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1402952" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherNetOperatingResultsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherOperatingResultsNetAbstract" xlink:label="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LawsuitsOtherOperatingExpense" xlink:label="loc_ypf_LawsuitsOtherOperatingExpense_1557" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_LawsuitsOtherOperatingExpense_1557" use="optional" order="1" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgramOtherOperatingIncome" xlink:label="loc_ypf_ExportIncreaseProgramOtherOperatingIncome_1402436" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ExportIncreaseProgramOtherOperatingIncome_1402436" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromSaleOfAssets" xlink:label="loc_ypf_ResultFromSaleOfAssets_1331630" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ResultFromSaleOfAssets_1331630" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xlink:label="loc_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale_1402930" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale_1402930" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xlink:label="loc_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome_1402929" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome_1402929" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xlink:label="loc_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome_1402931" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome_1402931" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialAndEquipment" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialAndEquipment_1403432" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ProvisionForObsolescenceOfMaterialAndEquipment_1403432" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromRevaluationOfCompanies" xlink:label="loc_ypf_ResultFromRevaluationOfCompanies_1403334" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ResultFromRevaluationOfCompanies_1403334" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromSaleOfCompanies" xlink:label="loc_ypf_ResultFromSaleOfCompanies_1403332" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_ResultFromSaleOfCompanies_1403332" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InsuranceOtherOperatingIncome" xlink:label="loc_ypf_InsuranceOtherOperatingIncome_1558" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_InsuranceOtherOperatingIncome_1558" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousandOtherOperatingIncomeExpense" xlink:label="loc_ypf_MiscellaneousandOtherOperatingIncomeExpense_1563" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ypf_MiscellaneousandOtherOperatingIncomeExpense_1563" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense_1564" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract_1554" xlink:to="loc_ifrs-full_OtherOperatingIncomeExpense_1564" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFinancialResultsNetAbstract" xlink:label="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1566" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialIncomeAbstract" xlink:label="loc_ypf_FinancialIncomeAbstract_1567" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1566" xlink:to="loc_ypf_FinancialIncomeAbstract_1567" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestIncomeOnCashAndCashEquivalents" xlink:label="loc_ifrs-full_InterestIncomeOnCashAndCashEquivalents_1402933" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialIncomeAbstract_1567" xlink:to="loc_ifrs-full_InterestIncomeOnCashAndCashEquivalents_1402933" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InterestIncomeOnTradeReceivables" xlink:label="loc_ypf_InterestIncomeOnTradeReceivables_1402934" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialIncomeAbstract_1567" xlink:to="loc_ypf_InterestIncomeOnTradeReceivables_1402934" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialIncome" xlink:label="loc_ypf_OtherFinancialIncome_1402935" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialIncomeAbstract_1567" xlink:to="loc_ypf_OtherFinancialIncome_1402935" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome_1573" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialIncomeAbstract_1567" xlink:to="loc_ifrs-full_FinanceIncome_1573" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialCostsAbstract" xlink:label="loc_ypf_FinancialCostsAbstract_1568" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1566" xlink:to="loc_ypf_FinancialCostsAbstract_1568" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestExpense" xlink:label="loc_ifrs-full_InterestExpense_1574" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialCostsAbstract_1568" xlink:to="loc_ifrs-full_InterestExpense_1574" use="optional" order="7" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xlink:label="loc_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion_1402937" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialCostsAbstract_1568" xlink:to="loc_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion_1402937" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialCosts" xlink:label="loc_ypf_OtherFinancialCosts_1402938" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialCostsAbstract_1568" xlink:to="loc_ypf_OtherFinancialCosts_1402938" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts_1577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_FinancialCostsAbstract_1568" xlink:to="loc_ifrs-full_FinanceCosts_1577" use="optional" order="10" preferredLabel="http://www.xbrl.org/2009/role/negatedTotalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialResultsAbstract" xlink:label="loc_ypf_OtherFinancialResultsAbstract_1569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1566" xlink:to="loc_ypf_OtherFinancialResultsAbstract_1569" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesGeneratedByLoans" xlink:label="loc_ypf_ExchangeDifferencesGeneratedByLoans_1402939" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_ExchangeDifferencesGeneratedByLoans_1402939" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xlink:label="loc_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets_1402942" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets_1402942" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherExchangeDifferencesNet" xlink:label="loc_ypf_OtherExchangeDifferencesNet_1402943" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_OtherExchangeDifferencesNet_1402943" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_1578" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_1578" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnDerivativeFinancialInstruments" xlink:label="loc_ypf_GainLossOnDerivativeFinancialInstruments_1579" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_GainLossOnDerivativeFinancialInstruments_1579" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromNetMonetaryPosition" xlink:label="loc_ypf_ResultFromNetMonetaryPosition_1580" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_ResultFromNetMonetaryPosition_1580" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgrammeOtherIncome" xlink:label="loc_ypf_ExportIncreaseProgrammeOtherIncome_1402599" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_ExportIncreaseProgrammeOtherIncome_1402599" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsFromTransactionsWithFinancialAssets" xlink:label="loc_ypf_ResultsFromTransactionsWithFinancialAssets_861862" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ypf_ResultsFromTransactionsWithFinancialAssets_861862" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinanceIncome" xlink:label="loc_ifrs-full_OtherFinanceIncome_1581" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ifrs-full_OtherFinanceIncome_1581" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost_1582" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_OtherFinancialResultsAbstract_1569" xlink:to="loc_ifrs-full_FinanceIncomeCost_1582" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFinancialResultsNetAbstract" xlink:label="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1402948" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" xlink:label="loc_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale_1402949" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1402948" xlink:to="loc_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale_1402949" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForInflation" xlink:label="loc_ypf_AdjustmentForInflation_1403153" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1402948" xlink:to="loc_ypf_AdjustmentForInflation_1403153" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTranslation" xlink:label="loc_ypf_EffectOfTranslation_1403154" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract_1402948" xlink:to="loc_ypf_EffectOfTranslation_1403154" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsAbstract" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsAbstract_1584" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsTable" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsAbstract_1584" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis_1402310" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" xlink:to="loc_ifrs-full_JointOperationsAxis_1402310" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_1402311" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsAxis_1402310" xlink:to="loc_ifrs-full_JointOperationsDomain_1402311" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsMember" xlink:label="loc_ifrs-full_JointOperationsMember_1402953" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1402311" xlink:to="loc_ifrs-full_JointOperationsMember_1402953" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets_1589" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_NoncurrentAssets_1589" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets_1590" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_CurrentAssets_1590" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_1591" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_Assets_1591" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities_1592" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_NoncurrentLiabilities_1592" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities_1593" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_CurrentLiabilities_1593" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_1594" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_Liabilities_1594" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCost" xlink:label="loc_ypf_ProductionCost_1595" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ypf_ProductionCost_1595" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xlink:label="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources_1596" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources_1596" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsAbstract" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsAbstract_1599" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsTable" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsAbstract_1599" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_661445" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_JointVenturesAxis_661445" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_661447" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_661445" xlink:to="loc_ifrs-full_JointVenturesDomain_661447" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JOMember" xlink:label="loc_ypf_JOMember_661449" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_661447" xlink:to="loc_ypf_JOMember_661449" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1604" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1604" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1605" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1604" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1605" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcambucoMember" xlink:label="loc_ypf_AcambucoMember_1615" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AcambucoMember_1615" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDeCastroAndAguadaPichanaOesteMember" xlink:label="loc_ypf_AguadaDeCastroAndAguadaPichanaOesteMember_1402291" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaDeCastroAndAguadaPichanaOesteMember_1402291" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChaarMember" xlink:label="loc_ypf_AguadaDelChaarMember_1403212" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaDelChaarMember_1403212" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaPichanaAreaVacaMuertaMember" xlink:label="loc_ypf_AguadaPichanaAreaVacaMuertaMember_1616" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaPichanaAreaVacaMuertaMember_1616" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaPichanaResidualMember" xlink:label="loc_ypf_AguadaPichanaResidualMember_1617" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaPichanaResidualMember_1617" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaVillanuevaMember" xlink:label="loc_ypf_AguadaVillanuevaMember_1403204" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaVillanuevaMember_1403204" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguaragueMember" xlink:label="loc_ypf_AguaragueMember_1618" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguaragueMember_1618" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Aus105Member" xlink:label="loc_ypf_Aus105Member_1403206" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Aus105Member_1403206" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Aus106Member" xlink:label="loc_ypf_Aus106Member_1403207" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Aus106Member_1403207" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajadaAeloMember" xlink:label="loc_ypf_BajadaAeloMember_858334" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_BajadaAeloMember_858334" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroMember" xlink:label="loc_ypf_BajoDelToroMember_1636" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_BajoDelToroMember_1636" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurMember" xlink:label="loc_ypf_BandurriaSurMember_1637" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_BandurriaSurMember_1637" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Cam2aSurMember" xlink:label="loc_ypf_Cam2aSurMember_1619" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Cam2aSurMember_1619" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can100Member" xlink:label="loc_ypf_Can100Member_858331" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Can100Member_858331" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can102Member" xlink:label="loc_ypf_Can102Member_1402069" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Can102Member_1402069" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can114Member" xlink:label="loc_ypf_Can114Member_1402070" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Can114Member_1402070" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChachahuenMember" xlink:label="loc_ypf_ChachahuenMember_858325" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_ChachahuenMember_858325" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsorcioCnq7aMember" xlink:label="loc_ypf_ConsorcioCnq7aMember_1621" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_ConsorcioCnq7aMember_1621" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElOrejanoMember" xlink:label="loc_ypf_ElOrejanoMember_1635" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_ElOrejanoMember_1635" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAmargaChicaMember" xlink:label="loc_ypf_LaAmargaChicaMember_1634" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LaAmargaChicaMember_1634" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaCaleraMember" xlink:label="loc_ypf_LaCaleraMember_858333" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LaCaleraMember_858333" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaEscalonadaMember" xlink:label="loc_ypf_LaEscalonadaMember_1403208" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LaEscalonadaMember_1403208" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LasTacanasMember" xlink:label="loc_ypf_LasTacanasMember_1402407" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LasTacanasMember_1402407" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LinderoAtravesadoMember" xlink:label="loc_ypf_LinderoAtravesadoMember_1624" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LinderoAtravesadoMember_1624" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LomaCampanaMember" xlink:label="loc_ypf_LomaCampanaMember_1627" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LomaCampanaMember_1627" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LomaDelMolleMember" xlink:label="loc_ypf_LomaDelMolleMember_858329" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LomaDelMolleMember_858329" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MagallanesMember" xlink:label="loc_ypf_MagallanesMember_1626" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_MagallanesMember_1626" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MesetaNuevaEsperanzaMember" xlink:label="loc_ypf_MesetaNuevaEsperanzaMember_1403209" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_MesetaNuevaEsperanzaMember_1403209" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NarambuenaMember" xlink:label="loc_ypf_NarambuenaMember_1633" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_NarambuenaMember_1633" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaYeguasIMember" xlink:label="loc_ypf_PampaYeguasIMember_858327" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_PampaYeguasIMember_858327" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RamosMember" xlink:label="loc_ypf_RamosMember_1402408" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RamosMember_1402408" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RinconDeLaCenizaMember" xlink:label="loc_ypf_RinconDeLaCenizaMember_1403210" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RinconDeLaCenizaMember_1403210" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RinconDelMangrulloMember" xlink:label="loc_ypf_RinconDelMangrulloMember_1629" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RinconDelMangrulloMember_1629" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RioNeuqunMember" xlink:label="loc_ypf_RioNeuqunMember_858324" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RioNeuqunMember_858324" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SanRoqueMember" xlink:label="loc_ypf_SanRoqueMember_1630" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_SanRoqueMember_1630" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataConsorcioChihuidoMember" xlink:label="loc_ypf_SierraChataConsorcioChihuidoMember_1403211" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_SierraChataConsorcioChihuidoMember_1403211" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PanAmericanEnergyMember" xlink:label="loc_ypf_PanAmericanEnergyMember_1609" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_PanAmericanEnergyMember_1609" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TotalAustralMember" xlink:label="loc_ypf_TotalAustralMember_1610" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_TotalAustralMember_1610" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TecpetrolMember" xlink:label="loc_ypf_TecpetrolMember_1611" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_TecpetrolMember_1611" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnapSipetrolArgentinaMember" xlink:label="loc_ypf_EnapSipetrolArgentinaMember_1612" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EnapSipetrolArgentinaMember_1612" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YacimientosPetroliferosFiscalesMember" xlink:label="loc_ypf_YacimientosPetroliferosFiscalesMember_1613" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_YacimientosPetroliferosFiscalesMember_1613" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PluspetrolSAMember" xlink:label="loc_ypf_PluspetrolSAMember_1614" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_PluspetrolSAMember_1614" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaBvMember" xlink:label="loc_ypf_EquinorArgentinaBvMember_1402072" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EquinorArgentinaBvMember_1402072" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaAsMember" xlink:label="loc_ypf_EquinorArgentinaAsMember_1402281" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EquinorArgentinaAsMember_1402281" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorMember" xlink:label="loc_ypf_EquinorMember_1403213" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EquinorMember_1403213" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403214" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_VmiMember_1403214" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaEnergiaSAMember" xlink:label="loc_ypf_PampaEnergiaSAMember_1403215" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_PampaEnergiaSAMember_1403215" use="optional" order="55" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShellArgentinaSaMember" xlink:label="loc_ypf_ShellArgentinaSaMember_1403408" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_ShellArgentinaSaMember_1403408" use="optional" order="56" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" use="optional" order="57" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" xlink:label="loc_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation_1606" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation_1606" use="optional" order="58" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOfJointOperation" xlink:label="loc_ifrs-full_CountryOfIncorporationOfJointOperation_1607" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_CountryOfIncorporationOfJointOperation_1607" use="optional" order="59" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1608" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1608" use="optional" order="60" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfShareCapitalAbstract" xlink:label="loc_ypf_DisclosureOfShareCapitalAbstract_1655" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfShareCapitalAbstract_1655" xlink:to="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalAxis" xlink:label="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" xlink:to="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OrdinarySharesMember" xlink:label="loc_ifrs-full_OrdinarySharesMember_1664" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ifrs-full_OrdinarySharesMember_1664" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassASharesMember" xlink:label="loc_ypf_ClassASharesMember_1665" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ypf_ClassASharesMember_1665" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalStockMember" xlink:label="loc_ypf_CapitalStockMember_1402967" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ypf_CapitalStockMember_1402967" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassDSharesMember" xlink:label="loc_ypf_ClassDSharesMember_1402974" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ypf_ClassDSharesMember_1402974" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RepsolSAMember" xlink:label="loc_ypf_RepsolSAMember_1682" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_RepsolSAMember_1682" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetersenEnergiaSauAndAffiliatesMember" xlink:label="loc_ypf_PetersenEnergiaSauAndAffiliatesMember_1683" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_PetersenEnergiaSauAndAffiliatesMember_1683" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FederalGovernmentMember" xlink:label="loc_ypf_FederalGovernmentMember_1684" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_FederalGovernmentMember_1684" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StateOrProvinceMember" xlink:label="loc_ypf_StateOrProvinceMember_1685" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_StateOrProvinceMember_1685" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_1659" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_1659" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_1663" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_1659" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_1663" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForPurchaseOfTreasuryShareMember" xlink:label="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_1402978" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_1663" xlink:to="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_1402978" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_1402981" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_1663" xlink:to="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_1402981" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1402439" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_RangeAxis_1402439" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402440" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1402439" xlink:to="loc_ifrs-full_RangeDomain_1402440" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SubscribedCapital" xlink:label="loc_ypf_SubscribedCapital_1666" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_SubscribedCapital_1666" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfSharesSubscribed" xlink:label="loc_ypf_NumberOfSharesSubscribed_1667" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_NumberOfSharesSubscribed_1667" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfClassesOfShares" xlink:label="loc_ypf_DescriptionOfClassesOfShares_1668" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DescriptionOfClassesOfShares_1668" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ParValuePerShare" xlink:label="loc_ifrs-full_ParValuePerShare_1669" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_ParValuePerShare_1669" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfVotingRights" xlink:label="loc_ypf_DescriptionOfVotingRights_1670" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DescriptionOfVotingRights_1670" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfSharesOutstanding" xlink:label="loc_ifrs-full_NumberOfSharesOutstanding_1671" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_NumberOfSharesOutstanding_1671" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfGrantBasedOnSharesOutstanding" xlink:label="loc_ypf_DescriptionOfGrantBasedOnSharesOutstanding_1672" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DescriptionOfGrantBasedOnSharesOutstanding_1672" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1673" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1673" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInEquity" xlink:label="loc_ypf_ProportionOfOwnershipInterestInEquity_1674" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_ProportionOfOwnershipInterestInEquity_1674" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xlink:label="loc_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty_1675" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty_1675" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSharesSubjectToExpropriation" xlink:label="loc_ypf_PercentageOfSharesSubjectToExpropriation_1677" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_PercentageOfSharesSubjectToExpropriation_1677" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TreasuryStockSharesAcquired1" xlink:label="loc_ypf_TreasuryStockSharesAcquired1_1402220" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_TreasuryStockSharesAcquired1_1402220" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfTreasuryShares" xlink:label="loc_ifrs-full_PurchaseOfTreasuryShares_1402221" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_PurchaseOfTreasuryShares_1402221" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xlink:label="loc_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum_1402522" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum_1402522" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaximumPercentageOfLegalReserve" xlink:label="loc_ypf_MaximumPercentageOfLegalReserve_1402523" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_MaximumPercentageOfLegalReserve_1402523" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserve" xlink:label="loc_ifrs-full_StatutoryReserve_1402524" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_StatutoryReserve_1402524" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RestrictedDistributionOfRetainedEarnings" xlink:label="loc_ypf_RestrictedDistributionOfRetainedEarnings_1402525" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_RestrictedDistributionOfRetainedEarnings_1402525" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1402972" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1402972" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetainedEarnings" xlink:label="loc_ifrs-full_RetainedEarnings_1402980" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_RetainedEarnings_1402980" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EarningsPerShareAbstract" xlink:label="loc_ifrs-full_EarningsPerShareAbstract_1688" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_1689" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EarningsPerShareAbstract_1688" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent_1689" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageShares" xlink:label="loc_ifrs-full_WeightedAverageShares_1690" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EarningsPerShareAbstract_1688" xlink:to="loc_ifrs-full_WeightedAverageShares_1690" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BasicEarningsLossPerShare" xlink:label="loc_ifrs-full_BasicEarningsLossPerShare_1402639" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EarningsPerShareAbstract_1688" xlink:to="loc_ifrs-full_BasicEarningsLossPerShare_1402639" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DilutedEarningsLossPerShare" xlink:label="loc_ifrs-full_DilutedEarningsLossPerShare_1402640" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_EarningsPerShareAbstract_1688" xlink:to="loc_ifrs-full_DilutedEarningsLossPerShare_1402640" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract_1751" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract_1751" xlink:to="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_1752" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_1752" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1752" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CsjnMember" xlink:label="loc_ypf_CsjnMember_1762" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755" xlink:to="loc_ypf_CsjnMember_1762" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesAxis" xlink:label="loc_ypf_LegalEntitiesAxis_661400" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_LegalEntitiesAxis_661400" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesMember" xlink:label="loc_ypf_LegalEntitiesMember_661401" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_LegalEntitiesAxis_661400" xlink:to="loc_ypf_LegalEntitiesMember_661401" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xlink:label="loc_ypf_AsociacionSuperficiariosDeLaPatagoniaMember_661402" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_LegalEntitiesMember_661401" xlink:to="loc_ypf_AsociacionSuperficiariosDeLaPatagoniaMember_661402" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateAxis" xlink:label="loc_ypf_ExchangeRateAxis_1331121" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_ExchangeRateAxis_1331121" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateMember" xlink:label="loc_ypf_ExchangeRateMember_1331127" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ExchangeRateAxis_1331121" xlink:to="loc_ypf_ExchangeRateMember_1331127" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1331136" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ifrs-full_RangeAxis_1331136" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1331137" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1331136" xlink:to="loc_ifrs-full_RangeDomain_1331137" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsAxis" xlink:label="loc_ypf_CaseDetailsAxis_1402233" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_CaseDetailsAxis_1402233" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsMember" xlink:label="loc_ypf_CaseDetailsMember_1402234" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CaseDetailsAxis_1402233" xlink:to="loc_ypf_CaseDetailsMember_1402234" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" xlink:label="loc_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember_1402235" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_CaseDetailsMember_1402234" xlink:to="loc_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember_1402235" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfInterlocutoryJudgments" xlink:label="loc_ypf_NumberOfInterlocutoryJudgments_1757" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_NumberOfInterlocutoryJudgments_1757" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContractualLiabilityPayableValue" xlink:label="loc_ypf_ContractualLiabilityPayableValue_1402532" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_ContractualLiabilityPayableValue_1402532" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectDamagesPayableForBreachOfContract" xlink:label="loc_ypf_DirectDamagesPayableForBreachOfContract_1402534" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_DirectDamagesPayableForBreachOfContract_1402534" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasAbstract" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasAbstract_2015" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContractualCommitmentsTable" xlink:label="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasAbstract_2015" xlink:to="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsAxis" xlink:label="loc_ypf_InvestorsAxis_1331150" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_InvestorsAxis_1331150" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain_1331151" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestorsAxis_1331150" xlink:to="loc_ypf_InvestorsDomain_1331151" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_1331171" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_srt_StatementGeographicalAxis_1331171" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1331172" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_StatementGeographicalAxis_1331171" xlink:to="loc_srt_SegmentGeographicalDomain_1331172" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityAxis" xlink:label="loc_ypf_GuaranteedSecurityAxis_1331221" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_GuaranteedSecurityAxis_1331221" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember_1331222" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_GuaranteedSecurityAxis_1331221" xlink:to="loc_ypf_GuaranteedSecurityMember_1331222" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_1331620" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_CounterpartiesAxis_1331620" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_1331621" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CounterpartiesAxis_1331620" xlink:to="loc_ifrs-full_CounterpartiesDomain_1331621" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis_1402457" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_AgreementAxis_1402457" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402470" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AgreementAxis_1402457" xlink:to="loc_ypf_AgreementDomain_1402470" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarHilliCorporationMember" xlink:label="loc_ypf_GolarHilliCorporationMember_1403365" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AgreementDomain_1402470" xlink:to="loc_ypf_GolarHilliCorporationMember_1403365" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarMkiiCorporationMember" xlink:label="loc_ypf_GolarMkiiCorporationMember_1403380" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_AgreementDomain_1402470" xlink:to="loc_ypf_GolarMkiiCorporationMember_1403380" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockAxis" xlink:label="loc_ypf_BlockAxis_1402463" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_BlockAxis_1402463" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockMember" xlink:label="loc_ypf_BlockMember_1402464" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_BlockAxis_1402463" xlink:to="loc_ypf_BlockMember_1402464" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402958" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402958" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402959" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402958" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402959" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1402963" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1402963" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis_1403354" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_JointOperationsAxis_1403354" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_1403355" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsAxis_1403354" xlink:to="loc_ifrs-full_JointOperationsDomain_1403355" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDeLaArenaMember" xlink:label="loc_ypf_AguadaDeLaArenaMember_1403356" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_AguadaDeLaArenaMember_1403356" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAngosturaSurIMember" xlink:label="loc_ypf_LaAngosturaSurIMember_1403360" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_LaAngosturaSurIMember_1403360" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAngosturaSurIiMember" xlink:label="loc_ypf_LaAngosturaSurIiMember_1403361" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_LaAngosturaSurIiMember_1403361" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NarambuenaMember" xlink:label="loc_ypf_NarambuenaMember_1403362" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_NarambuenaMember_1403362" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeDesarrolloMember" xlink:label="loc_ypf_CompaniaDeDesarrolloMember_1403363" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_CompaniaDeDesarrolloMember_1403363" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PAEMember" xlink:label="loc_ypf_PAEMember_1403372" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_PAEMember_1403372" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergticasMember" xlink:label="loc_ypf_SurInversionesEnergticasMember_1403373" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_SurInversionesEnergticasMember_1403373" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaMember" xlink:label="loc_ypf_PampaMember_1403374" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_PampaMember_1403374" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SeArgentinaHoldingBvMember" xlink:label="loc_ypf_SeArgentinaHoldingBvMember_1403375" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_SeArgentinaHoldingBvMember_1403375" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarSubholdingMember" xlink:label="loc_ypf_GolarSubholdingMember_1403376" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_GolarSubholdingMember_1403376" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContractualCommitmentsLineItems" xlink:label="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfExpenseByNature" xlink:label="loc_ypf_AmountOfExpenseByNature_897266" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_AmountOfExpenseByNature_897266" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTransportationConcession" xlink:label="loc_ypf_PercentageOfTransportationConcession_1402455" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_PercentageOfTransportationConcession_1402455" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfVotingRightsHeldInJointOperation" xlink:label="loc_ifrs-full_ProportionOfVotingRightsHeldInJointOperation_1402957" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ifrs-full_ProportionOfVotingRightsHeldInJointOperation_1402957" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1403358" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1403358" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfUnconventionalWells" xlink:label="loc_ypf_NumberOfUnconventionalWells_1403359" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfUnconventionalWells_1403359" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfYearsExploitationConcessionTerm" xlink:label="loc_ypf_NumberOfYearsExploitationConcessionTerm_1403366" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfYearsExploitationConcessionTerm_1403366" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NormalCapacityOfTonExploitation" xlink:label="loc_ypf_NormalCapacityOfTonExploitation_1403369" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NormalCapacityOfTonExploitation_1403369" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfLeaseTerm" xlink:label="loc_ypf_NumberOfLeaseTerm_1403370" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfLeaseTerm_1403370" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionalNumberOfLeaseTerm" xlink:label="loc_ypf_AdditionalNumberOfLeaseTerm_1403381" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_AdditionalNumberOfLeaseTerm_1403381" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfNaturalGasSupplyAgreementsTerm" xlink:label="loc_ypf_NumberOfNaturalGasSupplyAgreementsTerm_1403383" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfNaturalGasSupplyAgreementsTerm_1403383" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasAbstract" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasAbstract_2043" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScheduleOfGrantedGuaranteesTable" xlink:label="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasAbstract_2043" xlink:to="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" xlink:to="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GuaranteesMember" xlink:label="loc_ifrs-full_GuaranteesMember_2050" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047" xlink:to="loc_ifrs-full_GuaranteesMember_2050" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityAxis" xlink:label="loc_ypf_GuaranteedSecurityAxis_862295" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ypf_GuaranteedSecurityAxis_862295" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember_862296" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_GuaranteedSecurityAxis_862295" xlink:to="loc_ypf_GuaranteedSecurityMember_862296" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsAxis" xlink:label="loc_ypf_InvestorsAxis_1331278" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ypf_InvestorsAxis_1331278" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain_1331280" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestorsAxis_1331278" xlink:to="loc_ypf_InvestorsDomain_1331280" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassXXVIIINOMember" xlink:label="loc_ypf_ClassXXVIIINOMember_1403093" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InvestorsDomain_1331280" xlink:to="loc_ypf_ClassXXVIIINOMember_1403093" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_1331287" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_srt_StatementGeographicalAxis_1331287" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1331289" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_StatementGeographicalAxis_1331287" xlink:to="loc_srt_SegmentGeographicalDomain_1331289" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergeticasMember" xlink:label="loc_ypf_SurInversionesEnergeticasMember_1403387" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" xlink:to="loc_ypf_SurInversionesEnergeticasMember_1403387" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarHilliCorporationMember" xlink:label="loc_ypf_GolarHilliCorporationMember_1403388" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" xlink:to="loc_ypf_GolarHilliCorporationMember_1403388" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarMkiiCorporationMember" xlink:label="loc_ypf_GolarMkiiCorporationMember_1403389" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" xlink:to="loc_ypf_GolarMkiiCorporationMember_1403389" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScheduleOfGrantedGuaranteesLineItems" xlink:label="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" xlink:label="loc_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions_2049" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions_2049" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xlink:label="loc_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO_1403092" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO_1403092" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfDebtServices" xlink:label="loc_ypf_PercentageOfDebtServices_1331272" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_PercentageOfDebtServices_1331272" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xlink:label="loc_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid_1331273" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid_1331273" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BankGuaranteesIssued" xlink:label="loc_ypf_BankGuaranteesIssued_1402316" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_BankGuaranteesIssued_1402316" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403390" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403390" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfGranteGuarantees" xlink:label="loc_ypf_AmountOfGranteGuarantees_1403391" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_AmountOfGranteGuarantees_1403391" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DebtInstrumentsHeld" xlink:label="loc_ifrs-full_DebtInstrumentsHeld_1403392" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ifrs-full_DebtInstrumentsHeld_1403392" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract_2052" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract_2052" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember_2184" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_MetrogasMember_2184" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonDistributionMember" xlink:label="loc_ypf_HydrocarbonDistributionMember_2186" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_HydrocarbonDistributionMember_2186" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LargeInvestmentIncentiveRegimeMember" xlink:label="loc_ypf_LargeInvestmentIncentiveRegimeMember_1403641" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_LargeInvestmentIncentiveRegimeMember_1403641" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquidHydrocarbonExportsMember" xlink:label="loc_ypf_LiquidHydrocarbonExportsMember_1402478" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_LiquidHydrocarbonExportsMember_1402478" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyRateMember" xlink:label="loc_ypf_ExportDutyRateMember_1402669" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_ExportDutyRateMember_1402669" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FreeLngExportAuthorizationMember" xlink:label="loc_ypf_FreeLngExportAuthorizationMember_1403033" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_FreeLngExportAuthorizationMember_1403033" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LngExportProjectsMember" xlink:label="loc_ypf_LngExportProjectsMember_1403367" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_LngExportProjectsMember_1403367" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NationalEnergySectorMember" xlink:label="loc_ypf_NationalEnergySectorMember_1403379" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_NationalEnergySectorMember_1403379" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_2072" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_RangeAxis_2072" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_2073" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_2072" xlink:to="loc_ifrs-full_RangeDomain_2073" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_2181" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_2073" xlink:to="loc_ifrs-full_BottomOfRangeMember_2181" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_2182" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_2073" xlink:to="loc_ifrs-full_TopOfRangeMember_2182" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis_2075" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_EventAfterReportingAxis_2075" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_2076" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_EventAfterReportingAxis_2075" xlink:to="loc_ypf_EventAfterReportingMember_2076" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" xlink:label="loc_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember_1402183" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065" xlink:to="loc_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember_1402183" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis_2066" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_PastDueStatusAxis_2066" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_2067" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_PastDueStatusAxis_2066" xlink:to="loc_ifrs-full_PastDueStatusDomain_2067" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis_2063" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_MeasurementAxis_2063" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_2053" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MeasurementAxis_2063" xlink:to="loc_ifrs-full_MeasurementDomain_2053" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Axis" xlink:label="loc_ypf_PlanName1Axis_2068" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PlanName1Axis_2068" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Domain" xlink:label="loc_ypf_PlanName1Domain_2069" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PlanName1Axis_2068" xlink:to="loc_ypf_PlanName1Domain_2069" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_2070" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_2070" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_2071" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_2070" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_2071" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgriculturalProductsMember" xlink:label="loc_ypf_AgriculturalProductsMember_1335646" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_AgriculturalProductsMember_1335646" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportedDieselMember" xlink:label="loc_ypf_ImportedDieselMember_1402674" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_ImportedDieselMember_1402674" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportedGasolineMember" xlink:label="loc_ypf_ImportedGasolineMember_1402673" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_ImportedGasolineMember_1402673" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WheatCornAndSorghumMember" xlink:label="loc_ypf_WheatCornAndSorghumMember_1402672" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_WheatCornAndSorghumMember_1402672" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SoybeanMember" xlink:label="loc_ypf_SoybeanMember_1402677" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_SoybeanMember_1402677" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SoybeanByproductsMember" xlink:label="loc_ypf_SoybeanByproductsMember_1402678" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_SoybeanByproductsMember_1402678" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrainsMember" xlink:label="loc_ypf_GrainsMember_1403034" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_GrainsMember_1403034" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CornAndSorghumMember" xlink:label="loc_ypf_CornAndSorghumMember_1403393" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_CornAndSorghumMember_1403393" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WheatMember" xlink:label="loc_ypf_WheatMember_1403394" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_WheatMember_1403394" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_2056" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_2056" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_2059" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_2059" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_2077" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_2077" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_2062" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_2077" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_2062" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2060" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2060" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2061" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2060" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2061" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_637934" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_SegmentsAxis_637934" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_637935" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsAxis_637934" xlink:to="loc_ifrs-full_SegmentsDomain_637935" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionTypeAxis" xlink:label="loc_ypf_ResolutionTypeAxis_637938" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_ResolutionTypeAxis_637938" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionMember" xlink:label="loc_ypf_ResolutionMember_637942" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ResolutionTypeAxis_637938" xlink:to="loc_ypf_ResolutionMember_637942" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeAxis" xlink:label="loc_ypf_DecreeTypeAxis_637968" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_DecreeTypeAxis_637968" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeMember" xlink:label="loc_ypf_DecreeTypeMember_637969" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DecreeTypeAxis_637968" xlink:to="loc_ypf_DecreeTypeMember_637969" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xlink:label="loc_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member_1402666" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DecreeTypeMember_637969" xlink:to="loc_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member_1402666" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeAxis" xlink:label="loc_ypf_InstallmentTypeAxis_637973" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_InstallmentTypeAxis_637973" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeMember" xlink:label="loc_ypf_InstallmentTypeMember_637974" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_InstallmentTypeAxis_637973" xlink:to="loc_ypf_InstallmentTypeMember_637974" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveAxis" xlink:label="loc_ypf_TakeRespectiveAxis_637977" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_TakeRespectiveAxis_637977" use="optional" order="55" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveMember" xlink:label="loc_ypf_TakeRespectiveMember_637978" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_TakeRespectiveAxis_637977" xlink:to="loc_ypf_TakeRespectiveMember_637978" use="optional" order="56" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyAxis" xlink:label="loc_srt_EnergyAxis_865532" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_srt_EnergyAxis_865532" use="optional" order="57" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyDomain" xlink:label="loc_srt_EnergyDomain_865534" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_EnergyAxis_865532" xlink:to="loc_srt_EnergyDomain_865534" use="optional" order="58" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationAxis" xlink:label="loc_ypf_LocationAxis_1402160" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_LocationAxis_1402160" use="optional" order="59" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationMember" xlink:label="loc_ypf_LocationMember_1402161" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_LocationAxis_1402160" xlink:to="loc_ypf_LocationMember_1402161" use="optional" order="60" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodAxis" xlink:label="loc_ypf_PeriodAxis_1402555" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PeriodAxis_1402555" use="optional" order="61" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain_1402556" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PeriodAxis_1402555" xlink:to="loc_ypf_PeriodDomain_1402556" use="optional" order="62" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xlink:label="loc_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember_1402557" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PeriodDomain_1402556" xlink:to="loc_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember_1402557" use="optional" order="63" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeAxis" xlink:label="loc_ypf_SchemeAxis_1402560" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_SchemeAxis_1402560" use="optional" order="64" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeMember" xlink:label="loc_ypf_SchemeMember_1402561" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SchemeAxis_1402560" xlink:to="loc_ypf_SchemeMember_1402561" use="optional" order="65" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xlink:label="loc_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember_1402562" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SchemeMember_1402561" xlink:to="loc_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember_1402562" use="optional" order="66" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxBenefitsForPriceAgreementsMember" xlink:label="loc_ypf_TaxBenefitsForPriceAgreementsMember_1402570" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_SchemeMember_1402561" xlink:to="loc_ypf_TaxBenefitsForPriceAgreementsMember_1402570" use="optional" order="67" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityAxis" xlink:label="loc_ypf_PeriodOfApplicabilityAxis_1402571" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PeriodOfApplicabilityAxis_1402571" use="optional" order="68" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityMember" xlink:label="loc_ypf_PeriodOfApplicabilityMember_1402572" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PeriodOfApplicabilityAxis_1402571" xlink:to="loc_ypf_PeriodOfApplicabilityMember_1402572" use="optional" order="69" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationAxis" xlink:label="loc_ypf_NotificationAxis_1402576" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_NotificationAxis_1402576" use="optional" order="70" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember_1402577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NotificationAxis_1402576" xlink:to="loc_ypf_NotificationMember_1402577" use="optional" order="71" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageAxis" xlink:label="loc_ypf_PurposeOfUsageAxis_1402586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PurposeOfUsageAxis_1402586" use="optional" order="72" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember_1402587" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PurposeOfUsageAxis_1402586" xlink:to="loc_ypf_PurposeOfUsageMember_1402587" use="optional" order="73" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActAxis" xlink:label="loc_ypf_StatutoryActAxis_1402592" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_StatutoryActAxis_1402592" use="optional" order="74" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember_1402593" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatutoryActAxis_1402592" xlink:to="loc_ypf_StatutoryActMember_1402593" use="optional" order="75" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteAxis" xlink:label="loc_ypf_ApplicableStatuteAxis_1402682" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_ApplicableStatuteAxis_1402682" use="optional" order="76" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteDomain" xlink:label="loc_ypf_ApplicableStatuteDomain_1402683" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ApplicableStatuteAxis_1402682" xlink:to="loc_ypf_ApplicableStatuteDomain_1402683" use="optional" order="77" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" use="optional" order="78" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectInvestmentInForeignCurrency" xlink:label="loc_ypf_DirectInvestmentInForeignCurrency_2088" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_DirectInvestmentInForeignCurrency_2088" use="optional" order="79" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xlink:label="loc_ypf_DirectInvestmentInForeignCurrencyAfterAmendment_2089" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_DirectInvestmentInForeignCurrencyAfterAmendment_2089" use="optional" order="80" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xlink:label="loc_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons_2090" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons_2090" use="optional" order="81" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xlink:label="loc_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent_2091" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent_2091" use="optional" order="82" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyPercentage" xlink:label="loc_ypf_ExportDutyPercentage_2093" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportDutyPercentage_2093" use="optional" order="83" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsentExpressionTerm" xlink:label="loc_ypf_ConsentExpressionTerm_2119" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ConsentExpressionTerm_2119" use="optional" order="84" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicDistributionServiceTerm" xlink:label="loc_ypf_PublicDistributionServiceTerm_2129" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PublicDistributionServiceTerm_2129" use="optional" order="85" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LicenseRenewalTerm" xlink:label="loc_ypf_LicenseRenewalTerm_2130" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_LicenseRenewalTerm_2130" use="optional" order="86" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionalLicenseRenewalTerm" xlink:label="loc_ypf_AdditionalLicenseRenewalTerm_1403111" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_AdditionalLicenseRenewalTerm_1403111" use="optional" order="87" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LicenseAgreementPeriod" xlink:label="loc_ypf_LicenseAgreementPeriod_2131" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_LicenseAgreementPeriod_2131" use="optional" order="88" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ApplicableTaxRate" xlink:label="loc_ifrs-full_ApplicableTaxRate_2149" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ifrs-full_ApplicableTaxRate_2149" use="optional" order="89" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfConventionalExplorationTerm" xlink:label="loc_ypf_PermitOfConventionalExplorationTerm_1330576" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfConventionalExplorationTerm_1330576" use="optional" order="90" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfConventionalExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfConventionalExplorationTerm_1330580" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfExtensionOfConventionalExplorationTerm_1330580" use="optional" order="91" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfUnconventionalExplorationTerm" xlink:label="loc_ypf_PermitOfUnconventionalExplorationTerm_1330584" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfUnconventionalExplorationTerm_1330584" use="optional" order="92" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfUnconventionalExplorationTerm_1330586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfExtensionOfUnconventionalExplorationTerm_1330586" use="optional" order="93" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:label="loc_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm_1330589" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm_1330589" use="optional" order="94" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm_1330593" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm_1330593" use="optional" order="95" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConventionalExploitationConcessionTerm" xlink:label="loc_ypf_ConventionalExploitationConcessionTerm_1331418" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ConventionalExploitationConcessionTerm_1331418" use="optional" order="96" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnconventionalExploitationConcessionTerm" xlink:label="loc_ypf_UnconventionalExploitationConcessionTerm_1331425" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_UnconventionalExploitationConcessionTerm_1331425" use="optional" order="97" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xlink:label="loc_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm_1331426" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm_1331426" use="optional" order="98" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfAdvanceFee" xlink:label="loc_ypf_PercentageOfAdvanceFee_1331456" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfAdvanceFee_1331456" use="optional" order="99" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageReductionInTheConcessionFee" xlink:label="loc_ypf_PercentageReductionInTheConcessionFee_1331460" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageReductionInTheConcessionFee_1331460" use="optional" order="100" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPermitTerm" xlink:label="loc_ypf_ExportPermitTerm_1331560" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportPermitTerm_1331560" use="optional" order="101" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xlink:label="loc_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024_1332844" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024_1332844" use="optional" order="102" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PersonalAssetsTaxRate" xlink:label="loc_ypf_PersonalAssetsTaxRate_1332878" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PersonalAssetsTaxRate_1332878" use="optional" order="103" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FloatingRateForHydrocarbonExportDuties" xlink:label="loc_ypf_FloatingRateForHydrocarbonExportDuties_1332891" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_FloatingRateForHydrocarbonExportDuties_1332891" use="optional" order="104" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BrentCrudePrice" xlink:label="loc_ypf_BrentCrudePrice_1332895" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_BrentCrudePrice_1332895" use="optional" order="105" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportTaxRate" xlink:label="loc_ypf_ExportTaxRate_1335453" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportTaxRate_1335453" use="optional" order="106" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageRateVariationInTheCPI" xlink:label="loc_ypf_PercentageRateVariationInTheCPI_1335509" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageRateVariationInTheCPI_1335509" use="optional" order="107" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xlink:label="loc_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries_1335531" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries_1335531" use="optional" order="108" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xlink:label="loc_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses_1402177" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses_1402177" use="optional" order="109" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xlink:label="loc_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation_1402179" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation_1402179" use="optional" order="110" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xlink:label="loc_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding_1402324" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding_1402324" use="optional" order="111" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransportationConcessionTerm" xlink:label="loc_ypf_TransportationConcessionTerm_1402476" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TransportationConcessionTerm_1402476" use="optional" order="112" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermOfExtensionOfTransportationConcession" xlink:label="loc_ypf_TermOfExtensionOfTransportationConcession_1402553" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TermOfExtensionOfTransportationConcession_1402553" use="optional" order="113" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xlink:label="loc_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards_1402554" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards_1402554" use="optional" order="114" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xlink:label="loc_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized_1402558" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized_1402558" use="optional" order="115" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xlink:label="loc_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad_1402567" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad_1402567" use="optional" order="116" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xlink:label="loc_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices_1402564" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices_1402564" use="optional" order="117" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageTaxRateForImportOfGoods" xlink:label="loc_ypf_PercentageTaxRateForImportOfGoods_1402565" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageTaxRateForImportOfGoods_1402565" use="optional" order="118" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfExportDutyAfterReduction" xlink:label="loc_ypf_PercentageOfExportDutyAfterReduction_1402569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfExportDutyAfterReduction_1402569" use="optional" order="119" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewExploitationConcessionTerm" xlink:label="loc_ypf_NewExploitationConcessionTerm_1403030" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_NewExploitationConcessionTerm_1403030" use="optional" order="120" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfRoyaltyAtBidderDiscretion" xlink:label="loc_ypf_PercentageOfRoyaltyAtBidderDiscretion_1403031" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfRoyaltyAtBidderDiscretion_1403031" use="optional" order="121" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xlink:label="loc_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties_1403032" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties_1403032" use="optional" order="122" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProgramOfShipmentsOrDeliveriesTerm" xlink:label="loc_ypf_ProgramOfShipmentsOrDeliveriesTerm_1403152" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ProgramOfShipmentsOrDeliveriesTerm_1403152" use="optional" order="123" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpdatedOfExportPermitTerm" xlink:label="loc_ypf_UpdatedOfExportPermitTerm_1403368" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_UpdatedOfExportPermitTerm_1403368" use="optional" order="124" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xlink:label="loc_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate_1403371" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate_1403371" use="optional" order="125" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfGeneralServiceCustomersRate" xlink:label="loc_ypf_PercentageOfGeneralServiceCustomersRate_1403377" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfGeneralServiceCustomersRate_1403377" use="optional" order="126" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RenewableEnergiesTerm" xlink:label="loc_ypf_RenewableEnergiesTerm_1403378" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_RenewableEnergiesTerm_1403378" use="optional" order="127" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfReceivedCompensationFromNationalGovernment" xlink:label="loc_ypf_AmountOfReceivedCompensationFromNationalGovernment_1403382" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_AmountOfReceivedCompensationFromNationalGovernment_1403382" use="optional" order="128" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract_1403156" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract_1403156" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationAxis" xlink:label="loc_ypf_NotificationAxis_1403158" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ypf_NotificationAxis_1403158" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember_1403159" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_NotificationAxis_1403158" xlink:to="loc_ypf_NotificationMember_1403159" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActAxis" xlink:label="loc_ypf_StatutoryActAxis_1403174" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ypf_StatutoryActAxis_1403174" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember_1403175" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatutoryActAxis_1403174" xlink:to="loc_ypf_StatutoryActMember_1403175" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" xlink:label="loc_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member_1403176" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_StatutoryActMember_1403175" xlink:to="loc_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member_1403176" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageAxis" xlink:label="loc_ypf_PurposeOfUsageAxis_1403169" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ypf_PurposeOfUsageAxis_1403169" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember_1403170" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_PurposeOfUsageAxis_1403169" xlink:to="loc_ypf_PurposeOfUsageMember_1403170" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_1403164" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_1403164" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xlink:label="loc_ypf_MaximumPercentageOfPermissibleInterestsInGasStations_1403166" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_1403164" xlink:to="loc_ypf_MaximumPercentageOfPermissibleInterestsInGasStations_1403166" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract_2190" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xlink:label="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract_2190" xlink:to="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_2197" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ifrs-full_JointVenturesAxis_2197" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_2195" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_2197" xlink:to="loc_ifrs-full_JointVenturesDomain_2195" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_2220" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_YPFEEMember_2220" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember_2214" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_ProfertilMember_2214" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember_2215" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_MEGAMember_2215" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_2216" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_RefinorMember_2216" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_637561" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_OLCLPMember_637561" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SustentatorSaMember" xlink:label="loc_ypf_SustentatorSaMember_865683" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_SustentatorSaMember_865683" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1402113" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_CTBarraganMember_1402113" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMember" xlink:label="loc_ypf_OTAMember_2209" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_OTAMember_2209" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTCMember" xlink:label="loc_ypf_OTCMember_1402404" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_OTCMember_1402404" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember_2205" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_CDSMember_2205" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember_2206" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_YPFGasMember_2206" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember_2207" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_OldelvalMember_2207" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember_2208" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_TermapMember_2208" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GpaMember" xlink:label="loc_ypf_GpaMember_2211" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_GpaMember_2211" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember_1403203" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_OTAMERICAMember_1403203" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasAustralSAMember" xlink:label="loc_ypf_GasAustralSAMember_2213" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_GasAustralSAMember_2213" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember_1403027" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_VmosMember_1403027" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesWhereEntityIsVenturerMember" xlink:label="loc_ifrs-full_JointVenturesWhereEntityIsVenturerMember_2223" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" xlink:to="loc_ifrs-full_JointVenturesWhereEntityIsVenturerMember_2223" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="loc_ifrs-full_AssociatesMember_2224" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" xlink:to="loc_ifrs-full_AssociatesMember_2224" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JointVenturesAndAssociatesMember" xlink:label="loc_ypf_JointVenturesAndAssociatesMember_2225" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" xlink:to="loc_ypf_JointVenturesAndAssociatesMember_2225" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xlink:label="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables_1402467" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_OtherNoncurrentReceivables_1402467" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables_2199" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_OtherCurrentReceivables_2199" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables_2200" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentTradeReceivables_2200" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/positiveTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_2202" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_Revenue_2202" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CostOfSales" xlink:label="loc_ifrs-full_CostOfSales_2203" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CostOfSales_2203" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRevenueExpense" xlink:label="loc_ifrs-full_InterestRevenueExpense_2204" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_InterestRevenueExpense_2204" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_1402468" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_1402468" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets_1332127" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentFinancialAssets_1332127" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_2201" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_2201" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/positiveLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractLiabilities" xlink:label="loc_ifrs-full_CurrentContractLiabilities_1403202" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentContractLiabilities_1403202" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractAssets" xlink:label="loc_ifrs-full_CurrentContractAssets_637249" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentContractAssets_637249" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract_2227" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract_2227" xlink:to="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SeMember" xlink:label="loc_ypf_SeMember_1403028" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_SeMember_1403028" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SecretaryOfTransportMember" xlink:label="loc_ypf_SecretaryOfTransportMember_1403029" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_SecretaryOfTransportMember_1403029" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ArcaMember" xlink:label="loc_ypf_ArcaMember_1402125" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_ArcaMember_1402125" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SecretaryOfIndustryMember" xlink:label="loc_ypf_SecretaryOfIndustryMember_2238" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_SecretaryOfIndustryMember_2238" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CammesaMember" xlink:label="loc_ypf_CammesaMember_2239" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_CammesaMember_2239" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CammesaOneMember" xlink:label="loc_ypf_CammesaOneMember_2240" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_CammesaOneMember_2240" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ENARSAMember" xlink:label="loc_ypf_ENARSAMember_1402126" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_ENARSAMember_1402126" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ENARSAOneMember" xlink:label="loc_ypf_ENARSAOneMember_1402280" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_ENARSAOneMember_1402280" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AerolineasArgentinasSAMember" xlink:label="loc_ypf_AerolineasArgentinasSAMember_2243" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_AerolineasArgentinasSAMember_2243" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AerolineasArgentinasSAOneMember" xlink:label="loc_ypf_AerolineasArgentinasSAOneMember_2244" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_AerolineasArgentinasSAOneMember_2244" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguaYSaneamientosArgentinosS.a.Member" xlink:label="loc_ypf_AguaYSaneamientosArgentinosS.a.Member_1331492" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_AguaYSaneamientosArgentinosS.a.Member_1331492" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersAxis" xlink:label="loc_ifrs-full_MajorCustomersAxis_2232" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" xlink:to="loc_ifrs-full_MajorCustomersAxis_2232" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersDomain" xlink:label="loc_ifrs-full_MajorCustomersDomain_2233" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MajorCustomersAxis_2232" xlink:to="loc_ifrs-full_MajorCustomersDomain_2233" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasarPlanMember" xlink:label="loc_ypf_GasarPlanMember_1334573" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_GasarPlanMember_1334573" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropaneGasSupplyAgreementMember" xlink:label="loc_ypf_PropaneGasSupplyAgreementMember_2247" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_PropaneGasSupplyAgreementMember_2247" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xlink:label="loc_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember_2250" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember_2250" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xlink:label="loc_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember_1334563" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember_1334563" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompensationToDecreeNo10532018Member" xlink:label="loc_ypf_CompensationToDecreeNo10532018Member_1402325" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_CompensationToDecreeNo10532018Member_1402325" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" xlink:to="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xlink:label="loc_ypf_AmountsReceivableOrPayableRelatedPartyTransactions_2234" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" xlink:to="loc_ypf_AmountsReceivableOrPayableRelatedPartyTransactions_2234" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeExpenseForRelatedPartyTransactions" xlink:label="loc_ypf_IncomeExpenseForRelatedPartyTransactions_2235" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" xlink:to="loc_ypf_IncomeExpenseForRelatedPartyTransactions_2235" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" xlink:label="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2253" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits_2254" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2253" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits_2254" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment_2255" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2253" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment_2255" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits_2256" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2253" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits_2256" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits_2257" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2253" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits_2257" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensation" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensation_2258" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2253" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensation_2258" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" xlink:label="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2260" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SocialSecurityContributions" xlink:label="loc_ifrs-full_SocialSecurityContributions_2261" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract_2260" xlink:to="loc_ifrs-full_SocialSecurityContributions_2261" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract_861732" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract_861732" xlink:to="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_861735" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_861735" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_861738" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_CounterpartiesAxis_861738" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_861739" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CounterpartiesAxis_861738" xlink:to="loc_ifrs-full_CounterpartiesDomain_861739" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" xlink:label="loc_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember_861740" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CounterpartiesDomain_861739" xlink:to="loc_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember_861740" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xlink:label="loc_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember_1402326" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CounterpartiesDomain_861739" xlink:to="loc_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember_1402326" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403015" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403015" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationAxis" xlink:label="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationDomain" xlink:label="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" xlink:to="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SellingGeneralAndAdministrativeExpenseMember" xlink:label="loc_ifrs-full_SellingGeneralAndAdministrativeExpenseMember_1403020" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" xlink:to="loc_ifrs-full_SellingGeneralAndAdministrativeExpenseMember_1403020" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" xlink:label="loc_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember_1403021" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" xlink:to="loc_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember_1403021" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403022" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_JointVenturesAxis_1403022" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403023" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesAxis_1403022" xlink:to="loc_ifrs-full_JointVenturesDomain_1403023" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_1403024" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1403023" xlink:to="loc_ypf_YPFEEMember_1403024" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1403025" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_JointVenturesDomain_1403023" xlink:to="loc_ypf_CTBarraganMember_1403025" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfOilAndGasAssets" xlink:label="loc_ifrs-full_PurchaseOfOilAndGasAssets_861743" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_PurchaseOfOilAndGasAssets_861743" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBalancePayable" xlink:label="loc_ypf_NetBalancePayable_861744" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ypf_NetBalancePayable_861744" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1332345" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1332345" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1332346" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1332346" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/presentationGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentProvisions" xlink:label="loc_ifrs-full_NoncurrentProvisions_1403026" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_NoncurrentProvisions_1403026" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract_2263" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlanTable" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract_2263" xlink:to="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansAxis" xlink:label="loc_ifrs-full_DefinedBenefitPlansAxis_2265" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ifrs-full_DefinedBenefitPlansAxis_2265" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="loc_ifrs-full_DefinedBenefitPlansDomain_2266" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DefinedBenefitPlansAxis_2265" xlink:to="loc_ifrs-full_DefinedBenefitPlansDomain_2266" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RetirementPlanMember" xlink:label="loc_ypf_RetirementPlanMember_2275" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DefinedBenefitPlansDomain_2266" xlink:to="loc_ypf_RetirementPlanMember_2275" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xlink:label="loc_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember_2276" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DefinedBenefitPlansDomain_2266" xlink:to="loc_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember_2276" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ValueGenerationPlanMember" xlink:label="loc_ypf_ValueGenerationPlanMember_1402998" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" xlink:to="loc_ypf_ValueGenerationPlanMember_1402998" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember_1403300" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember_1403300" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1402449" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ifrs-full_RangeAxis_1402449" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402450" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1402449" xlink:to="loc_ifrs-full_RangeDomain_1402450" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1402451" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1402450" xlink:to="loc_ifrs-full_TopOfRangeMember_1402451" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_1402452" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1402450" xlink:to="loc_ifrs-full_BottomOfRangeMember_1402452" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlanLineItems" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EmployeeBenefitsExpense" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_2277" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_2277" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xlink:label="loc_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan_1402604" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan_1402604" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402999" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402999" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement_1403004" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement_1403004" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageSharePrice2019" xlink:label="loc_ifrs-full_WeightedAverageSharePrice2019_1403005" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_WeightedAverageSharePrice2019_1403005" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" xlink:label="loc_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019_1403006" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019_1403006" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" xlink:label="loc_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019_1403007" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019_1403007" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1403008" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1403008" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_2329" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_2329" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_1402395" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_1402395" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_861721" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_861721" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2336" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2336" use="optional" order="7" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2337" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2337" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2340" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2340" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_2307" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_2307" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1402397" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1402397" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_2312" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_2312" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2313" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2313" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2314" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2314" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2315" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2315" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_2316" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_2316" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660931" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660931" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2318" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2318" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_1330192" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_1330192" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember_1402399" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember_1402399" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1330201" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1330201" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1330203" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1330203" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1330205" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1330205" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1330206" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1330206" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1330207" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1330207" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1330212" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1330212" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1330219" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1330219" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_1402076" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_1402076" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402401" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402401" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1402082" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1402082" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402083" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402083" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1402084" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1402084" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1402085" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1402085" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1402086" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1402086" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1402087" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1402087" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1402088" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1402088" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_2355" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_2355" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember_2367" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember_2367" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_2360" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_2360" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2361" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2361" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2362" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2362" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2363" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2363" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_2364" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_2364" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660932" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660932" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2366" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2366" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_1403322" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract_1403322" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Plan20252028Member" xlink:label="loc_ypf_Plan20252028Member_1403327" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326" xlink:to="loc_ypf_Plan20252028Member_1403327" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1403333" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1403333" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1403338" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1403338" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1403341" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1403341" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1403339" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1403339" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract_2489" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract_2489" xlink:to="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IssueOfDebtNotesMember" xlink:label="loc_ypf_IssueOfDebtNotesMember_1402621" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" xlink:to="loc_ypf_IssueOfDebtNotesMember_1402621" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsExchangeMember" xlink:label="loc_ypf_AssetsExchangeMember_1403245" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" xlink:to="loc_ypf_AssetsExchangeMember_1403245" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_2490" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_2490" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_2495" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_2490" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_2495" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_638026" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_638026" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_638027" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_638026" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_638027" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_640141" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_640141" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_640142" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_640141" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_640142" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_673590" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_673590" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_673591" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_673590" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_673591" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_861755" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_RangeAxis_861755" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_861756" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_861755" xlink:to="loc_ifrs-full_RangeDomain_861756" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassXXXIVMember" xlink:label="loc_ypf_ClassXXXIVMember_1402987" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" xlink:to="loc_ypf_ClassXXXIVMember_1402987" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassxliiMember" xlink:label="loc_ypf_ClassxliiMember_1403278" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" xlink:to="loc_ypf_ClassxliiMember_1403278" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsAxis" xlink:label="loc_ypf_ClassOfBorrowingsAxis_1329561" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ypf_ClassOfBorrowingsAxis_1329561" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsMember" xlink:label="loc_ypf_ClassOfBorrowingsMember_1329586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ClassOfBorrowingsAxis_1329561" xlink:to="loc_ypf_ClassOfBorrowingsMember_1329586" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityAxis" xlink:label="loc_ypf_LetterOfCreditFacilityAxis_1402060" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ypf_LetterOfCreditFacilityAxis_1402060" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityMember" xlink:label="loc_ypf_LetterOfCreditFacilityMember_1402061" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_LetterOfCreditFacilityAxis_1402060" xlink:to="loc_ypf_LetterOfCreditFacilityMember_1402061" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1402494" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1402494" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402498" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402498" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402499" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402498" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402499" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleAxis" xlink:label="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleMember" xlink:label="loc_ypf_ClassifiedAsHeldForSaleMember_1402609" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" xlink:to="loc_ypf_ClassifiedAsHeldForSaleMember_1402609" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402613" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402613" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1402616" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_MaturityAxis_1402616" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1402617" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityAxis_1402616" xlink:to="loc_ifrs-full_MaturityDomain_1402617" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JanuaryTwentyThousandThirtyFourMember" xlink:label="loc_ypf_JanuaryTwentyThousandThirtyFourMember_1402986" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1402617" xlink:to="loc_ypf_JanuaryTwentyThousandThirtyFourMember_1402986" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MarchTwentyThousandTwentyNineMember" xlink:label="loc_ypf_MarchTwentyThousandTwentyNineMember_1403280" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_MaturityDomain_1402617" xlink:to="loc_ypf_MarchTwentyThousandTwentyNineMember_1403280" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_1403246" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_1403246" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_1403247" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_1403246" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_1403247" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403248" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_VmiMember_1403248" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaVillanuevaMember" xlink:label="loc_ypf_AguadaVillanuevaMember_1403249" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_AguadaVillanuevaMember_1403249" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaSauMember" xlink:label="loc_ypf_EquinorArgentinaSauMember_1403282" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_EquinorArgentinaSauMember_1403282" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurMember" xlink:label="loc_ypf_BandurriaSurMember_1403283" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BandurriaSurMember_1403283" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroMember" xlink:label="loc_ypf_BajoDelToroMember_1403287" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BajoDelToroMember_1403287" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurBlockMember" xlink:label="loc_ypf_BandurriaSurBlockMember_1403290" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BandurriaSurBlockMember_1403290" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroNorteMember" xlink:label="loc_ypf_BajoDelToroNorteMember_1403292" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BajoDelToroNorteMember_1403292" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="loc_ifrs-full_BorrowingsMaturity_638037" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_BorrowingsMaturity_638037" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="loc_ifrs-full_BorrowingsInterestRate_1402066" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_BorrowingsInterestRate_1402066" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="loc_ifrs-full_NotionalAmount_1402988" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_NotionalAmount_1402988" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="loc_ifrs-full_BorrowingsInterestRate_1402989" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_BorrowingsInterestRate_1402989" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfConsecutiveAnnualInstalments" xlink:label="loc_ypf_NumberOfConsecutiveAnnualInstalments_1402991" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_NumberOfConsecutiveAnnualInstalments_1402991" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfInstallmentAmoritized" xlink:label="loc_ypf_PercentageOfInstallmentAmoritized_1402992" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_PercentageOfInstallmentAmoritized_1402992" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xlink:label="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1403244" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1403244" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403251" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403251" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BorrowingsInterestYieldRate" xlink:label="loc_ypf_BorrowingsInterestYieldRate_1403257" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_BorrowingsInterestYieldRate_1403257" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403281" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403281" use="optional" order="55" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_1403286" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_1403286" use="optional" order="56" preferredLabel="http://www.xbrl.org/2003/role/label" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2507" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2507" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2516" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2516" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2517" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2516" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2517" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2555" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2517" xlink:to="loc_ypf_WorldwideMember_2555" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2556" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2517" xlink:to="loc_country_AR_2556" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2550" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2550" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsolidatedAndEquityaccountedEntitiesMember" xlink:label="loc_ypf_ConsolidatedAndEquityaccountedEntitiesMember_2551" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" xlink:to="loc_ypf_ConsolidatedAndEquityaccountedEntitiesMember_2551" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_2515" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_2515" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_2509" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_2509" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_2514" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_2509" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_2514" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesDevelopedMember" xlink:label="loc_ypf_ProvedReservesDevelopedMember_2552" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_2514" xlink:to="loc_ypf_ProvedReservesDevelopedMember_2552" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesUndevelopedMember" xlink:label="loc_ypf_ProvedReservesUndevelopedMember_2553" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_2514" xlink:to="loc_ypf_ProvedReservesUndevelopedMember_2553" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilAndCondensate" xlink:label="loc_ypf_NetProvedReservesOfOilAndCondensate_2518" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilAndCondensate_2518" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xlink:label="loc_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates_2519" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates_2519" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xlink:label="loc_ypf_OilAndCondensateReserveExtensionsAndDiscoveries_2520" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveExtensionsAndDiscoveries_2520" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveImprovedRecovery" xlink:label="loc_ypf_OilAndCondensateReserveImprovedRecovery_2521" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveImprovedRecovery_2521" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReservePurchaseOfMinerals" xlink:label="loc_ypf_OilAndCondensateReservePurchaseOfMinerals_2522" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReservePurchaseOfMinerals_2522" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveSaleOfMinerals" xlink:label="loc_ypf_OilAndCondensateReserveSaleOfMinerals_2523" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveSaleOfMinerals_2523" use="optional" order="22" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveProductionForYear" xlink:label="loc_ypf_OilAndCondensateReserveProductionForYear_2524" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveProductionForYear_2524" use="optional" order="23" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilAndCondensate" xlink:label="loc_ypf_NetProvedReservesOfOilAndCondensate_2525" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilAndCondensate_2525" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquids" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquids_2526" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquids_2526" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates_2527" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates_2527" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries_2528" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries_2528" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals_2531" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals_2531" use="optional" order="28" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear_2532" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear_2532" use="optional" order="29" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquids" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquids_2533" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquids_2533" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGas" xlink:label="loc_ypf_NetProvedReservesOfNaturalGas_2534" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGas_2534" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates_2535" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates_2535" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries_2536" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries_2536" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasImprovedRecovery_2537" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasImprovedRecovery_2537" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals_2538" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals_2538" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals_2539" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals_2539" use="optional" order="36" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasProductionForYear_2540" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasProductionForYear_2540" use="optional" order="37" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGas" xlink:label="loc_ypf_NetProvedReservesOfNaturalGas_2541" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGas_2541" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalent" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalent_2542" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalent_2542" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates_2543" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates_2543" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries_2544" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries_2544" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery_2545" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery_2545" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals_2546" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals_2546" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals_2547" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals_2547" use="optional" order="44" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentProductionForYear_2548" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentProductionForYear_2548" use="optional" order="45" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalent" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalent_2549" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalent_2549" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2559" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2559" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilEquivalentMember" xlink:label="loc_ypf_OilEquivalentMember_2575" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565" xlink:to="loc_ypf_OilEquivalentMember_2575" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2573" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2573" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedCrudeOilProductionDuringPeriod" xlink:label="loc_ypf_EstimatedCrudeOilProductionDuringPeriod_2567" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedCrudeOilProductionDuringPeriod_2567" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedCrudeOilReserves" xlink:label="loc_ypf_EstimatedProvedCrudeOilReserves_2568" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedCrudeOilReserves_2568" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedNaturalGasLiquidsProduction" xlink:label="loc_ypf_EstimatedNaturalGasLiquidsProduction_2569" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedNaturalGasLiquidsProduction_2569" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedNaturalGasLiquidsReserves" xlink:label="loc_ypf_EstimatedProvedNaturalGasLiquidsReserves_2570" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedNaturalGasLiquidsReserves_2570" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedNaturalGasProduction" xlink:label="loc_ypf_EstimatedNaturalGasProduction_2571" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedNaturalGasProduction_2571" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xlink:label="loc_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel_2566" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel_2566" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedBarrelOfOilEquivalentProduction" xlink:label="loc_ypf_EstimatedBarrelOfOilEquivalentProduction_2576" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedBarrelOfOilEquivalentProduction_2576" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedOilEquivalentReserves" xlink:label="loc_ypf_EstimatedProvedOilEquivalentReserves_2577" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedOilEquivalentReserves_2577" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xlink:label="loc_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel_1400972" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel_1400972" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract_2579" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract_2579" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOil1Member" xlink:label="loc_ypf_CrudeOil1Member_2612" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_CrudeOil1Member_2612" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasLiquidsMember" xlink:label="loc_ypf_NaturalGasLiquidsMember_2613" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_NaturalGasLiquidsMember_2613" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember_2614" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_NaturalGasMember_2614" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOilAndNaturalGasMember" xlink:label="loc_ypf_CrudeOilAndNaturalGasMember_1383477" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_CrudeOilAndNaturalGasMember_1383477" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_2584" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_SegmentsAxis_2584" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_2585" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsAxis_2584" xlink:to="loc_ifrs-full_SegmentsDomain_2585" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolfoSanJorgeBasinMember" xlink:label="loc_ypf_GolfoSanJorgeBasinMember_2617" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_2585" xlink:to="loc_ypf_GolfoSanJorgeBasinMember_2617" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" xlink:label="loc_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember_1403347" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_SegmentsDomain_2585" xlink:to="loc_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember_1403347" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesAxis" xlink:label="loc_ifrs-full_AccountingEstimatesAxis_657752" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_AccountingEstimatesAxis_657752" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesDomain" xlink:label="loc_ifrs-full_AccountingEstimatesDomain_657753" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AccountingEstimatesAxis_657752" xlink:to="loc_ifrs-full_AccountingEstimatesDomain_657753" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1383478" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_RangeAxis_1383478" use="optional" order="14" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1383479" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeAxis_1383478" xlink:to="loc_ifrs-full_RangeDomain_1383479" use="optional" order="15" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1383480" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_RangeDomain_1383479" xlink:to="loc_ifrs-full_TopOfRangeMember_1383480" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402697" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402697" use="optional" order="17" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402698" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402697" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402698" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ReserveQuantitiesByTypeOfReserveAxis" xlink:label="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" use="optional" order="19" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain_1402705" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" xlink:to="loc_srt_TypeOfReserveDomain_1402705" use="optional" order="20" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" use="optional" order="21" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708" use="optional" order="22" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" xlink:label="loc_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember_1403645" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708" xlink:to="loc_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember_1403645" use="optional" order="23" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" use="optional" order="24" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_1403134" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" xlink:to="loc_ifrs-full_CarryingAmountMember_1403134" use="optional" order="25" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_1403143" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_1403134" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_1403143" use="optional" order="26" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403135" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_CarryingAmountMember_1403134" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403135" use="optional" order="27" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403136" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403136" use="optional" order="28" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403137" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403136" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403137" use="optional" order="29" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1403138" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403137" xlink:to="loc_ypf_MatureFieldsProjectMember_1403138" use="optional" order="30" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChanarMember" xlink:label="loc_ypf_AguadaDelChanarMember_1403635" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403137" xlink:to="loc_ypf_AguadaDelChanarMember_1403635" use="optional" order="31" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember_1403636" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403137" xlink:to="loc_ypf_OptimizationPlanMember_1403636" use="optional" order="32" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" use="optional" order="33" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1403140" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1403140" use="optional" order="34" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChangesInOurEstimatedProvedReservesLineItems" xlink:label="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" use="optional" order="35" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xlink:label="loc_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves_2587" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves_2587" use="optional" order="36" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xlink:label="loc_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves_2586" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves_2586" use="optional" order="37" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xlink:label="loc_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease_2592" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease_2592" use="optional" order="38" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xlink:label="loc_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices_2593" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices_2593" use="optional" order="39" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xlink:label="loc_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease_2594" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease_2594" use="optional" order="40" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules_2597" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules_2597" use="optional" order="41" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInEstimatedReserve" xlink:label="loc_ypf_IncreaseDecreaseInEstimatedReserve_1383484" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseDecreaseInEstimatedReserve_1383484" use="optional" order="42" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInTotalProvedReserve" xlink:label="loc_ypf_IncreaseDecreaseInTotalProvedReserve_1383487" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseDecreaseInTotalProvedReserve_1383487" use="optional" order="43" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xlink:label="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance_1402694" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance_1402694" use="optional" order="44" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments_1402695" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments_1402695" use="optional" order="45" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" xlink:label="loc_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy_1402696" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy_1402696" use="optional" order="46" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xlink:label="loc_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil_1403035" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil_1403035" use="optional" order="47" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xlink:label="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance_1403042" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance_1403042" use="optional" order="48" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments_1403043" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments_1403043" use="optional" order="49" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_1403130" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_1403130" use="optional" order="50" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xlink:label="loc_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale_1403131" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale_1403131" use="optional" order="51" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_1403132" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ifrs-full_Assets_1403132" use="optional" order="52" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredOfAssetsHeldForSale" xlink:label="loc_ypf_CostsIncurredOfAssetsHeldForSale_1403142" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_CostsIncurredOfAssetsHeldForSale_1403142" use="optional" order="53" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfDisposalOfInterests" xlink:label="loc_ypf_PercentageOfDisposalOfInterests_1403633" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_PercentageOfDisposalOfInterests_1403633" use="optional" order="54" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2622" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2622" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2625" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2625" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2626" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2625" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2626" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2634" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2626" xlink:to="loc_country_AR_2634" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2636" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2626" xlink:to="loc_ypf_WorldwideMember_2636" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralPropertyWellsAndRelatedEquipment" xlink:label="loc_ypf_MineralPropertyWellsAndRelatedEquipment_2627" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_MineralPropertyWellsAndRelatedEquipment_2627" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SupportEquipmentAndFacilities" xlink:label="loc_ypf_SupportEquipmentAndFacilities_2628" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_SupportEquipmentAndFacilities_2628" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingAndWorkInProgress" xlink:label="loc_ypf_DrillingAndWorkInProgress_2629" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_DrillingAndWorkInProgress_2629" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnprovedOilAndGasProperties" xlink:label="loc_ypf_UnprovedOilAndGasProperties_2630" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_UnprovedOilAndGasProperties_2630" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrossCapitalizedCost" xlink:label="loc_ypf_GrossCapitalizedCost_2631" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_GrossCapitalizedCost_2631" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationAndValuationAllowances" xlink:label="loc_ypf_AccumulatedDepreciationAndValuationAllowances_2632" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_AccumulatedDepreciationAndValuationAllowances_2632" use="optional" order="12" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetCapitalizedCost" xlink:label="loc_ypf_NetCapitalizedCost_2633" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_NetCapitalizedCost_2633" use="optional" order="13" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_672089" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_672089" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="loc_ifrs-full_TypesOfContractsAxis_672092" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" xlink:to="loc_ifrs-full_TypesOfContractsAxis_672092" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain_672093" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfContractsAxis_672092" xlink:to="loc_ifrs-full_TypesOfContractsDomain_672093" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xlink:label="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672100" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfContractsDomain_672093" xlink:to="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672100" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_672102" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" xlink:to="loc_ifrs-full_NewIFRSsAxis_672102" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_672103" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NewIFRSsAxis_672102" xlink:to="loc_ifrs-full_NewIFRSsDomain_672103" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IFRS16Member" xlink:label="loc_ypf_IFRS16Member_672104" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NewIFRSsDomain_672103" xlink:to="loc_ypf_IFRS16Member_672104" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets_894896" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets_894896" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets_894898" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets_894898" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets_1402731" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets_1402731" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2638" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2638" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2641" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2641" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2642" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2641" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2642" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2648" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2642" xlink:to="loc_country_AR_2648" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherForeignMember" xlink:label="loc_ypf_OtherForeignMember_2649" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2642" xlink:to="loc_ypf_OtherForeignMember_2649" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2650" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2642" xlink:to="loc_ypf_WorldwideMember_2650" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfUnprovedProperties" xlink:label="loc_ypf_AcquisitionOfUnprovedProperties_2643" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_AcquisitionOfUnprovedProperties_2643" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfProvedProperties" xlink:label="loc_ypf_AcquisitionOfProvedProperties_2644" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_AcquisitionOfProvedProperties_2644" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationCost" xlink:label="loc_ypf_ExplorationCost_2645" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_ExplorationCost_2645" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCost" xlink:label="loc_ypf_DevelopmentCost_2646" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_DevelopmentCost_2646" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredInOilAndGasProductivity" xlink:label="loc_ypf_CostsIncurredInOilAndGasProductivity_2647" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_CostsIncurredInOilAndGasProductivity_2647" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_672107" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_672107" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="loc_ifrs-full_TypesOfContractsAxis_672111" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" xlink:to="loc_ifrs-full_TypesOfContractsAxis_672111" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain_672112" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfContractsAxis_672111" xlink:to="loc_ifrs-full_TypesOfContractsDomain_672112" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xlink:label="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672113" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_TypesOfContractsDomain_672112" xlink:to="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672113" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_672114" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" xlink:to="loc_ifrs-full_NewIFRSsAxis_672114" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_672115" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_NewIFRSsAxis_672114" xlink:to="loc_ifrs-full_NewIFRSsDomain_672115" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/label" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672109" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672109" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/verboseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets_672110" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672109" xlink:to="loc_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets_672110" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2652" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xlink:label="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2652" xlink:to="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2655" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2655" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2656" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2655" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2656" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2668" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2656" xlink:to="loc_country_AR_2668" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherForeignMember" xlink:label="loc_ypf_OtherForeignMember_2669" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2656" xlink:to="loc_ypf_OtherForeignMember_2669" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2670" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2656" xlink:to="loc_ypf_WorldwideMember_2670" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xlink:label="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" xlink:to="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetSalesToUnaffiliatedParties" xlink:label="loc_ypf_NetSalesToUnaffiliatedParties_2657" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_NetSalesToUnaffiliatedParties_2657" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetIntersegmentSales" xlink:label="loc_ypf_NetIntersegmentSales_2658" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_NetIntersegmentSales_2658" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoods" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_2659" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_2659" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCost" xlink:label="loc_ypf_ProductionCost_2660" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ProductionCost_2660" use="optional" order="11" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationExpenses" xlink:label="loc_ypf_ExplorationExpenses_2661" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ExplorationExpenses_2661" use="optional" order="12" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xlink:label="loc_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets_2662" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets_2662" use="optional" order="13" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xlink:label="loc_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax_2663" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax_2663" use="optional" order="14" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherGainsLosses" xlink:label="loc_ifrs-full_OtherGainsLosses_2664" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_OtherGainsLosses_2664" use="optional" order="15" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_2665" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_2665" use="optional" order="16" preferredLabel="http://www.xbrl.org/2003/role/definitionGuidance" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_2666" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_2666" use="optional" order="17" preferredLabel="http://www.xbrl.org/2009/role/negatedTerseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsOfOilAndGasProducingActivities" xlink:label="loc_ypf_ResultsOfOilAndGasProducingActivities_2667" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ResultsOfOilAndGasProducingActivities_2667" use="optional" order="18" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2672" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2672" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2675" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2675" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2676" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2675" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2676" use="optional" order="3" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2683" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2676" xlink:to="loc_country_AR_2683" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2684" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2676" xlink:to="loc_ypf_WorldwideMember_2684" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows_2677" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows_2677" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts_2678" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts_2678" use="optional" order="8" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts_2679" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts_2679" use="optional" order="9" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense_2680" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense_2680" use="optional" order="10" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows_2681" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows_2681" use="optional" order="11" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:label="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve_2682" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve_2682" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/totalLabel" />
        </link:presentationLink>
        <link:presentationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2686" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFutureNetCashFlowAbstract" xlink:label="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract_2686" xlink:to="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" use="optional" order="1" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xlink:label="loc_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves_2688" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves_2688" use="optional" order="2" preferredLabel="http://www.xbrl.org/2003/role/periodStartLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalesAndTransfersNetOfProductionCosts" xlink:label="loc_ypf_SalesAndTransfersNetOfProductionCosts_2689" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_SalesAndTransfersNetOfProductionCosts_2689" use="optional" order="3" preferredLabel="http://www.xbrl.org/2009/role/negatedLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" xlink:label="loc_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts_2690" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts_2690" use="optional" order="4" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInReservesAndProductionRates" xlink:label="loc_ypf_IncreaseDecreaseInReservesAndProductionRates_2691" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_IncreaseDecreaseInReservesAndProductionRates_2691" use="optional" order="5" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" xlink:label="loc_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery_2692" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery_2692" use="optional" order="6" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" xlink:label="loc_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts_2694" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts_2694" use="optional" order="7" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" xlink:label="loc_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts_2695" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts_2695" use="optional" order="8" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccretionOfDiscount1" xlink:label="loc_ypf_AccretionOfDiscount1_2696" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_AccretionOfDiscount1_2696" use="optional" order="9" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" xlink:label="loc_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves_2697" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves_2697" use="optional" order="10" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" xlink:label="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments_2698" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments_2698" use="optional" order="11" preferredLabel="http://www.xbrl.org/2003/role/terseLabel" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xlink:label="loc_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves_2699" />
          <link:presentationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/parent-child" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract_2687" xlink:to="loc_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves_2699" use="optional" order="12" preferredLabel="http://www.xbrl.org/2003/role/periodEndLabel" />
        </link:presentationLink>
        <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"  />
        <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"  />
        <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"  />
        <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"  />
        <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"  />
        <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/notAll" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#notAll"  />
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CoverPage" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems_1403574" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable_1403435" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentInformationTable_1403435" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesAxis" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_1403435" xlink:to="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesDomain" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" xlink:to="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesDomain" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesAxis_1403551" xlink:to="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassASharesMember" xlink:label="loc_ypf_ClassASharesMember_1403564" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassASharesMember_1403564" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassBSharesMember" xlink:label="loc_ypf_ClassBSharesMember_1403566" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassBSharesMember_1403566" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassCSharesMember" xlink:label="loc_ypf_ClassCSharesMember_1403567" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassCSharesMember_1403567" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassDSharesMember" xlink:label="loc_ypf_ClassDSharesMember_1403569" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_ypf_ClassDSharesMember_1403569" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AdrMember" xlink:label="loc_dei_AdrMember_1403570" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain_1403552" xlink:to="loc_dei_AdrMember_1403570" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressesAddressTypeAxis" xlink:label="loc_dei_EntityAddressesAddressTypeAxis_1403571" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_dei_DocumentInformationTable_1403435" xlink:to="loc_dei_EntityAddressesAddressTypeAxis_1403571" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_1403572" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_1403571" xlink:to="loc_dei_AddressTypeDomain_1403572" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain_1403572_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_dei_EntityAddressesAddressTypeAxis_1403571" xlink:to="loc_dei_AddressTypeDomain_1403572_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_BusinessContactMember" xlink:label="loc_dei_BusinessContactMember_1403573" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_AddressTypeDomain_1403572" xlink:to="loc_dei_BusinessContactMember_1403573" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType_1403575" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentType_1403575" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag_1403576" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AmendmentFlag_1403576" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent_1403577" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityInteractiveDataCurrent_1403577" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate_1403578" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentPeriodEndDate_1403578" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus_1403579" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentFiscalYearFocus_1403579" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus_1403580" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentFiscalPeriodFocus_1403580" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol_1403581" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_TradingSymbol_1403581" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName_1403582" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityRegistrantName_1403582" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey_1403583" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityCentralIndexKey_1403583" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate_1403584" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_CurrentFiscalYearEndDate_1403584" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer_1403585" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityWellKnownSeasonedIssuer_1403585" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers_1403586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityVoluntaryFilers_1403586" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus_1403587" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityCurrentReportingStatus_1403587" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory_1403588" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityFilerCategory_1403588" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany_1403589" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityShellCompany_1403589" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany_1403590" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityEmergingGrowthCompany_1403590" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding_1403591" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityCommonStockSharesOutstanding_1403591" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentRegistrationStatement" xlink:label="loc_dei_DocumentRegistrationStatement_1403592" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentRegistrationStatement_1403592" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentAnnualReport" xlink:label="loc_dei_DocumentAnnualReport_1403593" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentAnnualReport_1403593" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport_1403594" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentTransitionReport_1403594" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentShellCompanyReport" xlink:label="loc_dei_DocumentShellCompanyReport_1403595" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentShellCompanyReport_1403595" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle_1403596" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_Security12bTitle_1403596" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName_1403597" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_SecurityExchangeName_1403597" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_NoTradingSymbolFlag" xlink:label="loc_dei_NoTradingSymbolFlag_1403598" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_NoTradingSymbolFlag_1403598" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_IcfrAuditorAttestationFlag" xlink:label="loc_dei_IcfrAuditorAttestationFlag_1403599" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_IcfrAuditorAttestationFlag_1403599" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorName" xlink:label="loc_dei_AuditorName_1403600" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AuditorName_1403600" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorFirmId" xlink:label="loc_dei_AuditorFirmId_1403601" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AuditorFirmId_1403601" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorLocation" xlink:label="loc_dei_AuditorLocation_1403602" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_AuditorLocation_1403602" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentAccountingStandard" xlink:label="loc_dei_DocumentAccountingStandard_1403603" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentAccountingStandard_1403603" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_ContactPersonnelName" xlink:label="loc_dei_ContactPersonnelName_1403604" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_ContactPersonnelName_1403604" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode_1403605" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_CityAreaCode_1403605" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber_1403606" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_LocalPhoneNumber_1403606" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber_1403607" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityFileNumber_1403607" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1_1403608" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressAddressLine1_1403608" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode_1403610" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressPostalZipCode_1403610" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown_1403611" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressCityOrTown_1403611" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCountry" xlink:label="loc_dei_EntityAddressCountry_1403613" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityAddressCountry_1403613" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode_1403614" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_EntityIncorporationStateCountryCode_1403614" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFinStmtErrorCorrectionFlag" xlink:label="loc_dei_DocumentFinStmtErrorCorrectionFlag_1403617" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_dei_DocumentInformationLineItems_1403574" xlink:to="loc_dei_DocumentFinStmtErrorCorrectionFlag_1403617" use="optional" order="52" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityLineItems" xlink:label="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityTable" xlink:label="loc_ifrs-full_StatementOfChangesInEquityTable_127" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_StatementOfChangesInEquityTable_127" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_122" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_127" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_122" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_123" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_122" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_123" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_123_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_122" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_123_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IssuedCapitalMember" xlink:label="loc_ifrs-full_IssuedCapitalMember_128" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_IssuedCapitalMember_128" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TreasurySharesMember" xlink:label="loc_ifrs-full_TreasurySharesMember_130" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_TreasurySharesMember_130" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfSharebasedPaymentsMember" xlink:label="loc_ifrs-full_ReserveOfSharebasedPaymentsMember_132" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_ReserveOfSharebasedPaymentsMember_132" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionCostOfTreasurySharesMember" xlink:label="loc_ypf_AcquisitionCostOfTreasurySharesMember_133" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_AcquisitionCostOfTreasurySharesMember_133" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareTradingPremiumMember" xlink:label="loc_ypf_ShareTradingPremiumMember_134" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_ShareTradingPremiumMember_134" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SharePremiumMember" xlink:label="loc_ifrs-full_SharePremiumMember_135" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_SharePremiumMember_135" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserveMember" xlink:label="loc_ifrs-full_StatutoryReserveMember_137" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_StatutoryReserveMember_137" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForFutureDividendsMember" xlink:label="loc_ypf_ReservesForFutureDividendsMember_138" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_ReservesForFutureDividendsMember_138" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_139" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_139" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForPurchaseOfTreasuryShareMember" xlink:label="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_140" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_140" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncomeMember_142" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncomeMember_142" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnappropriatedRetainedEarningsAndLossesMember" xlink:label="loc_ypf_UnappropriatedRetainedEarningsAndLossesMember_1402643" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ypf_UnappropriatedRetainedEarningsAndLossesMember_1402643" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_144" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParentMember_144" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncontrollingInterestsMember" xlink:label="loc_ifrs-full_NoncontrollingInterestsMember_145" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_123" xlink:to="loc_ifrs-full_NoncontrollingInterestsMember_145" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity_148" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_Equity_148" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xlink:label="loc_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity_149" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity_149" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CancellationOfTreasuryShares" xlink:label="loc_ifrs-full_CancellationOfTreasuryShares_1402114" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_CancellationOfTreasuryShares_1402114" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions_151" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions_151" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xlink:label="loc_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity_1402127" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity_1402127" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConstitutionOfReservesEquity" xlink:label="loc_ypf_ConstitutionOfReservesEquity_1402129" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_ConstitutionOfReservesEquity_1402129" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReleaseOfReservesEquity" xlink:label="loc_ypf_ReleaseOfReservesEquity_1403193" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_ReleaseOfReservesEquity_1403193" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AppropriationToReservesEquity" xlink:label="loc_ypf_AppropriationToReservesEquity_1403184" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ypf_AppropriationToReservesEquity_1403184" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_154" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_154" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_155" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_126" xlink:to="loc_ifrs-full_ProfitLoss_155" use="optional" order="28" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityLineItems" xlink:label="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityTable" xlink:label="loc_ifrs-full_StatementOfChangesInEquityTable_162" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" xlink:to="loc_ifrs-full_StatementOfChangesInEquityTable_162" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable_162" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_160" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_160" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_160_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_159" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_160_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_165" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" xlink:to="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_165" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xlink:label="loc_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition_166" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems_161" xlink:to="loc_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition_166" use="optional" order="6" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposalsTables" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_637058" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_637058" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402734" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402734" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402734_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402733" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402734_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_637063" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_637063" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_637064" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_637063" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_637064" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_637064_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_637063" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_637064_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember_1403409" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_637064" xlink:to="loc_ypf_MobilArgentinaSaMember_1403409" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1403410" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_637064" xlink:to="loc_ypf_OLCLPMember_1403410" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403411" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_637064" xlink:to="loc_ypf_VmiMember_1403411" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403412" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_637055" xlink:to="loc_ifrs-full_JointVenturesAxis_1403412" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403413" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_1403412" xlink:to="loc_ifrs-full_JointVenturesDomain_1403413" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403413_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_1403412" xlink:to="loc_ifrs-full_JointVenturesDomain_1403413_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1403414" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1403413" xlink:to="loc_ypf_RefinorMember_1403414" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock_1403234" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_637058" xlink:to="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock_1403234" use="optional" order="15" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems_2940" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems_2940" xlink:to="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable_2941" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2942" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_859643" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_859643" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1330086" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1330086" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember_1402104" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember_1402104" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402390" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402390" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember_1403194" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember_1403194" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember_1403196" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2939" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember_1403196" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory_2949" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems_2940" xlink:to="loc_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory_2949" use="optional" order="11" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2964" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasLiquidsMember" xlink:label="loc_ypf_NaturalGasLiquidsMember_2970" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2965" xlink:to="loc_ypf_NaturalGasLiquidsMember_2970" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ReserveQuantitiesByTypeOfReserveAxis" xlink:label="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2968" xlink:to="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain_2969" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" xlink:to="loc_srt_TypeOfReserveDomain_2969" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain_2969_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_2966" xlink:to="loc_srt_TypeOfReserveDomain_2969_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_OilReservesMember" xlink:label="loc_srt_OilReservesMember_2977" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TypeOfReserveDomain_2969" xlink:to="loc_srt_OilReservesMember_2977" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember_2978" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TypeOfReserveDomain_2969" xlink:to="loc_ypf_NaturalGasMember_2978" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilEquivalentMember" xlink:label="loc_ypf_OilEquivalentMember_2979" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_TypeOfReserveDomain_2969" xlink:to="loc_ypf_OilEquivalentMember_2979" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory_2971" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory_2971" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCapitalizedCostsExplanatory" xlink:label="loc_ypf_DisclosureOfCapitalizedCostsExplanatory_2972" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfCapitalizedCostsExplanatory_2972" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xlink:label="loc_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory_2973" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory_2973" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xlink:label="loc_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory_2974" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory_2974" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory_2975" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory_2975" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xlink:label="loc_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory_2976" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2967" xlink:to="loc_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory_2976" use="optional" order="17" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupLineItems" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupTable" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupAxis" xlink:label="loc_ypf_EntityGroupAxis_1403078" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" xlink:to="loc_ypf_EntityGroupAxis_1403078" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupDomain" xlink:label="loc_ypf_EntityGroupDomain_1403079" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_EntityGroupAxis_1403078" xlink:to="loc_ypf_EntityGroupDomain_1403079" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupDomain" xlink:label="loc_ypf_EntityGroupDomain_1403079_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_EntityGroupAxis_1403078" xlink:to="loc_ypf_EntityGroupDomain_1403079_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1403080" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_UpstreamMember_1403080" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1403081" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1403081" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1403082" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_LNGandIntegratedGasMember_1403082" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403177" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_NewEnergiesMember_1403177" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_1403083" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_EntityGroupDomain_1403079" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_1403083" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable_1402777" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402853" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EleranMember" xlink:label="loc_ypf_EleranMember_1402861" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_EleranMember_1402861" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScGasMember" xlink:label="loc_ypf_ScGasMember_1403198" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_ScGasMember_1403198" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403199" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_VmiMember_1403199" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OPESSAMember" xlink:label="loc_ypf_OPESSAMember_1402862" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OPESSAMember_1402862" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1402866" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OLCLPMember_1402866" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1402865" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_RefinorMember_1402865" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMember" xlink:label="loc_ypf_OTAMember_1402867" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OTAMember_1402867" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTCMember" xlink:label="loc_ypf_OTCMember_1402868" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OTCMember_1402868" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember_1402869" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OldelvalMember_1402869" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember_1403200" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_OTAMERICAMember_1403200" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember_1402872" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_TermapMember_1402872" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember_1402871" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_VmosMember_1402871" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember_1402889" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YPFGasMember_1402889" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFChileMember" xlink:label="loc_ypf_YPFChileMember_1402863" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YPFChileMember_1402863" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ArgentinaLngMember" xlink:label="loc_ypf_ArgentinaLngMember_1402882" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_ArgentinaLngMember_1402882" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergeticasMember" xlink:label="loc_ypf_SurInversionesEnergeticasMember_1402884" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_SurInversionesEnergeticasMember_1402884" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember_1402885" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_MEGAMember_1402885" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember_1402873" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_MetrogasMember_1402873" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetroenergiaMember" xlink:label="loc_ypf_MetroenergiaMember_1402874" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_MetroenergiaMember_1402874" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YTECMember" xlink:label="loc_ypf_YTECMember_1402895" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YTECMember_1402895" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfVenturesMember" xlink:label="loc_ypf_YpfVenturesMember_1402899" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YpfVenturesMember_1402899" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_1402886" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YPFEEMember_1402886" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1402887" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_CTBarraganMember_1402887" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember_1402888" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_CDSMember_1402888" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AESAMember" xlink:label="loc_ypf_AESAMember_1402890" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_AESAMember_1402890" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfDigitalMember" xlink:label="loc_ypf_YpfDigitalMember_1403201" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402854" xlink:to="loc_ypf_YpfDigitalMember_1403201" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfSubsidiary" xlink:label="loc_ifrs-full_NameOfSubsidiary_1403063" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_NameOfSubsidiary_1403063" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfJointVenture" xlink:label="loc_ifrs-full_NameOfJointVenture_1403074" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_NameOfJointVenture_1403074" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfAssociate" xlink:label="loc_ifrs-full_NameOfAssociate_1403070" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_NameOfAssociate_1403070" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" xlink:label="loc_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary_1403069" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary_1403069" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOfJointVenture" xlink:label="loc_ifrs-full_CountryOfIncorporationOfJointVenture_1403075" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_CountryOfIncorporationOfJointVenture_1403075" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" xlink:label="loc_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate_1403071" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate_1403071" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xlink:label="loc_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary_1402779" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary_1402779" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture_1403076" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture_1403076" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate_1403072" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate_1403072" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402792" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402792" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointVenture_1403077" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointVenture_1403077" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInAssociate_1403073" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems_1402778" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInAssociate_1403073" use="optional" order="50" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" xlink:to="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_235" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_286" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_238" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_286" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_248" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_RangeAxis_248" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_249" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_248" xlink:to="loc_ifrs-full_RangeDomain_249" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_249_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_248" xlink:to="loc_ifrs-full_RangeDomain_249_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_239" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_239" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_239_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_242" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_239_default" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_243" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_MaturityAxis_243" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_232" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_243" xlink:to="loc_ifrs-full_MaturityDomain_232" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_232_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_243" xlink:to="loc_ifrs-full_MaturityDomain_232_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_240" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_240" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_240_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_233" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_240_default" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_250" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_SegmentsAxis_250" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_251" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SegmentsAxis_250" xlink:to="loc_ifrs-full_SegmentsDomain_251" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_251_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SegmentsAxis_250" xlink:to="loc_ifrs-full_SegmentsDomain_251_default" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_234" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_234" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_241" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_234" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_241" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_241_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_234" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_241_default" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis_252" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ypf_EventAfterReportingAxis_252" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_253" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_EventAfterReportingAxis_252" xlink:to="loc_ypf_EventAfterReportingMember_253" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_253_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_EventAfterReportingAxis_252" xlink:to="loc_ypf_EventAfterReportingMember_253_default" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_246" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_246" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_247" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_246" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_247" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_247_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_246" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_247_default" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_245" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_245" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_245_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_244" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_245_default" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain_636805" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain_636805" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain_636805_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis_636804" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain_636805_default" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_640257" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_NewIFRSsAxis_640257" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_640258" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NewIFRSsAxis_640257" xlink:to="loc_ifrs-full_NewIFRSsDomain_640258" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_640258_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NewIFRSsAxis_640257" xlink:to="loc_ifrs-full_NewIFRSsDomain_640258_default" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_861702" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_861702" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_861702_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_861701" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_861702_default" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_865000" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_GeographicalAreasAxis_865000" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_865001" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_865000" xlink:to="loc_ifrs-full_GeographicalAreasDomain_865001" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_865001_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_865000" xlink:to="loc_ifrs-full_GeographicalAreasDomain_865001_default" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember_1402107" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" xlink:to="loc_ifrs-full_RestatedMember_1402107" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember_1402107_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1402106" xlink:to="loc_ifrs-full_RestatedMember_1402107_default" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_237" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402359" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360_default" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember_1402361" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" xlink:to="loc_ypf_MetrogasMember_1402361" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YTECMember" xlink:label="loc_ypf_YTECMember_1402362" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" xlink:to="loc_ypf_YTECMember_1402362" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OPESSAMember" xlink:label="loc_ypf_OPESSAMember_1403192" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402360" xlink:to="loc_ypf_OPESSAMember_1403192" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402358" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402358" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" xlink:label="loc_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax_1403195" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems_236" xlink:to="loc_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax_1403195" use="optional" order="55" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_308" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_308" xlink:to="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_311" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" xlink:to="loc_ifrs-full_RangeAxis_311" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_312" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_311" xlink:to="loc_ifrs-full_RangeDomain_312" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_312_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_311" xlink:to="loc_ifrs-full_RangeDomain_312_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_322" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_312" xlink:to="loc_ifrs-full_BottomOfRangeMember_322" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_323" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_312" xlink:to="loc_ifrs-full_TopOfRangeMember_323" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable_309" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_307" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BuildingsMember" xlink:label="loc_ifrs-full_BuildingsMember_314" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_BuildingsMember_314" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember_315" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_MachineryMember_315" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OilAndGasAssetsMember" xlink:label="loc_ifrs-full_OilAndGasAssetsMember_316" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_OilAndGasAssetsMember_316" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember_317" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_VehiclesMember_317" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixturesAndFittingsMember" xlink:label="loc_ifrs-full_FixturesAndFittingsMember_318" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_FixturesAndFittingsMember_318" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OfficeEquipmentMember" xlink:label="loc_ifrs-full_OfficeEquipmentMember_319" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_OfficeEquipmentMember_319" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherPropertyPlantAndEquipmentMember" xlink:label="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_321" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_310" xlink:to="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_321" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment_1402292" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_308" xlink:to="loc_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment_1402292" use="optional" order="17" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_341" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_341" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_346" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_341" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_346" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_346_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_341" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_346_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1403296" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_346" xlink:to="loc_ypf_OLCLPMember_1403296" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403299" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_346" xlink:to="loc_ypf_VmiMember_1403299" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_357" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember_1402767" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" xlink:to="loc_ypf_MobilArgentinaSaMember_1402767" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataMember" xlink:label="loc_ypf_SierraChataMember_1402768" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_349" xlink:to="loc_ypf_SierraChataMember_1402768" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_348" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_348" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_348_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_342" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_348_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis_352" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_JointOperationsAxis_352" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_347" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointOperationsAxis_352" xlink:to="loc_ifrs-full_JointOperationsDomain_347" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_347_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointOperationsAxis_352" xlink:to="loc_ifrs-full_JointOperationsDomain_347_default" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_345" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_345" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_345_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_356" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_345_default" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_350" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_GeographicalAreasAxis_350" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_351" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_350" xlink:to="loc_ifrs-full_GeographicalAreasDomain_351" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_351_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_350" xlink:to="loc_ifrs-full_GeographicalAreasDomain_351_default" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_354" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_RangeAxis_354" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_355" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_354" xlink:to="loc_ifrs-full_RangeDomain_355" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_355_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_354" xlink:to="loc_ifrs-full_RangeDomain_355_default" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_353" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_MaturityAxis_353" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_340" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_353" xlink:to="loc_ifrs-full_MaturityDomain_340" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_340_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_353" xlink:to="loc_ifrs-full_MaturityDomain_340_default" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_636910" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_636910" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_636910_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_636909" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_636910_default" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_636916" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_CounterpartiesAxis_636916" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_636917" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CounterpartiesAxis_636916" xlink:to="loc_ifrs-full_CounterpartiesDomain_636917" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_636917_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CounterpartiesAxis_636916" xlink:to="loc_ifrs-full_CounterpartiesDomain_636917_default" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis_637108" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ypf_EventAfterReportingAxis_637108" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_637109" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_EventAfterReportingAxis_637108" xlink:to="loc_ypf_EventAfterReportingMember_637109" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_637109_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_EventAfterReportingAxis_637108" xlink:to="loc_ypf_EventAfterReportingMember_637109_default" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermAxis" xlink:label="loc_ypf_TypeOfTermAxis_862161" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ypf_TypeOfTermAxis_862161" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermMember" xlink:label="loc_ypf_TypeOfTermMember_862162" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_TypeOfTermAxis_862161" xlink:to="loc_ypf_TypeOfTermMember_862162" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermMember" xlink:label="loc_ypf_TypeOfTermMember_862162_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_TypeOfTermAxis_862161" xlink:to="loc_ypf_TypeOfTermMember_862162_default" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402547" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402547" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402547_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402546" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402547_default" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403308" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable_344" xlink:to="loc_ifrs-full_JointVenturesAxis_1403308" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403309" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_1403308" xlink:to="loc_ifrs-full_JointVenturesDomain_1403309" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403309_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_1403308" xlink:to="loc_ifrs-full_JointVenturesDomain_1403309_default" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1403310" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1403309" xlink:to="loc_ypf_RefinorMember_1403310" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember_1403315" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1403309" xlink:to="loc_ypf_ProfertilMember_1403315" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_374" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_374" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xlink:label="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1402545" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1402545" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInOtherOperatingResults" xlink:label="loc_ypf_IncreaseInOtherOperatingResults_1403297" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_IncreaseInOtherOperatingResults_1403297" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403298" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403298" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorkingInterestInUnconventionalExploitationConcessions" xlink:label="loc_ypf_WorkingInterestInUnconventionalExploitationConcessions_1403302" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_WorkingInterestInUnconventionalExploitationConcessions_1403302" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403306" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403306" use="optional" order="55" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" xlink:label="loc_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned_1403307" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned_1403307" use="optional" order="56" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashTransferred" xlink:label="loc_ifrs-full_CashTransferred_1403312" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ifrs-full_CashTransferred_1403312" use="optional" order="57" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" xlink:label="loc_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits_1403313" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits_1403313" use="optional" order="58" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xlink:label="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures_1403314" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures_1403314" use="optional" order="59" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisposalOfSubsidiariesSalePrice" xlink:label="loc_ypf_DisposalOfSubsidiariesSalePrice_1403316" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_DisposalOfSubsidiariesSalePrice_1403316" use="optional" order="60" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestDisposed" xlink:label="loc_ypf_PercentageOfOwnershipInterestDisposed_1403317" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_PercentageOfOwnershipInterestDisposed_1403317" use="optional" order="61" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" xlink:label="loc_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment_1403318" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment_1403318" use="optional" order="62" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" xlink:label="loc_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations_1403319" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems_343" xlink:to="loc_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations_1403319" use="optional" order="63" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis_1403267" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ifrs-full_MeasurementAxis_1403267" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_1403268" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MeasurementAxis_1403267" xlink:to="loc_ifrs-full_MeasurementDomain_1403268" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_1403268_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MeasurementAxis_1403267" xlink:to="loc_ifrs-full_MeasurementDomain_1403268_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AtFairValueMember" xlink:label="loc_ifrs-full_AtFairValueMember_1403269" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MeasurementDomain_1403268" xlink:to="loc_ifrs-full_AtFairValueMember_1403269" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationAxis" xlink:label="loc_ypf_BusinessCombinationAxis_1403258" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ypf_BusinessCombinationAxis_1403258" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationDomain" xlink:label="loc_ypf_BusinessCombinationDomain_1403259" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_BusinessCombinationAxis_1403258" xlink:to="loc_ypf_BusinessCombinationDomain_1403259" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationDomain" xlink:label="loc_ypf_BusinessCombinationDomain_1403259_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_BusinessCombinationAxis_1403258" xlink:to="loc_ypf_BusinessCombinationDomain_1403259_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember_1403261" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BusinessCombinationDomain_1403259" xlink:to="loc_ypf_MobilArgentinaSaMember_1403261" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1403262" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BusinessCombinationDomain_1403259" xlink:to="loc_ypf_OLCLPMember_1403262" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403263" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BusinessCombinationDomain_1403259" xlink:to="loc_ypf_VmiMember_1403263" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403293" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable_1403256" xlink:to="loc_ifrs-full_JointVenturesAxis_1403293" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403294" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_1403293" xlink:to="loc_ifrs-full_JointVenturesDomain_1403294" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403294_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_1403293" xlink:to="loc_ifrs-full_JointVenturesDomain_1403294_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_1403295" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1403294" xlink:to="loc_ypf_RefinorMember_1403295" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate_1403266" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate_1403266" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate_1403270" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate_1403270" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_InventoryRecognisedAsOfAcquisitionDate_1403289" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_InventoryRecognisedAsOfAcquisitionDate_1403289" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate_1403271" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate_1403271" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate_1403272" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate_1403272" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate_1403284" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate_1403284" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate_1403273" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate_1403273" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionsRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_ProvisionsRecognisedAsOfAcquisitionDate_1403274" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_ProvisionsRecognisedAsOfAcquisitionDate_1403274" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate_1403275" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate_1403275" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate_1403285" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate_1403285" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate_1403288" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate_1403288" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate_1403291" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate_1403291" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate_1403276" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate_1403276" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:label="loc_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed_1403277" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems_1403265" xlink:to="loc_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed_1403277" use="optional" order="29" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_466" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_srt_CurrencyAxis_466" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_465" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_466" xlink:to="loc_currency_AllCurrenciesDomain_465" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_465_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_466" xlink:to="loc_currency_AllCurrenciesDomain_465_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_USD" xlink:label="loc_currency_USD_473" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_465" xlink:to="loc_currency_USD_473" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_471" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_ifrs-full_TypesOfRisksAxis_471" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_472" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRisksAxis_471" xlink:to="loc_ifrs-full_TypesOfRisksDomain_472" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_472_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRisksAxis_471" xlink:to="loc_ifrs-full_TypesOfRisksDomain_472_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrencyRiskMember" xlink:label="loc_ifrs-full_CurrencyRiskMember_478" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRisksDomain_472" xlink:to="loc_ifrs-full_CurrencyRiskMember_478" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskAxis" xlink:label="loc_ypf_ForeignCurrencyRiskAxis_469" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_468" xlink:to="loc_ypf_ForeignCurrencyRiskAxis_469" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain_470" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ForeignCurrencyRiskAxis_469" xlink:to="loc_ypf_ForeignCurrencyRiskDomain_470" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain_470_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ForeignCurrencyRiskAxis_469" xlink:to="loc_ypf_ForeignCurrencyRiskDomain_470_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:label="loc_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_476" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_470" xlink:to="loc_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_476" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:label="loc_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_477" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_470" xlink:to="loc_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember_477" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xlink:label="loc_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency_474" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" xlink:to="loc_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency_474" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_475" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_467" xlink:to="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss_475" use="optional" order="16" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_485" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" xlink:to="loc_ifrs-full_TypesOfRisksAxis_485" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_486" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRisksAxis_485" xlink:to="loc_ifrs-full_TypesOfRisksDomain_486" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_486_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRisksAxis_485" xlink:to="loc_ifrs-full_TypesOfRisksDomain_486_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember_1403124" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRisksDomain_486" xlink:to="loc_ifrs-full_InterestRateRiskMember_1403124" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_484" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable_482" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_484" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_483" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_484" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_483" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_483_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_484" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_483_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixedInterestRateMember" xlink:label="loc_ifrs-full_FixedInterestRateMember_489" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_483" xlink:to="loc_ifrs-full_FixedInterestRateMember_489" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FloatingInterestRateMember" xlink:label="loc_ifrs-full_FloatingInterestRateMember_490" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_483" xlink:to="loc_ifrs-full_FloatingInterestRateMember_490" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets_487" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" xlink:to="loc_ifrs-full_FinancialAssets_487" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities_488" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems_481" xlink:to="loc_ifrs-full_FinancialLiabilities_488" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_504" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_TypesOfRisksAxis_504" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_505" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRisksAxis_504" xlink:to="loc_ifrs-full_TypesOfRisksDomain_505" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_505_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRisksAxis_504" xlink:to="loc_ifrs-full_TypesOfRisksDomain_505_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember_1403123" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRisksDomain_505" xlink:to="loc_ifrs-full_InterestRateRiskMember_1403123" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiquidityRiskMember" xlink:label="loc_ifrs-full_LiquidityRiskMember_530" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRisksDomain_505" xlink:to="loc_ifrs-full_LiquidityRiskMember_530" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_503" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_503" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_499" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_503" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_499" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_499_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_503" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_499_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SofrMember" xlink:label="loc_ypf_SofrMember_1329968" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_499" xlink:to="loc_ypf_SofrMember_1329968" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_501" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_RangeAxis_501" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_502" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_501" xlink:to="loc_ifrs-full_RangeDomain_502" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_502_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_501" xlink:to="loc_ifrs-full_RangeDomain_502_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_526" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_502" xlink:to="loc_ifrs-full_BottomOfRangeMember_526" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_527" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_502" xlink:to="loc_ifrs-full_TopOfRangeMember_527" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesAxis" xlink:label="loc_ifrs-full_InternalCreditGradesAxis_500" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_ifrs-full_InternalCreditGradesAxis_500" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesDomain" xlink:label="loc_ifrs-full_InternalCreditGradesDomain_498" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_InternalCreditGradesAxis_500" xlink:to="loc_ifrs-full_InternalCreditGradesDomain_498" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesDomain" xlink:label="loc_ifrs-full_InternalCreditGradesDomain_498_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_InternalCreditGradesAxis_500" xlink:to="loc_ifrs-full_InternalCreditGradesDomain_498_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xlink:label="loc_ypf_NationalGovernmentAndDirectAgenciesAccountsMember_523" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_InternalCreditGradesDomain_498" xlink:to="loc_ypf_NationalGovernmentAndDirectAgenciesAccountsMember_523" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_495" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_497" xlink:to="loc_srt_CurrencyAxis_495" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_494" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_495" xlink:to="loc_currency_AllCurrenciesDomain_494" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_494_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_495" xlink:to="loc_currency_AllCurrenciesDomain_494_default" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="loc_ifrs-full_BorrowingsAdjustmentToInterestRateBasis_509" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_BorrowingsAdjustmentToInterestRateBasis_509" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountAvailableForLiquidity" xlink:label="loc_ypf_AmountAvailableForLiquidity_513" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_AmountAvailableForLiquidity_513" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Cash" xlink:label="loc_ifrs-full_Cash_514" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_Cash_514" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCashAndCashEquivalents" xlink:label="loc_ifrs-full_OtherCashAndCashEquivalents_515" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_OtherCashAndCashEquivalents_515" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaximumExposureToCreditRisk" xlink:label="loc_ifrs-full_MaximumExposureToCreditRisk_518" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ifrs-full_MaximumExposureToCreditRisk_518" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivables" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivables_519" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_ProvisionForDoubtfulTradeReceivables_519" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOtherDoubtfulReceivables" xlink:label="loc_ypf_ProvisionForOtherDoubtfulReceivables_520" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_ProvisionForOtherDoubtfulReceivables_520" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteesGrantedByThirdParties" xlink:label="loc_ypf_GuaranteesGrantedByThirdParties_521" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_GuaranteesGrantedByThirdParties_521" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherInvestmentsFreelyAvailable" xlink:label="loc_ypf_OtherInvestmentsFreelyAvailable_1402652" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_OtherInvestmentsFreelyAvailable_1402652" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignExchangeRatePercentage" xlink:label="loc_ypf_ForeignExchangeRatePercentage_1384280" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_ForeignExchangeRatePercentage_1384280" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xlink:label="loc_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities_1402101" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities_1402101" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" xlink:label="loc_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation_1402654" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation_1402654" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorkingCapital" xlink:label="loc_ypf_WorkingCapital_1403226" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_496" xlink:to="loc_ypf_WorkingCapital_1403226" use="optional" order="35" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_537" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" xlink:to="loc_ifrs-full_TypesOfRisksAxis_537" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_538" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRisksAxis_537" xlink:to="loc_ifrs-full_TypesOfRisksDomain_538" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_538_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRisksAxis_537" xlink:to="loc_ifrs-full_TypesOfRisksDomain_538_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember_1403122" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRisksDomain_538" xlink:to="loc_ifrs-full_InterestRateRiskMember_1403122" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_536" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_534" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_536" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_535" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_536" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_535" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_535_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_536" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_535_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnNetIncomeMember" xlink:label="loc_ypf_PositiveVariationImpactOnNetIncomeMember_541" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_535" xlink:to="loc_ypf_PositiveVariationImpactOnNetIncomeMember_541" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnNetIncomeMember" xlink:label="loc_ypf_NegativeVariationImpactOnNetIncomeMember_542" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_535" xlink:to="loc_ypf_NegativeVariationImpactOnNetIncomeMember_542" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xlink:label="loc_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints_539" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" xlink:to="loc_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints_539" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xlink:label="loc_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax_540" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_533" xlink:to="loc_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax_540" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" xlink:to="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis_550" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" xlink:to="loc_ifrs-full_TypesOfRisksAxis_550" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_551" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRisksAxis_550" xlink:to="loc_ifrs-full_TypesOfRisksDomain_551" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain_551_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRisksAxis_550" xlink:to="loc_ifrs-full_TypesOfRisksDomain_551_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PriceRiskMember" xlink:label="loc_ypf_PriceRiskMember_556" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRisksDomain_551" xlink:to="loc_ypf_PriceRiskMember_556" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskAxis" xlink:label="loc_ypf_ForeignCurrencyRiskAxis_548" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable_547" xlink:to="loc_ypf_ForeignCurrencyRiskAxis_548" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain_549" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ForeignCurrencyRiskAxis_548" xlink:to="loc_ypf_ForeignCurrencyRiskDomain_549" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain_549_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ForeignCurrencyRiskAxis_548" xlink:to="loc_ypf_ForeignCurrencyRiskDomain_549_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:label="loc_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402664" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_549" xlink:to="loc_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402664" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:label="loc_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402665" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ForeignCurrencyRiskDomain_549" xlink:to="loc_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember_1402665" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xlink:label="loc_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments_552" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" xlink:to="loc_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments_552" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_553" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems_546" xlink:to="loc_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_553" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_562" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable_561" xlink:to="loc_ifrs-full_MaturityAxis_562" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_559" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_562" xlink:to="loc_ifrs-full_MaturityDomain_559" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_559_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_562" xlink:to="loc_ifrs-full_MaturityDomain_559_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="loc_ifrs-full_NotLaterThanOneYearMember_563" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_NotLaterThanOneYearMember_563" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_564" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_564" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_565" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_565" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_566" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_566" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_567" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_567" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFiveYearsMember_568" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_559" xlink:to="loc_ifrs-full_LaterThanFiveYearsMember_568" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossLeaseLiabilities" xlink:label="loc_ifrs-full_GrossLeaseLiabilities_630969" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_GrossLeaseLiabilities_630969" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LoansReceived" xlink:label="loc_ifrs-full_LoansReceived_569" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_LoansReceived_569" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinancialLiabilities" xlink:label="loc_ifrs-full_OtherFinancialLiabilities_570" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_OtherFinancialLiabilities_570" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayables" xlink:label="loc_ifrs-full_TradeAndOtherPayables_571" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_TradeAndOtherPayables_571" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities_572" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems_560" xlink:to="loc_ifrs-full_FinancialLiabilities_572" use="optional" order="15" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureLineItems" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems_577" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureTable" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems_577" xlink:to="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureTable_578" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_575" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember_579" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" xlink:to="loc_ypf_CashAndCashEquivalentMember_579" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentInFinancialAssetsMember" xlink:label="loc_ypf_InvestmentInFinancialAssetsMember_1329848" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" xlink:to="loc_ypf_InvestmentInFinancialAssetsMember_1329848" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialAssetMember" xlink:label="loc_ypf_OtherFinancialAssetMember_580" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_576" xlink:to="loc_ypf_OtherFinancialAssetMember_580" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaximumExposureToCreditRisk" xlink:label="loc_ifrs-full_MaximumExposureToCreditRisk_581" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems_577" xlink:to="loc_ifrs-full_MaximumExposureToCreditRisk_581" use="optional" order="8" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_585" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_585" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_584" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentTradeReceivableMember" xlink:label="loc_ypf_CurrentTradeReceivableMember_591" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" xlink:to="loc_ypf_CurrentTradeReceivableMember_591" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentReceivablesMember" xlink:label="loc_ypf_OtherCurrentReceivablesMember_592" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_587" xlink:to="loc_ypf_OtherCurrentReceivablesMember_592" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis_588" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable_586" xlink:to="loc_ifrs-full_PastDueStatusAxis_588" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_589" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_PastDueStatusAxis_588" xlink:to="loc_ifrs-full_PastDueStatusDomain_589" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_589_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_PastDueStatusAxis_588" xlink:to="loc_ifrs-full_PastDueStatusDomain_589_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanThreeMonthsMember" xlink:label="loc_ifrs-full_NotLaterThanThreeMonthsMember_593" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_PastDueStatusDomain_589" xlink:to="loc_ifrs-full_NotLaterThanThreeMonthsMember_593" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BetweenThreeAndSixMonthsMember" xlink:label="loc_ypf_BetweenThreeAndSixMonthsMember_594" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_PastDueStatusDomain_589" xlink:to="loc_ypf_BetweenThreeAndSixMonthsMember_594" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="loc_ifrs-full_LaterThanSixMonthsMember_595" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_PastDueStatusDomain_589" xlink:to="loc_ifrs-full_LaterThanSixMonthsMember_595" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets_590" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_585" xlink:to="loc_ifrs-full_FinancialAssets_590" use="optional" order="13" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsAxis" xlink:label="loc_ifrs-full_SegmentConsolidationItemsAxis_601" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" xlink:to="loc_ifrs-full_SegmentConsolidationItemsAxis_601" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="loc_ifrs-full_SegmentConsolidationItemsDomain_600" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SegmentConsolidationItemsAxis_601" xlink:to="loc_ifrs-full_SegmentConsolidationItemsDomain_600" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="loc_ifrs-full_SegmentConsolidationItemsDomain_600_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SegmentConsolidationItemsAxis_601" xlink:to="loc_ifrs-full_SegmentConsolidationItemsDomain_600_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OperatingSegmentsMember" xlink:label="loc_ifrs-full_OperatingSegmentsMember_614" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentConsolidationItemsDomain_600" xlink:to="loc_ifrs-full_OperatingSegmentsMember_614" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:label="loc_ifrs-full_EliminationOfIntersegmentAmountsMember_615" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentConsolidationItemsDomain_600" xlink:to="loc_ifrs-full_EliminationOfIntersegmentAmountsMember_615" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_602" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsTable_599" xlink:to="loc_ifrs-full_SegmentsAxis_602" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_603" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SegmentsAxis_602" xlink:to="loc_ifrs-full_SegmentsDomain_603" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_603_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SegmentsAxis_602" xlink:to="loc_ifrs-full_SegmentsDomain_603_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_616" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_UpstreamMember_616" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_618" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_MidstreamAndDownstreamMember_618" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1403415" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_LNGandIntegratedGasMember_1403415" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403416" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_NewEnergiesMember_1403416" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_619" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_603" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_619" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfOilAndGasProducts" xlink:label="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts_604" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts_604" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions_605" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions_605" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_606" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_Revenue_606" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_607" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_607" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_608" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod_608" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost_1402147" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_FinanceIncomeCost_1402147" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_1402134" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_1402134" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1402135" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_1402135" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_1402136" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ProfitLoss_1402136" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_612" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_612" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="loc_ifrs-full_AdditionsToRightofuseAssets_1402140" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_AdditionsToRightofuseAssets_1402140" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughbusinesscombinations" xlink:label="loc_ypf_Increasedecreasethroughbusinesscombinations_1403228" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ypf_Increasedecreasethroughbusinesscombinations_1403228" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_613" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_Assets_613" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_609" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_609" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill_1402143" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill_1402143" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_1402144" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_1402144" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss_611" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss_611" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_1403229" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems_598" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss_1403229" use="optional" order="32" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_642_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_638" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_642_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesMember" xlink:label="loc_ifrs-full_LeaseLiabilitiesMember_631076" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ifrs-full_LeaseLiabilitiesMember_631076" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Loans1Member" xlink:label="loc_ypf_Loans1Member_657" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ypf_Loans1Member_657" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialLiabilitiesOtherMember" xlink:label="loc_ypf_FinancialLiabilitiesOtherMember_658" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ypf_FinancialLiabilitiesOtherMember_658" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountsPayable1Member" xlink:label="loc_ypf_AccountsPayable1Member_659" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_642" xlink:to="loc_ypf_AccountsPayable1Member_659" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_640" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_637" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641_default" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherReceivablesMember" xlink:label="loc_ypf_OtherReceivablesMember_653" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ypf_OtherReceivablesMember_653" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="loc_ifrs-full_TradeReceivablesMember_654" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ifrs-full_TradeReceivablesMember_654" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsAndFinancialAssetsMember" xlink:label="loc_ypf_InvestmentsAndFinancialAssetsMember_655" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ypf_InvestmentsAndFinancialAssetsMember_655" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember_656" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_641" xlink:to="loc_ypf_CashAndCashEquivalentMember_656" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCost_643" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialAssetsAtAmortisedCost_643" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_644" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_644" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets_645" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialAssets_645" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNonfinancialAssets" xlink:label="loc_ifrs-full_OtherNonfinancialAssets_646" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_OtherNonfinancialAssets_646" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssets" xlink:label="loc_ypf_FinancialAndNonFinancialAssets_647" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ypf_FinancialAndNonFinancialAssets_647" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilitiesAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialLiabilitiesAtAmortisedCost_648" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialLiabilitiesAtAmortisedCost_648" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss_649" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss_649" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities_650" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ifrs-full_FinancialLiabilities_650" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonFinancialLiabilities" xlink:label="loc_ypf_NonFinancialLiabilities_651" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ypf_NonFinancialLiabilities_651" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialLiabilities" xlink:label="loc_ypf_FinancialAndNonFinancialLiabilities_652" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_639" xlink:to="loc_ypf_FinancialAndNonFinancialLiabilities_652" use="optional" order="25" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_665" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_662" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xlink:label="loc_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember_666" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" xlink:to="loc_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember_666" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xlink:label="loc_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember_667" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_663" xlink:to="loc_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember_667" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome_1403010" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_FinanceIncome_1403010" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts_1403011" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_FinanceCosts_1403011" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetForeignExchangeGainLoss" xlink:label="loc_ypf_NetForeignExchangeGainLoss_671" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_NetForeignExchangeGainLoss_671" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_672" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss_672" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnDerivativeFinancialInstruments" xlink:label="loc_ypf_GainLossOnDerivativeFinancialInstruments_673" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_GainLossOnDerivativeFinancialInstruments_673" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgrammeOtherIncome" xlink:label="loc_ypf_ExportIncreaseProgrammeOtherIncome_1402552" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_ExportIncreaseProgrammeOtherIncome_1402552" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xlink:label="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer_861599" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer_861599" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromNetMonetaryPosition" xlink:label="loc_ypf_ResultFromNetMonetaryPosition_674" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ypf_ResultFromNetMonetaryPosition_674" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost_675" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_664" xlink:to="loc_ifrs-full_FinanceIncomeCost_675" use="optional" order="15" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_682" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_682" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_685" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level1OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level1OfFairValueHierarchyMember_686" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" xlink:to="loc_ifrs-full_Level1OfFairValueHierarchyMember_686" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level2OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level2OfFairValueHierarchyMember_637016" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" xlink:to="loc_ifrs-full_Level2OfFairValueHierarchyMember_637016" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level3OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level3OfFairValueHierarchyMember_637017" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_678" xlink:to="loc_ifrs-full_Level3OfFairValueHierarchyMember_637017" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_681" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684_default" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicSecuritiesMember" xlink:label="loc_ypf_PublicSecuritiesMember_690" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" xlink:to="loc_ypf_PublicSecuritiesMember_690" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MutualFundsMember" xlink:label="loc_ypf_MutualFundsMember_691" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" xlink:to="loc_ypf_MutualFundsMember_691" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PrivateSecuritiesMember" xlink:label="loc_ypf_PrivateSecuritiesMember_1403012" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_684" xlink:to="loc_ypf_PrivateSecuritiesMember_1403012" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_679" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_683" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_679" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_680" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_679" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_680" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_680_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_679" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_680_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInFinancialAssetsMember" xlink:label="loc_ypf_InvestmentsInFinancialAssetsMember_687" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_680" xlink:to="loc_ypf_InvestmentsInFinancialAssetsMember_687" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember_688" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_680" xlink:to="loc_ypf_CashAndCashEquivalentMember_688" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_689" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_682" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss_689" use="optional" order="19" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_709" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_709" xlink:to="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis_711" xlink:to="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level1OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level1OfFairValueHierarchyMember_712" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain_706" xlink:to="loc_ifrs-full_Level1OfFairValueHierarchyMember_712" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable_710" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_707" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedFairValueOfLoansMember" xlink:label="loc_ypf_EstimatedFairValueOfLoansMember_713" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_708" xlink:to="loc_ypf_EstimatedFairValueOfLoansMember_713" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedFairValueOfLoans" xlink:label="loc_ypf_EstimatedFairValueOfLoans_714" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems_709" xlink:to="loc_ypf_EstimatedFairValueOfLoans_714" use="optional" order="10" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" xlink:to="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" xlink:to="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis_719" xlink:to="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServiceConcessionRightsMember" xlink:label="loc_ifrs-full_ServiceConcessionRightsMember_731" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" xlink:to="loc_ifrs-full_ServiceConcessionRightsMember_731" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MiningRightsMember" xlink:label="loc_ifrs-full_MiningRightsMember_732" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" xlink:to="loc_ifrs-full_MiningRightsMember_732" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherIntangibleAssetsMember" xlink:label="loc_ifrs-full_OtherIntangibleAssetsMember_733" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain_722" xlink:to="loc_ifrs-full_OtherIntangibleAssetsMember_733" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable_721" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_718" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" xlink:to="loc_ifrs-full_CarryingAmountMember_718" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_718_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_717" xlink:to="loc_ifrs-full_CarryingAmountMember_718_default" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_723" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_718" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_723" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember_724" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_718" xlink:to="loc_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember_724" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill_725" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IntangibleAssetsAndGoodwill_725" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill_726" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill_726" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill_1403252" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill_1403252" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill_727" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill_727" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill_728" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill_728" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xlink:label="loc_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets_729" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems_720" xlink:to="loc_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets_729" use="optional" order="18" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_744" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LandAndBuildingsMember" xlink:label="loc_ifrs-full_LandAndBuildingsMember_759" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_LandAndBuildingsMember_759" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiningPropertyWellsAndRelatedEquipmentMember" xlink:label="loc_ypf_MiningPropertyWellsAndRelatedEquipmentMember_760" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ypf_MiningPropertyWellsAndRelatedEquipmentMember_760" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember_761" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_MachineryMember_761" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember_762" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_VehiclesMember_762" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaterialsAndEquipmentInWarehouseMember" xlink:label="loc_ypf_MaterialsAndEquipmentInWarehouseMember_763" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ypf_MaterialsAndEquipmentInWarehouseMember_763" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConstructionInProgressMember" xlink:label="loc_ifrs-full_ConstructionInProgressMember_764" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_ConstructionInProgressMember_764" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingInProgressMember" xlink:label="loc_ypf_ExploratoryDrillingInProgressMember_765" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ypf_ExploratoryDrillingInProgressMember_765" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixturesAndFittingsMember" xlink:label="loc_ifrs-full_FixturesAndFittingsMember_766" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_FixturesAndFittingsMember_766" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OfficeEquipmentMember" xlink:label="loc_ifrs-full_OfficeEquipmentMember_767" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_OfficeEquipmentMember_767" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OilAndGasAssetsMember" xlink:label="loc_ifrs-full_OilAndGasAssetsMember_768" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_OilAndGasAssetsMember_768" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherPropertyPlantAndEquipmentMember" xlink:label="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_770" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_747" xlink:to="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember_770" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_746" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_743" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" xlink:to="loc_ifrs-full_CarryingAmountMember_743" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_743_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_742" xlink:to="loc_ifrs-full_CarryingAmountMember_743_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_748" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_743" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_748" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_749" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_743" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_749" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xlink:label="loc_ypf_NetBookValueOfPropertyPlantAndEquipmentMember_750" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_743" xlink:to="loc_ypf_NetBookValueOfPropertyPlantAndEquipmentMember_750" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_751" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_751" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_752" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_752" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_1403395" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment_1403395" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_753" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_753" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_754" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_754" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreasesAndReclassifications" xlink:label="loc_ypf_DecreasesAndReclassifications_755" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_745" xlink:to="loc_ypf_DecreasesAndReclassifications_755" use="optional" order="27" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_777" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentMember_800" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_782" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentMember_800" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403396" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403396" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403397" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403396" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403397" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403397_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403396" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403397_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1403399" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403397" xlink:to="loc_ypf_MatureFieldsProjectMember_1403399" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChanarMember" xlink:label="loc_ypf_AguadaDelChanarMember_1403398" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403397" xlink:to="loc_ypf_AguadaDelChanarMember_1403398" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember_1403400" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403397" xlink:to="loc_ypf_OptimizationPlanMember_1403400" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_776" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" xlink:to="loc_ifrs-full_CarryingAmountMember_776" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_776_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_775" xlink:to="loc_ifrs-full_CarryingAmountMember_776_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_786" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_776" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_786" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403149" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_776" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403149" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_774" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_774" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_781" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_774" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_781" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_781_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_774" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_781_default" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_784" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_784" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_784_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_778" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_784_default" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis_783" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_MeasurementAxis_783" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_773" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MeasurementAxis_783" xlink:to="loc_ifrs-full_MeasurementDomain_773" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_773_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MeasurementAxis_783" xlink:to="loc_ifrs-full_MeasurementDomain_773_default" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_861649" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_780" xlink:to="loc_ifrs-full_GeographicalAreasAxis_861649" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_861650" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_861649" xlink:to="loc_ifrs-full_GeographicalAreasDomain_861650" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_861650_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_861649" xlink:to="loc_ifrs-full_GeographicalAreasDomain_861650_default" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralProperty" xlink:label="loc_ypf_MineralProperty_788" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_MineralProperty_788" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingInProgress" xlink:label="loc_ypf_ExploratoryDrillingInProgress_789" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_ExploratoryDrillingInProgress_789" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingPropertyInProgress" xlink:label="loc_ypf_DrillingPropertyInProgress_790" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_DrillingPropertyInProgress_790" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingWells" xlink:label="loc_ypf_ExploratoryDrillingWells_791" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_ExploratoryDrillingWells_791" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransferredToProvedProperties" xlink:label="loc_ypf_TransferredToProvedProperties_792" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_TransferredToProvedProperties_792" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment_793" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment_793" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_794" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_794" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_795" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_795" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale_798" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale_798" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" xlink:label="loc_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed_637027" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed_637027" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" xlink:label="loc_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities_637028" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities_637028" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfAmortizationOfRightofuseAssets" xlink:label="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637029" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637029" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xlink:label="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities_637030" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_779" xlink:to="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities_637030" use="optional" order="41" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" xlink:label="loc_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation_805" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation_805" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingCostsCapitalised" xlink:label="loc_ifrs-full_BorrowingCostsCapitalised_806" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_BorrowingCostsCapitalised_806" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment_1402116" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment_1402116" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402119" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasNeuquinaBasinMember" xlink:label="loc_ypf_CguGasNeuquinaBasinMember_1402121" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasNeuquinaBasinMember_1402121" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasAustralBasinMember" xlink:label="loc_ypf_CguGasAustralBasinMember_1402123" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasAustralBasinMember_1402123" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" xlink:label="loc_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember_1402559" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember_1402559" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasNorthwestBasinMember" xlink:label="loc_ypf_CguGasNorthwestBasinMember_1402956" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasNorthwestBasinMember_1402956" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasCuencaNeuquinaMember" xlink:label="loc_ypf_CguGasCuencaNeuquinaMember_1403405" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasCuencaNeuquinaMember_1403405" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasCuencaNoroesteMember" xlink:label="loc_ypf_CguGasCuencaNoroesteMember_1403406" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402120" xlink:to="loc_ypf_CguGasCuencaNoroesteMember_1403406" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1402130" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_RangeAxis_1402130" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402131" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1402130" xlink:to="loc_ifrs-full_RangeDomain_1402131" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402131_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1402130" xlink:to="loc_ifrs-full_RangeDomain_1402131_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1402138" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1402117" xlink:to="loc_ifrs-full_MaturityAxis_1402138" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1402139" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_1402138" xlink:to="loc_ifrs-full_MaturityDomain_1402139" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1402139_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_1402138" xlink:to="loc_ifrs-full_MaturityDomain_1402139_default" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xlink:label="loc_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax_1402122" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax_1402122" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" xlink:label="loc_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit_1402128" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit_1402128" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xlink:label="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402137" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402137" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecoverableValueAfterTaxes" xlink:label="loc_ypf_RecoverableValueAfterTaxes_1402328" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ypf_RecoverableValueAfterTaxes_1402328" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetAssetsLiabilities" xlink:label="loc_ifrs-full_NetAssetsLiabilities_1403407" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1402118" xlink:to="loc_ifrs-full_NetAssetsLiabilities_1403407" use="optional" order="24" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_812" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_810" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" xlink:to="loc_ifrs-full_CarryingAmountMember_810" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_810_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_809" xlink:to="loc_ifrs-full_CarryingAmountMember_810_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember_813" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_810" xlink:to="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember_813" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_814" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_814" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_815" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_815" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xlink:label="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403403" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403403" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xlink:label="loc_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment_1332333" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment_1332333" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_818" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_818" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332332" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332332" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1403402" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_811" xlink:to="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1403402" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_826" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_824" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" xlink:to="loc_ifrs-full_CarryingAmountMember_824" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_824_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_823" xlink:to="loc_ifrs-full_CarryingAmountMember_824_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xlink:label="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember_827" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_824" xlink:to="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember_827" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_828" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_828" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_829" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment_829" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xlink:label="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403404" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss_1403404" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_831" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_831" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_832" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment_832" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332319" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment_1332319" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1402954" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_825" xlink:to="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment_1402954" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1403422" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentAssociatedWithAssets" xlink:label="loc_ypf_ProvisionForImpairmentAssociatedWithAssets_1403420" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1403422" xlink:to="loc_ypf_ProvisionForImpairmentAssociatedWithAssets_1403420" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems_1403422" xlink:to="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403423" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable_1403421" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403423" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403424" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403423" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403424" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403424_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403423" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403424_default" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1403425" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403424" xlink:to="loc_ypf_MatureFieldsProjectMember_1403425" use="optional" order="6" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasLineItems" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems_1402417" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasTable" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems_1402417" xlink:to="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402413" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasTable_1402412" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402413" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402414" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402413" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402414" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402414_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402413" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402414_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_1402415" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402414" xlink:to="loc_country_AR_1402415" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MercosurAndAssociatesCountriesMember" xlink:label="loc_ypf_MercosurAndAssociatesCountriesMember_1402416" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402414" xlink:to="loc_ypf_MercosurAndAssociatesCountriesMember_1402416" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_1402418" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems_1402417" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_1402418" use="optional" order="7" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_1402514" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_1402514" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1402506" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_1402505" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1402506" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1402507" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1402506" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1402507" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1402507_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1402506" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1402507_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploitationEquipmentAndFacilitiesMember" xlink:label="loc_ypf_ExploitationEquipmentAndFacilitiesMember_1402516" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_ExploitationEquipmentAndFacilitiesMember_1402516" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xlink:label="loc_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember_1402508" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember_1402508" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RegasificationAndGasLiquefactionEquipmentMember" xlink:label="loc_ypf_RegasificationAndGasLiquefactionEquipmentMember_1402509" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_RegasificationAndGasLiquefactionEquipmentMember_1402509" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VesselsAndBargesForHydrocarbonTransportationMember" xlink:label="loc_ypf_VesselsAndBargesForHydrocarbonTransportationMember_1402510" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_VesselsAndBargesForHydrocarbonTransportationMember_1402510" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TruckFleetsMember" xlink:label="loc_ypf_TruckFleetsMember_1402511" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_TruckFleetsMember_1402511" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_1402661" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_GasStationsMember_1402661" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" xlink:label="loc_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember_1402512" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember_1402512" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitsForTheUseOfPortsAndLandMember" xlink:label="loc_ypf_PermitsForTheUseOfPortsAndLandMember_1402513" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402507" xlink:to="loc_ypf_PermitsForTheUseOfPortsAndLandMember_1402513" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AggregateLeaseTermLease" xlink:label="loc_ypf_AggregateLeaseTermLease_1402515" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_1402514" xlink:to="loc_ypf_AggregateLeaseTermLease_1402515" use="optional" order="13" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_637428" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" xlink:to="loc_ifrs-full_CarryingAmountMember_637428" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_637428_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_637423" xlink:to="loc_ifrs-full_CarryingAmountMember_637428_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_637429" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_637428" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_637429" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_637430" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_637428" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_637430" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_637421" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_NewIFRSsAxis_637421" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_637422" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NewIFRSsAxis_637421" xlink:to="loc_ifrs-full_NewIFRSsDomain_637422" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_637422_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NewIFRSsAxis_637421" xlink:to="loc_ifrs-full_NewIFRSsDomain_637422_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_637383" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_637378" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_637383" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_637384" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_637383" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_637384" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_637384_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_637383" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_637384_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LandAndBuildingsMember" xlink:label="loc_ifrs-full_LandAndBuildingsMember_637413" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ifrs-full_LandAndBuildingsMember_637413" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploitationFacilitiesAndEquipmentMember" xlink:label="loc_ypf_ExploitationFacilitiesAndEquipmentMember_637415" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ypf_ExploitationFacilitiesAndEquipmentMember_637415" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember_637416" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ifrs-full_MachineryMember_637416" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_637419" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ypf_GasStationsMember_637419" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember_637420" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_637384" xlink:to="loc_ifrs-full_VehiclesMember_637420" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="loc_ifrs-full_RightofuseAssets_637434" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ifrs-full_RightofuseAssets_637434" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="loc_ifrs-full_AdditionsToRightofuseAssets_637437" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ifrs-full_AdditionsToRightofuseAssets_637437" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets_637435" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets_637435" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets_637438" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets_637438" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets_637441" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets_637441" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseInRightOfUseAssets_637448" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_637381" xlink:to="loc_ypf_IncreaseDecreaseInRightOfUseAssets_637448" use="optional" order="23" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_637507" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_637507" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfAmortizationOfRightofuseAssets" xlink:label="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637511" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" xlink:to="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets_637511" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems_861639" xlink:to="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_861631" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" xlink:to="loc_ifrs-full_CarryingAmountMember_861631" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_861631_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_861630" xlink:to="loc_ifrs-full_CarryingAmountMember_861631_default" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_861635" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable_861629" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_861635" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_861636" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_861635" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_861636" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_861636_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_861635" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_861636_default" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAssociatesAndJointVenturesLineItems" xlink:label="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_883" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="loc_ifrs-full_AssociatesMember_893" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_887" xlink:to="loc_ifrs-full_AssociatesMember_893" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_888" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_885" xlink:to="loc_ifrs-full_JointVenturesAxis_888" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_886" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_888" xlink:to="loc_ifrs-full_JointVenturesDomain_886" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_886_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_888" xlink:to="loc_ifrs-full_JointVenturesDomain_886_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesMember" xlink:label="loc_ifrs-full_JointVenturesMember_892" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_886" xlink:to="loc_ifrs-full_JointVenturesMember_892" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_889" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ifrs-full_ProfitLoss_889" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_890" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_890" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome_891" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems_884" xlink:to="loc_ifrs-full_ComprehensiveIncome_891" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureofYPFEELineItems" xlink:label="loc_ypf_DisclosureofYPFEELineItems_896" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xlink:label="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable_897" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_899" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_916" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_898" xlink:to="loc_ypf_YPFEEMember_916" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets_900" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_NoncurrentAssets_900" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_1402158" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CashAndCashEquivalents_1402158" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentAssets" xlink:label="loc_ifrs-full_OtherCurrentAssets_1402159" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherCurrentAssets_1402159" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets_901" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CurrentAssets_901" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_902" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Assets_902" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialLiabilities" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities_1402151" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_NoncurrentFinancialLiabilities_1402151" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentNonfinancialLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialLiabilities_1402152" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherNoncurrentNonfinancialLiabilities_1402152" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities_903" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_NoncurrentLiabilities_903" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialLiabilities" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities_1402168" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CurrentFinancialLiabilities_1402168" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentNonfinancialLiabilities" xlink:label="loc_ifrs-full_OtherCurrentNonfinancialLiabilities_1402153" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherCurrentNonfinancialLiabilities_1402153" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities_904" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_CurrentLiabilities_904" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_905" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Liabilities_905" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity_906" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Equity_906" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_1402154" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities_1402154" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClosingForeignExchangeRate" xlink:label="loc_ifrs-full_ClosingForeignExchangeRate_1402155" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ClosingForeignExchangeRate_1402155" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_907" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_Revenue_907" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromInterest" xlink:label="loc_ifrs-full_RevenueFromInterest_1402172" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_RevenueFromInterest_1402172" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationAndAmortisationExpense" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense_1402174" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_DepreciationAndAmortisationExpense_1402174" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestExpense" xlink:label="loc_ifrs-full_InterestExpense_1402173" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_InterestExpense_1402173" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_914" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_914" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities_910" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities_910" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss_915" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ProfitLoss_915" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome_1402175" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_OtherComprehensiveIncome_1402175" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome_1402176" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_ComprehensiveIncome_1402176" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AverageForeignExchangeRate" xlink:label="loc_ifrs-full_AverageForeignExchangeRate_1402178" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureofYPFEELineItems_896" xlink:to="loc_ifrs-full_AverageForeignExchangeRate_1402178" use="optional" order="30" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems_1402784" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems_1402784" xlink:to="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_1402785" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember_1402787" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_OldelvalMember_1402787" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember_1402788" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_TermapMember_1402788" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember_1403231" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_OTAMERICAMember_1403231" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember_1402790" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_CDSMember_1402790" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember_1402791" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_YPFGasMember_1402791" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember_1403230" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_1402786" xlink:to="loc_ypf_VmosMember_1403230" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1402793" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable_1402783" xlink:to="loc_ifrs-full_JointVenturesAxis_1402793" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1402794" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_1402793" xlink:to="loc_ifrs-full_JointVenturesDomain_1402794" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1402794_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_1402793" xlink:to="loc_ifrs-full_JointVenturesDomain_1402794_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_1402795" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_YPFEEMember_1402795" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember_1402796" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_MEGAMember_1402796" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember_1402797" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_ProfertilMember_1402797" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_1402798" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_OLCLPMember_1402798" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1402799" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_CTBarraganMember_1402799" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCompaniesMember" xlink:label="loc_ypf_OtherCompaniesMember_1402800" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1402794" xlink:to="loc_ypf_OtherCompaniesMember_1402800" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_1402801" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems_1402784" xlink:to="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates_1402801" use="optional" order="20" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402824" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402826" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402825" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402826" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1402827" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1402827" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1402829" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1402827" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1402829" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1402829_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1402827" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1402829_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1402832" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402829" xlink:to="loc_ypf_MatureFieldsProjectMember_1402832" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1402847" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" xlink:to="loc_ypf_MatureFieldsProjectMember_1402847" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_1402833" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1402829" xlink:to="loc_ypf_GasStationsMember_1402833" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402836" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfBrazilMember" xlink:label="loc_ypf_YpfBrazilMember_1402838" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402837" xlink:to="loc_ypf_YpfBrazilMember_1402838" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402844" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember_1403108" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember_1403108" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xlink:label="loc_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember_1403109" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402846" xlink:to="loc_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember_1403109" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_1402855" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402821" xlink:to="loc_ifrs-full_SegmentsAxis_1402855" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_1402856" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SegmentsAxis_1402855" xlink:to="loc_ifrs-full_SegmentsDomain_1402856" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_1402856_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SegmentsAxis_1402855" xlink:to="loc_ifrs-full_SegmentsDomain_1402856_default" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1402858" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_1402856" xlink:to="loc_ypf_UpstreamMember_1402858" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1402859" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_1402856" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1402859" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_1402848" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_1402848" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_1402850" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_Assets_1402850" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1402851" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_Provisions_1402851" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_1402852" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402822" xlink:to="loc_ifrs-full_Liabilities_1402852" use="optional" order="29" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable_1402877" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1402880" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EscalanteElTrebolMember" xlink:label="loc_ypf_EscalanteElTrebolMember_1402883" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_EscalanteElTrebolMember_1402883" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LlancaneloAndLlancaneloRMember" xlink:label="loc_ypf_LlancaneloAndLlancaneloRMember_1402897" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_LlancaneloAndLlancaneloRMember_1402897" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstacionFernandezOroMember" xlink:label="loc_ypf_EstacionFernandezOroMember_1402904" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_EstacionFernandezOroMember_1402904" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CampamentoCentralCanadonPerdidoMember" xlink:label="loc_ypf_CampamentoCentralCanadonPerdidoMember_1402905" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_CampamentoCentralCanadonPerdidoMember_1402905" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" xlink:label="loc_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember_1403179" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember_1403179" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" xlink:label="loc_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember_1403180" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember_1403180" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AlNortedelaDorsalOctgonoandDadnMember" xlink:label="loc_ypf_AlNortedelaDorsalOctgonoandDadnMember_1403181" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_AlNortedelaDorsalOctgonoandDadnMember_1403181" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" xlink:label="loc_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember_1403182" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember_1403182" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" xlink:label="loc_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember_1403183" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember_1403183" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElTordilloPuestoQuirogaandLaTaperaMember" xlink:label="loc_ypf_ElTordilloPuestoQuirogaandLaTaperaMember_1403185" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_ElTordilloPuestoQuirogaandLaTaperaMember_1403185" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" xlink:label="loc_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember_1403187" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1402881" xlink:to="loc_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember_1403187" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402879" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1402879" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfTransferOfShares" xlink:label="loc_ypf_ProportionOfTransferOfShares_1402891" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ypf_ProportionOfTransferOfShares_1402891" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfWorkingInterestInSubsidiary" xlink:label="loc_ypf_ProportionOfWorkingInterestInSubsidiary_1402907" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ypf_ProportionOfWorkingInterestInSubsidiary_1402907" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xlink:label="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402909" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems_1402878" xlink:to="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse_1402909" use="optional" order="19" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesLineItems" xlink:label="loc_ypf_DisclosureOfInventoriesLineItems_978" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesTable" xlink:label="loc_ypf_DisclosureOfInventoriesTable_979" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfInventoriesLineItems_978" xlink:to="loc_ypf_DisclosureOfInventoriesTable_979" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfInventoriesTable_979" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_977" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinishedGoodsMember" xlink:label="loc_ypf_FinishedGoodsMember_1402351" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_FinishedGoodsMember_1402351" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOilAndCommercializedNaturalGasMember" xlink:label="loc_ypf_CrudeOilAndCommercializedNaturalGasMember_983" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_CrudeOilAndCommercializedNaturalGasMember_983" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductsInProcessMember" xlink:label="loc_ypf_ProductsInProcessMember_984" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_ProductsInProcessMember_984" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RawMaterialsPackagingMaterialsAndOthersMember" xlink:label="loc_ypf_RawMaterialsPackagingMaterialsAndOthersMember_985" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_980" xlink:to="loc_ypf_RawMaterialsPackagingMaterialsAndOthersMember_985" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories_981" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfInventoriesLineItems_978" xlink:to="loc_ifrs-full_Inventories_981" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesLineItems" xlink:label="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesTable" xlink:label="loc_ypf_DisclosureOfTradeReceivablesTable_1021" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ypf_DisclosureOfTradeReceivablesTable_1021" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1018" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfTradeReceivablesTable_1021" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1018" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1019" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1018" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1019" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1019_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1018" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1019_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountsReceivableAndRelatedPartiesMember" xlink:label="loc_ypf_AccountsReceivableAndRelatedPartiesMember_1022" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1019" xlink:to="loc_ypf_AccountsReceivableAndRelatedPartiesMember_1022" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivableMember" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivableMember_1023" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1019" xlink:to="loc_ypf_ProvisionForDoubtfulTradeReceivableMember_1023" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables_1024" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ifrs-full_CurrentTradeReceivables_1024" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentProvisionForDoubtfulTradeReceivable" xlink:label="loc_ypf_CurrentProvisionForDoubtfulTradeReceivable_1403640" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ypf_CurrentProvisionForDoubtfulTradeReceivable_1403640" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentTradeReceivables" xlink:label="loc_ifrs-full_NoncurrentTradeReceivables_1026" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ifrs-full_NoncurrentTradeReceivables_1026" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xlink:label="loc_ypf_NonCurrentProvisionForDoubtfulTradeReceivable_1403642" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems_1020" xlink:to="loc_ypf_NonCurrentProvisionForDoubtfulTradeReceivable_1403642" use="optional" order="10" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xlink:label="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xlink:label="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1029" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1029" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1030" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1029" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1030" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1030_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1029" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1030_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember_1033" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" xlink:to="loc_ifrs-full_RestatedMember_1033" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember_1033_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis_1034" xlink:to="loc_ifrs-full_RestatedMember_1033_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionAxis" xlink:label="loc_ypf_ClassOfProvisionAxis_861653" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable_1032" xlink:to="loc_ypf_ClassOfProvisionAxis_861653" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionDomain" xlink:label="loc_ypf_ClassOfProvisionDomain_861654" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ClassOfProvisionAxis_861653" xlink:to="loc_ypf_ClassOfProvisionDomain_861654" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionDomain" xlink:label="loc_ypf_ClassOfProvisionDomain_861654_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ClassOfProvisionAxis_861653" xlink:to="loc_ypf_ClassOfProvisionDomain_861654_default" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentMember" xlink:label="loc_ifrs-full_CurrentMember_861661" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ClassOfProvisionDomain_861654" xlink:to="loc_ifrs-full_CurrentMember_861661" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentMember" xlink:label="loc_ypf_NonCurrentMember_861660" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ClassOfProvisionDomain_861654" xlink:to="loc_ypf_NonCurrentMember_861660" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivables" xlink:label="loc_ifrs-full_TradeReceivables_1036" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ifrs-full_TradeReceivables_1036" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xlink:label="loc_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables_1037" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables_1037" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xlink:label="loc_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables_1038" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables_1038" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesIncurredDueToUtilization" xlink:label="loc_ypf_TradeReceivablesIncurredDueToUtilization_637340" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesIncurredDueToUtilization_637340" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:label="loc_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_1039" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax_1039" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesResultFromNetMonetaryPosition" xlink:label="loc_ypf_TradeReceivablesResultFromNetMonetaryPosition_1040" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesResultFromNetMonetaryPosition_1040" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesReclassificationAdjustments" xlink:label="loc_ypf_TradeReceivablesReclassificationAdjustments_1402917" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems_1031" xlink:to="loc_ypf_TradeReceivablesReclassificationAdjustments_1402917" use="optional" order="19" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" xlink:to="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_1330556" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicSecuritiesMember" xlink:label="loc_ypf_PublicSecuritiesMember_1330559" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" xlink:to="loc_ypf_PublicSecuritiesMember_1330559" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PrivateSecuritiesMember" xlink:label="loc_ypf_PrivateSecuritiesMember_1330561" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" xlink:to="loc_ypf_PrivateSecuritiesMember_1330561" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermDepositsMember" xlink:label="loc_ypf_TermDepositsMember_1330562" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain_1330557" xlink:to="loc_ypf_TermDepositsMember_1330562" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsTable_1330555" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_1330568" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569_default" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember_1330570" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" xlink:to="loc_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember_1330570" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember_1330572" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_1330569" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember_1330572" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_1330565" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_1330565" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets_1330566" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems_1330564" xlink:to="loc_ifrs-full_CurrentFinancialAssets_1330566" use="optional" order="14" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCashAndCashEquivalentsLineItems" xlink:label="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsTable" xlink:label="loc_ypf_CashAndCashEquivalentsTable_1048" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ypf_CashAndCashEquivalentsTable_1048" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_CashAndCashEquivalentsTable_1048" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1051" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1051" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1051_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1049" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1051_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndBankBalancesAtCentralBanks" xlink:label="loc_ifrs-full_CashAndBankBalancesAtCentralBanks_1052" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ifrs-full_CashAndBankBalancesAtCentralBanks_1052" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents_1053" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents_1053" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xlink:label="loc_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss_1054" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss_1054" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents_1055" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1050" xlink:to="loc_ifrs-full_CashAndCashEquivalents_1055" use="optional" order="8" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCashAndCashEquivalentsLineItems" xlink:label="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1402302" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsTable" xlink:label="loc_ypf_CashAndCashEquivalentsTable_1402298" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1402302" xlink:to="loc_ypf_CashAndCashEquivalentsTable_1402298" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_CashAndCashEquivalentsTable_1402298" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1402299" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoCentralDeLaRepublicaArgentinaMember" xlink:label="loc_ypf_BancoCentralDeLaRepublicaArgentinaMember_1403150" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" xlink:to="loc_ypf_BancoCentralDeLaRepublicaArgentinaMember_1403150" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoNacionArgentinaMember" xlink:label="loc_ypf_BancoNacionArgentinaMember_1402301" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1402300" xlink:to="loc_ypf_BancoNacionArgentinaMember_1402301" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents_1402303" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems_1402302" xlink:to="loc_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents_1402303" use="optional" order="7" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsLineItems" xlink:label="loc_ypf_DisclosureOfProvisionsLineItems_1062" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsTable" xlink:label="loc_ypf_DisclosureOfProvisionsTable_1063" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_DisclosureOfProvisionsTable_1063" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis_1064" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1063" xlink:to="loc_ifrs-full_PastDueStatusAxis_1064" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_1065" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_PastDueStatusAxis_1064" xlink:to="loc_ifrs-full_PastDueStatusDomain_1065" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_1065_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_PastDueStatusAxis_1064" xlink:to="loc_ifrs-full_PastDueStatusDomain_1065_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentMember" xlink:label="loc_ypf_NonCurrentMember_1080" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_PastDueStatusDomain_1065" xlink:to="loc_ypf_NonCurrentMember_1080" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentMember" xlink:label="loc_ifrs-full_CurrentMember_1081" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_PastDueStatusDomain_1065" xlink:to="loc_ifrs-full_CurrentMember_1081" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1063" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1060" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LegalProceedingsContingentLiabilityMember" xlink:label="loc_ifrs-full_LegalProceedingsContingentLiabilityMember_1066" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" xlink:to="loc_ifrs-full_LegalProceedingsContingentLiabilityMember_1066" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForEnvironmentalLiabilitiesMember" xlink:label="loc_ypf_ProvisionForEnvironmentalLiabilitiesMember_1067" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" xlink:to="loc_ypf_ProvisionForEnvironmentalLiabilitiesMember_1067" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherContingentLiabilitiesMember" xlink:label="loc_ifrs-full_OtherContingentLiabilitiesMember_1068" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1061" xlink:to="loc_ifrs-full_OtherContingentLiabilitiesMember_1068" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1070" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_Provisions_1070" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesChargedToProvisionExpenses" xlink:label="loc_ypf_IncreasesChargedToProvisionExpenses_1071" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_IncreasesChargedToProvisionExpenses_1071" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreasesChargedToProvisionIncome" xlink:label="loc_ypf_DecreasesChargedToProvisionIncome_1072" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_DecreasesChargedToProvisionIncome_1072" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions_1076" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions_1076" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicationsDueToUtilization" xlink:label="loc_ypf_ApplicationsDueToUtilization_1329718" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_ApplicationsDueToUtilization_1329718" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions_1074" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions_1074" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions_1078" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions_1078" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xlink:label="loc_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions_1077" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1062" xlink:to="loc_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions_1077" use="optional" order="20" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsLineItems" xlink:label="loc_ypf_DisclosureOfProvisionsLineItems_1085" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsTable" xlink:label="loc_ypf_DisclosureOfProvisionsTable_1086" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ypf_DisclosureOfProvisionsTable_1086" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1084" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentCostsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1093" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1093" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransportadoraDeGasDelNorteSaMember" xlink:label="loc_ypf_TransportadoraDeGasDelNorteSaMember_1402579" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1087" xlink:to="loc_ypf_TransportadoraDeGasDelNorteSaMember_1402579" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumAxis" xlink:label="loc_ypf_MoratoriumAxis_862132" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_MoratoriumAxis_862132" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumMember" xlink:label="loc_ypf_MoratoriumMember_862133" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_MoratoriumAxis_862132" xlink:to="loc_ypf_MoratoriumMember_862133" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumMember" xlink:label="loc_ypf_MoratoriumMember_862133_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_MoratoriumAxis_862132" xlink:to="loc_ypf_MoratoriumMember_862133_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1402195" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1402195" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1402195_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis_1402185" xlink:to="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain_1402195_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsAxis" xlink:label="loc_ypf_DetailsAxis_1402187" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_DetailsAxis_1402187" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain_1402197" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_DetailsAxis_1402187" xlink:to="loc_ypf_DetailsDomain_1402197" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain_1402197_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_DetailsAxis_1402187" xlink:to="loc_ypf_DetailsDomain_1402197_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1402199" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1402199" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1402199_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1402190" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1402199_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis_1402581" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ypf_AgreementAxis_1402581" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402583" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_AgreementAxis_1402581" xlink:to="loc_ypf_AgreementDomain_1402583" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402583_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_AgreementAxis_1402581" xlink:to="loc_ypf_AgreementDomain_1402583_default" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TrustSettlementAgreementMember" xlink:label="loc_ypf_TrustSettlementAgreementMember_1402585" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AgreementDomain_1402583" xlink:to="loc_ypf_TrustSettlementAgreementMember_1402585" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1402920" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921_default" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentObligationsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentObligationsMember_1402922" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentObligationsMember_1402922" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalLiabilitiesMember" xlink:label="loc_ypf_EnvironmentalLiabilitiesMember_1402923" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1402921" xlink:to="loc_ypf_EnvironmentalLiabilitiesMember_1402923" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1402924" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925_default" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402926" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1402925" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember_1402926" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403349" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfProvisionsTable_1086" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403349" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403350" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403349" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403350" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403350_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403349" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403350_default" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember_1403351" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403350" xlink:to="loc_ypf_OptimizationPlanMember_1403351" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_1088" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment_1088" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherLiabilities" xlink:label="loc_ifrs-full_OtherLiabilities_1402420" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ifrs-full_OtherLiabilities_1402420" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xlink:label="loc_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement_1402421" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement_1402421" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions_1402919" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems_1085" xlink:to="loc_ifrs-full_Provisions_1402919" use="optional" order="39" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ProvisionsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixLineItems" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsTable" xlink:label="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_1098" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_CounterpartiesAxis_1098" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_1099" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CounterpartiesAxis_1098" xlink:to="loc_ifrs-full_CounterpartiesDomain_1099" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_1099_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CounterpartiesAxis_1098" xlink:to="loc_ifrs-full_CounterpartiesDomain_1099_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1096" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ParentMember" xlink:label="loc_ifrs-full_ParentMember_1127" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" xlink:to="loc_ifrs-full_ParentMember_1127" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xlink:label="loc_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember_1130" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1102" xlink:to="loc_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember_1130" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis_1402202" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ypf_AgreementAxis_1402202" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402203" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_AgreementAxis_1402202" xlink:to="loc_ypf_AgreementDomain_1402203" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402203_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_AgreementAxis_1402202" xlink:to="loc_ypf_AgreementDomain_1402203_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1104" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1104" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1104_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1103" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1104_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_1097" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_1097" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1097" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1097" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalClaimsLaPlataMember" xlink:label="loc_ypf_EnvironmentalClaimsLaPlataMember_1403643" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1105" xlink:to="loc_ypf_EnvironmentalClaimsLaPlataMember_1403643" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1332056" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ifrs-full_RangeAxis_1332056" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1332059" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1332056" xlink:to="loc_ifrs-full_RangeDomain_1332059" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1332059_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1332056" xlink:to="loc_ifrs-full_RangeDomain_1332059_default" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_1332060" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1332059" xlink:to="loc_ifrs-full_BottomOfRangeMember_1332060" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1332061" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1332059" xlink:to="loc_ifrs-full_TopOfRangeMember_1332061" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodAxis" xlink:label="loc_ypf_PeriodAxis_1402209" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ypf_PeriodAxis_1402209" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain_1402210" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_PeriodAxis_1402209" xlink:to="loc_ypf_PeriodDomain_1402210" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain_1402210_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_PeriodAxis_1402209" xlink:to="loc_ypf_PeriodDomain_1402210_default" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsAxis" xlink:label="loc_ypf_ClaimsAxis_1402215" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable_1101" xlink:to="loc_ypf_ClaimsAxis_1402215" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsMember" xlink:label="loc_ypf_ClaimsMember_1402338" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ClaimsAxis_1402215" xlink:to="loc_ypf_ClaimsMember_1402338" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsMember" xlink:label="loc_ypf_ClaimsMember_1402338_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ClaimsAxis_1402215" xlink:to="loc_ypf_ClaimsMember_1402338_default" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" xlink:label="loc_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities_1109" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities_1109" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromTransferActivity" xlink:label="loc_ifrs-full_ProceedsFromTransferActivity_1124" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ifrs-full_ProceedsFromTransferActivity_1124" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfRiskInEnvironmentalClaims" xlink:label="loc_ypf_DescriptionOfRiskInEnvironmentalClaims_1125" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_DescriptionOfRiskInEnvironmentalClaims_1125" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtendedPeriodCoveredByFinancialStatements" xlink:label="loc_ypf_ExtendedPeriodCoveredByFinancialStatements_862141" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_ExtendedPeriodCoveredByFinancialStatements_862141" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefineryTermPeriod" xlink:label="loc_ypf_RefineryTermPeriod_1332098" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_RefineryTermPeriod_1332098" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfHydrocarbons" xlink:label="loc_ypf_PercentageOfHydrocarbons_1332105" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_PercentageOfHydrocarbons_1332105" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LossContingentDamagesSought" xlink:label="loc_ypf_LossContingentDamagesSought_1334287" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems_1100" xlink:to="loc_ypf_LossContingentDamagesSought_1334287" use="optional" order="37" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakDownOfIncomeTaxLiabilityLineItems" xlink:label="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems_1402252" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownofincometaxliabilityTable" xlink:label="loc_ypf_BreakdownofincometaxliabilityTable_1402242" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems_1402252" xlink:to="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsAxis" xlink:label="loc_ypf_DetailsAxis_1402243" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_DetailsAxis_1402243" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain_1402244" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_DetailsAxis_1402243" xlink:to="loc_ypf_DetailsDomain_1402244" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain_1402244_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_DetailsAxis_1402243" xlink:to="loc_ypf_DetailsDomain_1402244_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" xlink:label="loc_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember_1402306" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DetailsDomain_1402244" xlink:to="loc_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember_1402306" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RemainingInstallmentsOfTheRegimesMember" xlink:label="loc_ypf_RemainingInstallmentsOfTheRegimesMember_1402305" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DetailsDomain_1402244" xlink:to="loc_ypf_RemainingInstallmentsOfTheRegimesMember_1402305" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneAxis" xlink:label="loc_ypf_DetailsOneAxis_1402246" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_DetailsOneAxis_1402246" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneDomain" xlink:label="loc_ypf_DetailsOneDomain_1402247" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_DetailsOneAxis_1402246" xlink:to="loc_ypf_DetailsOneDomain_1402247" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneDomain" xlink:label="loc_ypf_DetailsOneDomain_1402247_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_DetailsOneAxis_1402246" xlink:to="loc_ypf_DetailsOneDomain_1402247_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentCostsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1402248" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DetailsOneDomain_1402247" xlink:to="loc_ypf_HydrocarbonWellsAbandonmentCostsMember_1402248" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsAxis" xlink:label="loc_ypf_InstalmentsAxis_1402249" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable_1402242" xlink:to="loc_ypf_InstalmentsAxis_1402249" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsDomain" xlink:label="loc_ypf_InstalmentsDomain_1402250" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_InstalmentsAxis_1402249" xlink:to="loc_ypf_InstalmentsDomain_1402250" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsDomain" xlink:label="loc_ypf_InstalmentsDomain_1402250_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_InstalmentsAxis_1402249" xlink:to="loc_ypf_InstalmentsDomain_1402250_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwelveInstalmentsMember" xlink:label="loc_ypf_TwelveInstalmentsMember_1402251" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_InstalmentsDomain_1402250" xlink:to="loc_ypf_TwelveInstalmentsMember_1402251" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilities" xlink:label="loc_ifrs-full_CurrentTaxLiabilities_1402253" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems_1402252" xlink:to="loc_ifrs-full_CurrentTaxLiabilities_1402253" use="optional" order="15" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfDeferredTaxLineItems" xlink:label="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis_1156" xlink:to="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousDeferredTaxLiabilitiesMember" xlink:label="loc_ypf_MiscellaneousDeferredTaxLiabilitiesMember_1168" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain_1159" xlink:to="loc_ypf_MiscellaneousDeferredTaxLiabilitiesMember_1168" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" xlink:to="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis_1160" xlink:to="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xlink:label="loc_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember_1169" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember_1169" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForTaxInflationMember" xlink:label="loc_ypf_AdjustmentForTaxInflationMember_637577" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_AdjustmentForTaxInflationMember_637577" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xlink:label="loc_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember_1402594" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember_1402594" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xlink:label="loc_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember_1402595" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember_1402595" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" xlink:label="loc_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember_1402944" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain_1161" xlink:to="loc_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember_1402944" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1154" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1158" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1154" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1155" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1154" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1155" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1155_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1154" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1155_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xlink:label="loc_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember_1162" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember_1162" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousDeferredTaxAssetsMember" xlink:label="loc_ypf_MiscellaneousDeferredTaxAssetsMember_1163" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ypf_MiscellaneousDeferredTaxAssetsMember_1163" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1164" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_1164" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" xlink:label="loc_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember_1402940" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1155" xlink:to="loc_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember_1402940" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxAssets" xlink:label="loc_ifrs-full_NetDeferredTaxAssets_1165" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_NetDeferredTaxAssets_1165" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxLiabilities" xlink:label="loc_ifrs-full_NetDeferredTaxLiabilities_1166" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_NetDeferredTaxLiabilities_1166" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilityAsset" xlink:label="loc_ifrs-full_DeferredTaxLiabilityAsset_1167" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1157" xlink:to="loc_ifrs-full_DeferredTaxLiabilityAsset_1167" use="optional" order="23" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfDeferredTaxLineItems" xlink:label="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1173" xlink:to="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain_1175" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" xlink:to="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain_1175" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain_1175_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis_1176" xlink:to="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain_1175_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xlink:label="loc_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency_1179" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" xlink:to="loc_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency_1179" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xlink:label="loc_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar_1402254" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems_1172" xlink:to="loc_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar_1402254" use="optional" order="6" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1189" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1189" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1190" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1189" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1190" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1190_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1189" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1190_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1188" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1188" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1188_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1185" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1188_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1191" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ifrs-full_MaturityAxis_1191" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1184" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_1191" xlink:to="loc_ifrs-full_MaturityDomain_1184" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1184_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_1191" xlink:to="loc_ifrs-full_MaturityDomain_1184_default" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanAxis" xlink:label="loc_ypf_NameOfPlanAxis_637482" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ypf_NameOfPlanAxis_637482" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanMember" xlink:label="loc_ypf_NameOfPlanMember_637484" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_NameOfPlanAxis_637482" xlink:to="loc_ypf_NameOfPlanMember_637484" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanMember" xlink:label="loc_ypf_NameOfPlanMember_637484_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_NameOfPlanAxis_637482" xlink:to="loc_ypf_NameOfPlanMember_637484_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearAxis" xlink:label="loc_ypf_TaxYearAxis_637489" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable_1187" xlink:to="loc_ypf_TaxYearAxis_637489" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearMember" xlink:label="loc_ypf_TaxYearMember_637490" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_TaxYearAxis_637489" xlink:to="loc_ypf_TaxYearMember_637490" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearMember" xlink:label="loc_ypf_TaxYearMember_637490_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_TaxYearAxis_637489" xlink:to="loc_ypf_TaxYearMember_637490_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" xlink:label="loc_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember_1402945" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxYearMember_637490" xlink:to="loc_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember_1402945" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssets" xlink:label="loc_ifrs-full_DeferredTaxAssets_1199" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ifrs-full_DeferredTaxAssets_1199" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilities" xlink:label="loc_ifrs-full_DeferredTaxLiabilities_1200" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ifrs-full_DeferredTaxLiabilities_1200" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountsOfDeferredTaxAssetsNotRecognised" xlink:label="loc_ypf_AmountsOfDeferredTaxAssetsNotRecognised_640270" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ypf_AmountsOfDeferredTaxAssetsNotRecognised_640270" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecognizedTaxLossesCarryforward" xlink:label="loc_ypf_RecognizedTaxLossesCarryforward_1402284" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems_1186" xlink:to="loc_ypf_RecognizedTaxLossesCarryforward_1402284" use="optional" order="21" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableLineItems" xlink:label="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableTable" xlink:label="loc_ypf_DisclosureOfTaxesPayableTable_637251" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" xlink:to="loc_ypf_DisclosureOfTaxesPayableTable_637251" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeAxis" xlink:label="loc_ypf_TaxesByTypeAxis_637253" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfTaxesPayableTable_637251" xlink:to="loc_ypf_TaxesByTypeAxis_637253" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeDomain" xlink:label="loc_ypf_TaxesByTypeDomain_637254" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_TaxesByTypeAxis_637253" xlink:to="loc_ypf_TaxesByTypeDomain_637254" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeDomain" xlink:label="loc_ypf_TaxesByTypeDomain_637254_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_TaxesByTypeAxis_637253" xlink:to="loc_ypf_TaxesByTypeDomain_637254_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IvaMember" xlink:label="loc_ypf_IvaMember_637255" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_IvaMember_637255" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WithholdingsAndPerceptionsMember" xlink:label="loc_ypf_WithholdingsAndPerceptionsMember_637257" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_WithholdingsAndPerceptionsMember_637257" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RoyaltiesMember" xlink:label="loc_ypf_RoyaltiesMember_637261" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_RoyaltiesMember_637261" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FuelsTaxMember" xlink:label="loc_ypf_FuelsTaxMember_637262" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_FuelsTaxMember_637262" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TurnoverTaxPayableMember" xlink:label="loc_ypf_TurnoverTaxPayableMember_1402353" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_TurnoverTaxPayableMember_1402353" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousMember" xlink:label="loc_ypf_MiscellaneousMember_637264" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_TaxesByTypeDomain_637254" xlink:to="loc_ypf_MiscellaneousMember_637264" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637268" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" xlink:to="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637268" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637269" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfTaxesPayableLineItems_637265" xlink:to="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax_637269" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xlink:label="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xlink:label="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" xlink:to="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_637184" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable_637183" xlink:to="loc_ifrs-full_MaturityAxis_637184" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_637185" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_637184" xlink:to="loc_ifrs-full_MaturityDomain_637185" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_637185_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_637184" xlink:to="loc_ifrs-full_MaturityDomain_637185_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="loc_ifrs-full_NotLaterThanOneYearMember_637186" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_NotLaterThanOneYearMember_637186" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_637187" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember_637187" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_637188" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember_637188" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_637189" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember_637189" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_637190" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember_637190" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xlink:label="loc_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember_637191" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember_637191" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaterThanNineYearsMember" xlink:label="loc_ypf_LaterThanNineYearsMember_637193" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_637185" xlink:to="loc_ypf_LaterThanNineYearsMember_637193" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilities" xlink:label="loc_ifrs-full_LeaseLiabilities_637196" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" xlink:to="loc_ifrs-full_LeaseLiabilities_637196" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:label="loc_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16_637195" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems_637194" xlink:to="loc_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16_637195" use="optional" order="13" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansScheduleOfLoansDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_1225" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_1225" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1226" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1225" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1226" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1226_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1225" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1226_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsMember" xlink:label="loc_ypf_NegotiableObligationsMember_1235" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_NegotiableObligationsMember_1235" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPreFinancingMember" xlink:label="loc_ypf_ExportPreFinancingMember_1234" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_ExportPreFinancingMember_1234" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialLoansMember" xlink:label="loc_ypf_FinancialLoansMember_1402764" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_FinancialLoansMember_1402764" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportsFinancingMember" xlink:label="loc_ypf_ImportsFinancingMember_1238" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_ImportsFinancingMember_1238" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountOverdraftMember" xlink:label="loc_ypf_AccountOverdraftMember_1237" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_AccountOverdraftMember_1237" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StockMarketPromissoryNotesMember" xlink:label="loc_ypf_StockMarketPromissoryNotesMember_1402771" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1226" xlink:to="loc_ypf_StockMarketPromissoryNotesMember_1402771" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis_1227" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_srt_CurrencyAxis_1227" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_1224" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CurrencyAxis_1227" xlink:to="loc_currency_AllCurrenciesDomain_1224" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain_1224_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CurrencyAxis_1227" xlink:to="loc_currency_AllCurrenciesDomain_1224_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_ARS" xlink:label="loc_currency_ARS_1232" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_1224" xlink:to="loc_currency_ARS_1232" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_OtherCurrencyMember" xlink:label="loc_srt_OtherCurrencyMember_1233" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_currency_AllCurrenciesDomain_1224" xlink:to="loc_srt_OtherCurrencyMember_1233" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1230" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1229" xlink:to="loc_ifrs-full_RangeAxis_1230" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1231" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1230" xlink:to="loc_ifrs-full_RangeDomain_1231" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1231_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1230" xlink:to="loc_ifrs-full_RangeDomain_1231_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_1243" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1231" xlink:to="loc_ifrs-full_BottomOfRangeMember_1243" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1244" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1231" xlink:to="loc_ifrs-full_TopOfRangeMember_1244" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="loc_ifrs-full_BorrowingsInterestRate_1239" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_BorrowingsInterestRate_1239" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="loc_ifrs-full_BorrowingsMaturity_1240" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_BorrowingsMaturity_1240" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermBorrowings" xlink:label="loc_ifrs-full_LongtermBorrowings_1241" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_LongtermBorrowings_1241" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermBorrowings" xlink:label="loc_ifrs-full_ShorttermBorrowings_1242" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1228" xlink:to="loc_ifrs-full_ShorttermBorrowings_1242" use="optional" order="24" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_1247" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_1247" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1248" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1247" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1248" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1248_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1247" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1248_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPreFinancingMember" xlink:label="loc_ypf_ExportPreFinancingMember_1255" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1248" xlink:to="loc_ypf_ExportPreFinancingMember_1255" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1249" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoNacionArgentinaMember" xlink:label="loc_ypf_BancoNacionArgentinaMember_1264" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1252" xlink:to="loc_ypf_BancoNacionArgentinaMember_1264" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_1254" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_1254" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_1253" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_1254" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_1253" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_1253_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_1254" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_1253_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_632537" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable_1251" xlink:to="loc_ifrs-full_RangeAxis_632537" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_632538" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_632537" xlink:to="loc_ifrs-full_RangeDomain_632538" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_632538_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_632537" xlink:to="loc_ifrs-full_RangeDomain_632538_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsRepurchased" xlink:label="loc_ypf_NegotiableObligationsRepurchased_1257" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ypf_NegotiableObligationsRepurchased_1257" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Borrowings" xlink:label="loc_ifrs-full_Borrowings_1258" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ifrs-full_Borrowings_1258" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsCancelled" xlink:label="loc_ypf_NegotiableObligationsCancelled_1261" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ypf_NegotiableObligationsCancelled_1261" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansGranted" xlink:label="loc_ypf_LoansGranted_1402802" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems_1250" xlink:to="loc_ypf_LoansGranted_1402802" use="optional" order="19" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_1298" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_1298" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1299" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1298" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1299" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_1299_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_1298" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_1299_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsMember" xlink:label="loc_ypf_NegotiableObligationsMember_1336" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BorrowingsByNameDomain_1299" xlink:to="loc_ypf_NegotiableObligationsMember_1336" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1305" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_MaturityAxis_1305" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1297" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_1305" xlink:to="loc_ifrs-full_MaturityDomain_1297" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1297_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_1305" xlink:to="loc_ifrs-full_MaturityDomain_1297_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NineteenNinetyEightMember" xlink:label="loc_ypf_NineteenNinetyEightMember_1328" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_NineteenNinetyEightMember_1328" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xlink:label="loc_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember_1332" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember_1332" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFourteenSeptemberMember" xlink:label="loc_ypf_TwoThousandFourteenSeptemberMember_1315" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFourteenSeptemberMember_1315" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFifteenAprilMember" xlink:label="loc_ypf_TwoThousandFifteenAprilMember_1317" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFifteenAprilMember_1317" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFifteenOctoberMember" xlink:label="loc_ypf_TwoThousandFifteenOctoberMember_1321" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandFifteenOctoberMember_1321" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandSeventeenJulyAndDecemberMember" xlink:label="loc_ypf_TwoThousandSeventeenJulyAndDecemberMember_1334" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandSeventeenJulyAndDecemberMember_1334" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandSeventeenDecemberMember" xlink:label="loc_ypf_TwoThousandSeventeenDecemberMember_1327" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandSeventeenDecemberMember_1327" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandNineteenJuneMember" xlink:label="loc_ypf_TwoThousandNineteenJuneMember_637237" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandNineteenJuneMember_637237" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyJulyMember" xlink:label="loc_ypf_TwoThousandTwentyJulyMember_863348" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyJulyMember_863348" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyOneFebruaryMember" xlink:label="loc_ypf_TwoThousandTwentyOneFebruaryMember_1330768" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyOneFebruaryMember_1330768" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyOneJulyMember" xlink:label="loc_ypf_TwoThousandTwentyOneJulyMember_1330770" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyOneJulyMember_1330770" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJanuaryMember_1402380" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeJanuaryMember_1402380" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember_1402381" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember_1402381" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeAprilMember" xlink:label="loc_ypf_TwoThousandTwentyThreeAprilMember_1402382" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeAprilMember_1402382" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJuneMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJuneMember_1402383" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeJuneMember_1402383" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeSeptemberMember" xlink:label="loc_ypf_TwoThousandTwentyThreeSeptemberMember_1402384" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeSeptemberMember_1402384" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyThreeOctoberMember_1402385" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyThreeOctoberMember_1402385" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyFourJanuaryMember_1402893" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourJanuaryMember_1402893" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourMayMember" xlink:label="loc_ypf_TwoThousandTwentyFourMayMember_1402894" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourMayMember_1402894" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourSeptemberMember" xlink:label="loc_ypf_TwoThousandTwentyFourSeptemberMember_1402898" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourSeptemberMember_1402898" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyFourOctoberMember_1402900" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourOctoberMember_1402900" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJanuaryMember_1403218" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveJanuaryMember_1403218" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveFebruaryMember" xlink:label="loc_ypf_TwoThousandTwentyFiveFebruaryMember_1403219" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveFebruaryMember_1403219" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveMayMember" xlink:label="loc_ypf_TwoThousandTwentyFiveMayMember_1403220" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveMayMember_1403220" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJulyMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJulyMember_1403221" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveJulyMember_1403221" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJulyAndAugustMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJulyAndAugustMember_1403222" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveJulyAndAugustMember_1403222" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveAugustMember" xlink:label="loc_ypf_TwoThousandTwentyFiveAugustMember_1403223" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveAugustMember_1403223" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyFiveOctoberMember_1403224" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveOctoberMember_1403224" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveDecemberMember" xlink:label="loc_ypf_TwoThousandTwentyFiveDecemberMember_1403225" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFiveDecemberMember_1403225" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" xlink:label="loc_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember_1403227" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1297" xlink:to="loc_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember_1403227" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1300" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301_default" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyEightMember" xlink:label="loc_ypf_ClassTwentyEightMember_1363" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyEightMember_1363" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyFourMember" xlink:label="loc_ypf_ClassThirtyFourMember_1343" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyFourMember_1343" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyNineMember" xlink:label="loc_ypf_ClassThirtyNineMember_1365" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyNineMember_1365" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFiftyThreeMember" xlink:label="loc_ypf_ClassFiftyThreeMember_1368" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFiftyThreeMember_1368" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFiftyFourMember" xlink:label="loc_ypf_ClassFiftyFourMember_1369" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFiftyFourMember_1369" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOneMember" xlink:label="loc_ypf_ClassOneMember_637242" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassOneMember_637242" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirteenMember" xlink:label="loc_ypf_ClassThirteenMember_1339" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirteenMember_1339" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassSixteenMember" xlink:label="loc_ypf_ClassSixteenMember_1330828" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassSixteenMember_1330828" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassSeventeenMember" xlink:label="loc_ypf_ClassSeventeenMember_1340" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassSeventeenMember_1340" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassEighteenMember" xlink:label="loc_ypf_ClassEighteenMember_1330794" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassEighteenMember_1330794" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassNineteenMember" xlink:label="loc_ypf_ClassNineteenMember_1359" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassNineteenMember_1359" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyMember" xlink:label="loc_ypf_ClassTwentyMember_1341" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyMember_1341" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyOneMember" xlink:label="loc_ypf_ClassTwentyOneMember_1402386" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyOneMember_1402386" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyTwoMember" xlink:label="loc_ypf_ClassTwentyTwoMember_1360" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyTwoMember_1360" use="optional" order="55" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyThreeMember" xlink:label="loc_ypf_ClassTwentyThreeMember_1402387" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyThreeMember_1402387" use="optional" order="56" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyFourMember" xlink:label="loc_ypf_ClassTwentyFourMember_1361" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyFourMember_1361" use="optional" order="57" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyFiveMember" xlink:label="loc_ypf_ClassTwentyFiveMember_1402388" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyFiveMember_1402388" use="optional" order="58" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentySixMember" xlink:label="loc_ypf_ClassTwentySixMember_1362" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentySixMember_1362" use="optional" order="59" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentySevenMember" xlink:label="loc_ypf_ClassTwentySevenMember_1402389" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentySevenMember_1402389" use="optional" order="60" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyNineMember" xlink:label="loc_ypf_ClassTwentyNineMember_1342" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassTwentyNineMember_1342" use="optional" order="61" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyFiveMember" xlink:label="loc_ypf_ClassThirtyFiveMember_1344" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyFiveMember_1344" use="optional" order="62" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtySixMember" xlink:label="loc_ypf_ClassThirtySixMember_1345" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtySixMember_1345" use="optional" order="63" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtySevenMember" xlink:label="loc_ypf_ClassThirtySevenMember_1346" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtySevenMember_1346" use="optional" order="64" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyEightMember" xlink:label="loc_ypf_ClassThirtyEightMember_1347" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyEightMember_1347" use="optional" order="65" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyMember" xlink:label="loc_ypf_ClassFortyMember_1348" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFortyMember_1348" use="optional" order="66" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyOneMember" xlink:label="loc_ypf_ClassFortyOneMember_1349" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFortyOneMember_1349" use="optional" order="67" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyTwoMember" xlink:label="loc_ypf_ClassFortyTwoMember_1350" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassFortyTwoMember_1350" use="optional" order="68" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyMember" xlink:label="loc_ypf_ClassThirtyMember_1402902" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyMember_1402902" use="optional" order="69" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyOneMember" xlink:label="loc_ypf_ClassThirtyOneMember_1402903" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyOneMember_1402903" use="optional" order="70" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyTwoMember" xlink:label="loc_ypf_ClassThirtyTwoMember_1402908" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyTwoMember_1402908" use="optional" order="71" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyThreeMember" xlink:label="loc_ypf_ClassThirtyThreeMember_1364" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1301" xlink:to="loc_ypf_ClassThirtyThreeMember_1364" use="optional" order="72" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_1307" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_1307" use="optional" order="73" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_1304" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_1307" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_1304" use="optional" order="74" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_1304_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_1307" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_1304_default" use="optional" order="75" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixedInterestRateMember" xlink:label="loc_ifrs-full_FixedInterestRateMember_1378" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain_1304" xlink:to="loc_ifrs-full_FixedInterestRateMember_1378" use="optional" order="76" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1303" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" use="optional" order="77" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1306" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1306" use="optional" order="78" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1306_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1308" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1306_default" use="optional" order="79" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Loans" xlink:label="loc_ypf_Loans_1372" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_Loans_1372" use="optional" order="80" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansInterestRate" xlink:label="loc_ypf_LoansInterestRate_1374" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_LoansInterestRate_1374" use="optional" order="81" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansMaturity" xlink:label="loc_ypf_LoansMaturity_1375" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_LoansMaturity_1375" use="optional" order="82" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentLoans" xlink:label="loc_ypf_NoncurrentLoans_1376" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_NoncurrentLoans_1376" use="optional" order="83" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentLoans" xlink:label="loc_ypf_CurrentLoans_1377" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1302" xlink:to="loc_ypf_CurrentLoans_1377" use="optional" order="84" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1386" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1386" xlink:to="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1384" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1384" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1385" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1384" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1385" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1385_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1384" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1385_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MediumTermNotes1Member" xlink:label="loc_ypf_MediumTermNotes1Member_1391" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1385" xlink:to="loc_ypf_MediumTermNotes1Member_1391" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1388" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable_1387" xlink:to="loc_ifrs-full_MaturityAxis_1388" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1383" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_1388" xlink:to="loc_ifrs-full_MaturityDomain_1383" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1383_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_1388" xlink:to="loc_ifrs-full_MaturityDomain_1383_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NineteenNinetySevenMember" xlink:label="loc_ypf_NineteenNinetySevenMember_1389" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1383" xlink:to="loc_ypf_NineteenNinetySevenMember_1389" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandEightMember" xlink:label="loc_ypf_TwoThousandEightMember_1390" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1383" xlink:to="loc_ypf_TwoThousandEightMember_1390" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableAmount" xlink:label="loc_ypf_NegotiableAmount_1392" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems_1386" xlink:to="loc_ypf_NegotiableAmount_1392" use="optional" order="11" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems_1429" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable_1430" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1429" xlink:to="loc_ypf_DisclosureOfRevenueTable_1430" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersAxis" xlink:label="loc_ifrs-full_MarketsOfCustomersAxis_1431" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfRevenueTable_1430" xlink:to="loc_ifrs-full_MarketsOfCustomersAxis_1431" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain_1432" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis_1431" xlink:to="loc_ifrs-full_MarketsOfCustomersDomain_1432" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain_1432_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis_1431" xlink:to="loc_ifrs-full_MarketsOfCustomersDomain_1432_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1436" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_UpstreamMember_1436" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1437" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1437" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1438" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_LNGandIntegratedGasMember_1438" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403216" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_NewEnergiesMember_1403216" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_1439" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1432" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_1439" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_1433" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfRevenueTable_1430" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_1433" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_1434" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_1433" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_1434" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_1434_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_1433" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_1434_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DieselMember" xlink:label="loc_ypf_DieselMember_636455" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_DieselMember_636455" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasolinesMember" xlink:label="loc_ypf_GasolinesMember_1441" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_GasolinesMember_1441" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember_1442" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_NaturalGasMember_1442" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CrudeOilMember" xlink:label="loc_srt_CrudeOilMember_1443" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_srt_CrudeOilMember_1443" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JetFuelMember" xlink:label="loc_ypf_JetFuelMember_1444" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_JetFuelMember_1444" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LubricantsAndByproductsMember" xlink:label="loc_ypf_LubricantsAndByproductsMember_1445" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_LubricantsAndByproductsMember_1445" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquefiedPetroleumGasMember" xlink:label="loc_ypf_LiquefiedPetroleumGasMember_1446" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_LiquefiedPetroleumGasMember_1446" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FuelOilMember" xlink:label="loc_ypf_FuelOilMember_1447" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_FuelOilMember_1447" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetrochemicalsMember" xlink:label="loc_ypf_PetrochemicalsMember_1448" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_PetrochemicalsMember_1448" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FertilizersAndCropProtectionProductsMember" xlink:label="loc_ypf_FertilizersAndCropProtectionProductsMember_1449" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_FertilizersAndCropProtectionProductsMember_1449" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FloursOilsAndGrainsMember" xlink:label="loc_ypf_FloursOilsAndGrainsMember_1450" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_FloursOilsAndGrainsMember_1450" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsphaltsMember" xlink:label="loc_ypf_AsphaltsMember_1451" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_AsphaltsMember_1451" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GoodsForResaleAtGasStationsMember" xlink:label="loc_ypf_GoodsForResaleAtGasStationsMember_1452" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_GoodsForResaleAtGasStationsMember_1452" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromServicesMember" xlink:label="loc_ypf_IncomeFromServicesMember_1453" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_IncomeFromServicesMember_1453" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromConstructionContractsMember" xlink:label="loc_ypf_IncomeFromConstructionContractsMember_1454" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_IncomeFromConstructionContractsMember_1454" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VirginNaphthaMember" xlink:label="loc_ypf_VirginNaphthaMember_1455" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_VirginNaphthaMember_1455" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetroleumCokeMember" xlink:label="loc_ypf_PetroleumCokeMember_1456" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_PetroleumCokeMember_1456" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquefiedNaturalGasRegasificationMember" xlink:label="loc_ypf_LiquefiedNaturalGasRegasificationMember_1457" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_LiquefiedNaturalGasRegasificationMember_1457" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherGoodsAndServicesMember" xlink:label="loc_ypf_OtherGoodsAndServicesMember_1458" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_1434" xlink:to="loc_ypf_OtherGoodsAndServicesMember_1458" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromContractsWithCustomers" xlink:label="loc_ifrs-full_RevenueFromContractsWithCustomers_1435" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1429" xlink:to="loc_ifrs-full_RevenueFromContractsWithCustomers_1435" use="optional" order="32" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems_1464" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable_1465" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1464" xlink:to="loc_ypf_DisclosureOfRevenueTable_1465" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersAxis" xlink:label="loc_ifrs-full_MarketsOfCustomersAxis_1466" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfRevenueTable_1465" xlink:to="loc_ifrs-full_MarketsOfCustomersAxis_1466" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain_1467" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis_1466" xlink:to="loc_ifrs-full_MarketsOfCustomersDomain_1467" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain_1467_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis_1466" xlink:to="loc_ifrs-full_MarketsOfCustomersDomain_1467_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember_1471" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_UpstreamMember_1471" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember_1472" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_MidstreamAndDownstreamMember_1472" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember_1473" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_LNGandIntegratedGasMember_1473" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember_1403217" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_NewEnergiesMember_1403217" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember_1474" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain_1467" xlink:to="loc_ypf_CentralAdministrationAndOthersMember_1474" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsAxis" xlink:label="loc_ifrs-full_SalesChannelsAxis_1468" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfRevenueTable_1465" xlink:to="loc_ifrs-full_SalesChannelsAxis_1468" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsDomain" xlink:label="loc_ifrs-full_SalesChannelsDomain_1469" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SalesChannelsAxis_1468" xlink:to="loc_ifrs-full_SalesChannelsDomain_1469" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsDomain" xlink:label="loc_ifrs-full_SalesChannelsDomain_1469_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SalesChannelsAxis_1468" xlink:to="loc_ifrs-full_SalesChannelsDomain_1469_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember_1475" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_GasStationsMember_1475" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PowerPlantsMember" xlink:label="loc_ypf_PowerPlantsMember_1476" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_PowerPlantsMember_1476" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DistributionCompaniesMember" xlink:label="loc_ypf_DistributionCompaniesMember_1477" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_DistributionCompaniesMember_1477" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RetailDistributionOfNaturalGasMember" xlink:label="loc_ypf_RetailDistributionOfNaturalGasMember_1478" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_RetailDistributionOfNaturalGasMember_1478" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IndustriesTransportAndAviationMember" xlink:label="loc_ypf_IndustriesTransportAndAviationMember_1479" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_IndustriesTransportAndAviationMember_1479" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgricultureMember" xlink:label="loc_ypf_AgricultureMember_1480" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_AgricultureMember_1480" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetrochemicalIndustryMember" xlink:label="loc_ypf_PetrochemicalIndustryMember_1481" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_PetrochemicalIndustryMember_1481" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradingMember" xlink:label="loc_ypf_TradingMember_1482" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_TradingMember_1482" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilCompaniesMember" xlink:label="loc_ypf_OilCompaniesMember_1483" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_OilCompaniesMember_1483" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CommercializationOfLiquefiedPetroleumGasMember" xlink:label="loc_ypf_CommercializationOfLiquefiedPetroleumGasMember_1484" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_CommercializationOfLiquefiedPetroleumGasMember_1484" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherSalesChannelsMember" xlink:label="loc_ypf_OtherSalesChannelsMember_1485" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SalesChannelsDomain_1469" xlink:to="loc_ypf_OtherSalesChannelsMember_1485" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromContractsWithCustomers" xlink:label="loc_ifrs-full_RevenueFromContractsWithCustomers_1470" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1464" xlink:to="loc_ifrs-full_RevenueFromContractsWithCustomers_1470" use="optional" order="24" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueByGeographicalAreaLineItems" xlink:label="loc_ypf_RevenueByGeographicalAreaLineItems_1402372" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueByGeographicalAreaTable" xlink:label="loc_ypf_RevenueByGeographicalAreaTable_1402365" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_RevenueByGeographicalAreaLineItems_1402372" xlink:to="loc_ypf_RevenueByGeographicalAreaTable_1402365" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402366" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_RevenueByGeographicalAreaTable_1402365" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402366" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402367" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402366" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402367" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402367_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402366" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402367_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_1402368" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_country_AR_1402368" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MercosurAndAssociatesCountriesMember" xlink:label="loc_ypf_MercosurAndAssociatesCountriesMember_1402369" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_ypf_MercosurAndAssociatesCountriesMember_1402369" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EuropeMember" xlink:label="loc_srt_EuropeMember_1402371" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_srt_EuropeMember_1402371" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ForeignCountriesMember" xlink:label="loc_ifrs-full_ForeignCountriesMember_1402370" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1402367" xlink:to="loc_ifrs-full_ForeignCountriesMember_1402370" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_1402373" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_RevenueByGeographicalAreaLineItems_1402372" xlink:to="loc_ifrs-full_Revenue_1402373" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems_1488" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable_1489" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ypf_DisclosureOfRevenueTable_1489" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1490" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfRevenueTable_1489" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1490" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1491" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1490" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1491" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1491_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1490" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1491_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DomesticMarketMember" xlink:label="loc_ypf_DomesticMarketMember_1494" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1491" xlink:to="loc_ypf_DomesticMarketMember_1494" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InternationalMarketMember" xlink:label="loc_ypf_InternationalMarketMember_1495" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1491" xlink:to="loc_ypf_InternationalMarketMember_1495" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_1492" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ifrs-full_Revenue_1492" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xlink:label="loc_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue_1402425" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue_1402425" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xlink:label="loc_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities_1402690" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfRevenueLineItems_1488" xlink:to="loc_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities_1402690" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfExpensesLineItems" xlink:label="loc_ypf_DisclosureOfExpensesLineItems_1520" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfExpensesTable" xlink:label="loc_ypf_DisclosureOfExpensesTable_1521" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_DisclosureOfExpensesTable_1521" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfExpensesTable_1521" xlink:to="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" xlink:to="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis_1522" xlink:to="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCostsMember" xlink:label="loc_ypf_ProductionCostsMember_1543" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_ProductionCostsMember_1543" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdministrativeExpensesMember" xlink:label="loc_ypf_AdministrativeExpensesMember_1544" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_AdministrativeExpensesMember_1544" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SellingExpensesMember" xlink:label="loc_ypf_SellingExpensesMember_1545" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_SellingExpensesMember_1545" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationExpensesMember" xlink:label="loc_ypf_ExplorationExpensesMember_1546" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember_1523" xlink:to="loc_ypf_ExplorationExpensesMember_1546" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityTaxes" xlink:label="loc_ypf_SalariesAndSocialSecurityTaxes_1524" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_SalariesAndSocialSecurityTaxes_1524" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServicesExpense" xlink:label="loc_ifrs-full_ServicesExpense_1525" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_ServicesExpense_1525" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherExpenseByNature" xlink:label="loc_ifrs-full_OtherExpenseByNature_1526" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_OtherExpenseByNature_1526" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xlink:label="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense_1527" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense_1527" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RoyaltyExpense" xlink:label="loc_ifrs-full_RoyaltyExpense_1528" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RoyaltyExpense_1528" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InsuranceExpense" xlink:label="loc_ifrs-full_InsuranceExpense_1529" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_InsuranceExpense_1529" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RentalExpense" xlink:label="loc_ifrs-full_RentalExpense_1530" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RentalExpense_1530" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurveyExpenses" xlink:label="loc_ypf_SurveyExpenses_1531" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_SurveyExpenses_1531" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_1532" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment_1532" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationExpense" xlink:label="loc_ifrs-full_AmortisationExpense_1533" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_AmortisationExpense_1533" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets_637617" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets_637617" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RawMaterialsAndConsumablesUsed" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed_1534" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed_1534" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OperationServicesAndOtherServiceContracts" xlink:label="loc_ypf_OperationServicesAndOtherServiceContracts_1535" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_OperationServicesAndOtherServiceContracts_1535" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepairsAndMaintenanceExpense" xlink:label="loc_ifrs-full_RepairsAndMaintenanceExpense_1536" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_RepairsAndMaintenanceExpense_1536" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnproductiveExploratoryDrillings" xlink:label="loc_ypf_UnproductiveExploratoryDrillings_1537" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_UnproductiveExploratoryDrillings_1537" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TransportationExpense" xlink:label="loc_ifrs-full_TransportationExpense_1538" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_TransportationExpense_1538" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss_1539" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss_1539" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdvertisingExpenses" xlink:label="loc_ypf_AdvertisingExpenses_1540" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ypf_AdvertisingExpenses_1540" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FuelAndEnergyExpense" xlink:label="loc_ifrs-full_FuelAndEnergyExpense_1541" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_FuelAndEnergyExpense_1541" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNature" xlink:label="loc_ifrs-full_ExpenseByNature_1542" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfExpensesLineItems_1520" xlink:to="loc_ifrs-full_ExpenseByNature_1542" use="optional" order="28" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseByNatureLineItems" xlink:label="loc_ypf_ExpenseByNatureLineItems_861857" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportWithholdings" xlink:label="loc_ypf_ExportWithholdings_1549" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExportWithholdings_1549" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ResearchAndDevelopmentExpense" xlink:label="loc_ifrs-full_ResearchAndDevelopmentExpense_1552" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ifrs-full_ResearchAndDevelopmentExpense_1552" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseRelatingToShortTermLease" xlink:label="loc_ypf_ExpenseRelatingToShortTermLease_637735" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExpenseRelatingToShortTermLease_637735" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseRelatingToLeaseUnderlyingAsset" xlink:label="loc_ypf_ExpenseRelatingToLeaseUnderlyingAsset_637738" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExpenseRelatingToLeaseUnderlyingAsset_637738" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseByNatureTable" xlink:label="loc_ypf_ExpenseByNatureTable_861853" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_ExpenseByNatureTable_861853" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_ExpenseByNatureTable_861853" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_861855" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_861855" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_861855_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_861854" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_861855_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TurnoverTax" xlink:label="loc_ypf_TurnoverTax_1402218" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ypf_TurnoverTax_1402218" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="loc_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1402952" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ExpenseByNatureLineItems_861857" xlink:to="loc_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1402952" use="optional" order="10" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsTable" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis_1402310" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1586" xlink:to="loc_ifrs-full_JointOperationsAxis_1402310" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_1402311" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointOperationsAxis_1402310" xlink:to="loc_ifrs-full_JointOperationsDomain_1402311" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_1402311_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointOperationsAxis_1402310" xlink:to="loc_ifrs-full_JointOperationsDomain_1402311_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsMember" xlink:label="loc_ifrs-full_JointOperationsMember_1402953" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1402311" xlink:to="loc_ifrs-full_JointOperationsMember_1402953" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets_1589" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_NoncurrentAssets_1589" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets_1590" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_CurrentAssets_1590" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_1591" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_Assets_1591" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities_1592" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_NoncurrentLiabilities_1592" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities_1593" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_CurrentLiabilities_1593" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities_1594" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_Liabilities_1594" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCost" xlink:label="loc_ypf_ProductionCost_1595" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ypf_ProductionCost_1595" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xlink:label="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources_1596" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1585" xlink:to="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources_1596" use="optional" order="13" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsTable" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_661445" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_JointVenturesAxis_661445" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_661447" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_661445" xlink:to="loc_ifrs-full_JointVenturesDomain_661447" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_661447_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_661445" xlink:to="loc_ifrs-full_JointVenturesDomain_661447_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JOMember" xlink:label="loc_ypf_JOMember_661449" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_661447" xlink:to="loc_ypf_JOMember_661449" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1604" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1604" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1605" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1604" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1605" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1605_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1604" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1605_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcambucoMember" xlink:label="loc_ypf_AcambucoMember_1615" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AcambucoMember_1615" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDeCastroAndAguadaPichanaOesteMember" xlink:label="loc_ypf_AguadaDeCastroAndAguadaPichanaOesteMember_1402291" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaDeCastroAndAguadaPichanaOesteMember_1402291" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChaarMember" xlink:label="loc_ypf_AguadaDelChaarMember_1403212" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaDelChaarMember_1403212" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaPichanaAreaVacaMuertaMember" xlink:label="loc_ypf_AguadaPichanaAreaVacaMuertaMember_1616" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaPichanaAreaVacaMuertaMember_1616" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaPichanaResidualMember" xlink:label="loc_ypf_AguadaPichanaResidualMember_1617" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaPichanaResidualMember_1617" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaVillanuevaMember" xlink:label="loc_ypf_AguadaVillanuevaMember_1403204" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguadaVillanuevaMember_1403204" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguaragueMember" xlink:label="loc_ypf_AguaragueMember_1618" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_AguaragueMember_1618" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Aus105Member" xlink:label="loc_ypf_Aus105Member_1403206" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Aus105Member_1403206" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Aus106Member" xlink:label="loc_ypf_Aus106Member_1403207" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Aus106Member_1403207" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajadaAeloMember" xlink:label="loc_ypf_BajadaAeloMember_858334" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_BajadaAeloMember_858334" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroMember" xlink:label="loc_ypf_BajoDelToroMember_1636" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_BajoDelToroMember_1636" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurMember" xlink:label="loc_ypf_BandurriaSurMember_1637" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_BandurriaSurMember_1637" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Cam2aSurMember" xlink:label="loc_ypf_Cam2aSurMember_1619" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Cam2aSurMember_1619" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can100Member" xlink:label="loc_ypf_Can100Member_858331" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Can100Member_858331" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can102Member" xlink:label="loc_ypf_Can102Member_1402069" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Can102Member_1402069" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can114Member" xlink:label="loc_ypf_Can114Member_1402070" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_Can114Member_1402070" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChachahuenMember" xlink:label="loc_ypf_ChachahuenMember_858325" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_ChachahuenMember_858325" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsorcioCnq7aMember" xlink:label="loc_ypf_ConsorcioCnq7aMember_1621" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_ConsorcioCnq7aMember_1621" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElOrejanoMember" xlink:label="loc_ypf_ElOrejanoMember_1635" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_ElOrejanoMember_1635" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAmargaChicaMember" xlink:label="loc_ypf_LaAmargaChicaMember_1634" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LaAmargaChicaMember_1634" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaCaleraMember" xlink:label="loc_ypf_LaCaleraMember_858333" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LaCaleraMember_858333" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaEscalonadaMember" xlink:label="loc_ypf_LaEscalonadaMember_1403208" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LaEscalonadaMember_1403208" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LasTacanasMember" xlink:label="loc_ypf_LasTacanasMember_1402407" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LasTacanasMember_1402407" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LinderoAtravesadoMember" xlink:label="loc_ypf_LinderoAtravesadoMember_1624" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LinderoAtravesadoMember_1624" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LomaCampanaMember" xlink:label="loc_ypf_LomaCampanaMember_1627" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LomaCampanaMember_1627" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LomaDelMolleMember" xlink:label="loc_ypf_LomaDelMolleMember_858329" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_LomaDelMolleMember_858329" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MagallanesMember" xlink:label="loc_ypf_MagallanesMember_1626" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_MagallanesMember_1626" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MesetaNuevaEsperanzaMember" xlink:label="loc_ypf_MesetaNuevaEsperanzaMember_1403209" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_MesetaNuevaEsperanzaMember_1403209" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NarambuenaMember" xlink:label="loc_ypf_NarambuenaMember_1633" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_NarambuenaMember_1633" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaYeguasIMember" xlink:label="loc_ypf_PampaYeguasIMember_858327" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_PampaYeguasIMember_858327" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RamosMember" xlink:label="loc_ypf_RamosMember_1402408" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RamosMember_1402408" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RinconDeLaCenizaMember" xlink:label="loc_ypf_RinconDeLaCenizaMember_1403210" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RinconDeLaCenizaMember_1403210" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RinconDelMangrulloMember" xlink:label="loc_ypf_RinconDelMangrulloMember_1629" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RinconDelMangrulloMember_1629" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RioNeuqunMember" xlink:label="loc_ypf_RioNeuqunMember_858324" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_RioNeuqunMember_858324" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SanRoqueMember" xlink:label="loc_ypf_SanRoqueMember_1630" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_SanRoqueMember_1630" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataConsorcioChihuidoMember" xlink:label="loc_ypf_SierraChataConsorcioChihuidoMember_1403211" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_1605" xlink:to="loc_ypf_SierraChataConsorcioChihuidoMember_1403211" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable_1602" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1600" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603_default" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PanAmericanEnergyMember" xlink:label="loc_ypf_PanAmericanEnergyMember_1609" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_PanAmericanEnergyMember_1609" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TotalAustralMember" xlink:label="loc_ypf_TotalAustralMember_1610" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_TotalAustralMember_1610" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TecpetrolMember" xlink:label="loc_ypf_TecpetrolMember_1611" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_TecpetrolMember_1611" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnapSipetrolArgentinaMember" xlink:label="loc_ypf_EnapSipetrolArgentinaMember_1612" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EnapSipetrolArgentinaMember_1612" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YacimientosPetroliferosFiscalesMember" xlink:label="loc_ypf_YacimientosPetroliferosFiscalesMember_1613" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_YacimientosPetroliferosFiscalesMember_1613" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PluspetrolSAMember" xlink:label="loc_ypf_PluspetrolSAMember_1614" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_PluspetrolSAMember_1614" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaBvMember" xlink:label="loc_ypf_EquinorArgentinaBvMember_1402072" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EquinorArgentinaBvMember_1402072" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaAsMember" xlink:label="loc_ypf_EquinorArgentinaAsMember_1402281" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EquinorArgentinaAsMember_1402281" use="optional" order="55" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorMember" xlink:label="loc_ypf_EquinorMember_1403213" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_EquinorMember_1403213" use="optional" order="56" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403214" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_VmiMember_1403214" use="optional" order="57" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaEnergiaSAMember" xlink:label="loc_ypf_PampaEnergiaSAMember_1403215" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_PampaEnergiaSAMember_1403215" use="optional" order="58" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShellArgentinaSaMember" xlink:label="loc_ypf_ShellArgentinaSaMember_1403408" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1603" xlink:to="loc_ypf_ShellArgentinaSaMember_1403408" use="optional" order="59" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" xlink:label="loc_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation_1606" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation_1606" use="optional" order="60" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOfJointOperation" xlink:label="loc_ifrs-full_CountryOfIncorporationOfJointOperation_1607" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_CountryOfIncorporationOfJointOperation_1607" use="optional" order="61" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1608" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems_1601" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1608" use="optional" order="62" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalAxis" xlink:label="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" xlink:to="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="loc_ifrs-full_ClassesOfShareCapitalDomain_1658_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfShareCapitalAxis_1657" xlink:to="loc_ifrs-full_ClassesOfShareCapitalDomain_1658_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OrdinarySharesMember" xlink:label="loc_ifrs-full_OrdinarySharesMember_1664" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ifrs-full_OrdinarySharesMember_1664" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassASharesMember" xlink:label="loc_ypf_ClassASharesMember_1665" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ypf_ClassASharesMember_1665" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalStockMember" xlink:label="loc_ypf_CapitalStockMember_1402967" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ypf_CapitalStockMember_1402967" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassDSharesMember" xlink:label="loc_ypf_ClassDSharesMember_1402974" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain_1658" xlink:to="loc_ypf_ClassDSharesMember_1402974" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_1656" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662_default" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RepsolSAMember" xlink:label="loc_ypf_RepsolSAMember_1682" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_RepsolSAMember_1682" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetersenEnergiaSauAndAffiliatesMember" xlink:label="loc_ypf_PetersenEnergiaSauAndAffiliatesMember_1683" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_PetersenEnergiaSauAndAffiliatesMember_1683" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FederalGovernmentMember" xlink:label="loc_ypf_FederalGovernmentMember_1684" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_FederalGovernmentMember_1684" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StateOrProvinceMember" xlink:label="loc_ypf_StateOrProvinceMember_1685" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_1662" xlink:to="loc_ypf_StateOrProvinceMember_1685" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_1659" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_1659" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_1663" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_1659" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_1663" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_1663_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_1659" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_1663_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForPurchaseOfTreasuryShareMember" xlink:label="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_1402978" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_1663" xlink:to="loc_ypf_ReservesForPurchaseOfTreasuryShareMember_1402978" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_1402981" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_1663" xlink:to="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember_1402981" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1402439" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable_1661" xlink:to="loc_ifrs-full_RangeAxis_1402439" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402440" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1402439" xlink:to="loc_ifrs-full_RangeDomain_1402440" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402440_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1402439" xlink:to="loc_ifrs-full_RangeDomain_1402440_default" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SubscribedCapital" xlink:label="loc_ypf_SubscribedCapital_1666" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_SubscribedCapital_1666" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfSharesSubscribed" xlink:label="loc_ypf_NumberOfSharesSubscribed_1667" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_NumberOfSharesSubscribed_1667" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfClassesOfShares" xlink:label="loc_ypf_DescriptionOfClassesOfShares_1668" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DescriptionOfClassesOfShares_1668" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ParValuePerShare" xlink:label="loc_ifrs-full_ParValuePerShare_1669" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_ParValuePerShare_1669" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfVotingRights" xlink:label="loc_ypf_DescriptionOfVotingRights_1670" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DescriptionOfVotingRights_1670" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfSharesOutstanding" xlink:label="loc_ifrs-full_NumberOfSharesOutstanding_1671" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_NumberOfSharesOutstanding_1671" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfGrantBasedOnSharesOutstanding" xlink:label="loc_ypf_DescriptionOfGrantBasedOnSharesOutstanding_1672" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_DescriptionOfGrantBasedOnSharesOutstanding_1672" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1673" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1673" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInEquity" xlink:label="loc_ypf_ProportionOfOwnershipInterestInEquity_1674" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_ProportionOfOwnershipInterestInEquity_1674" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xlink:label="loc_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty_1675" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty_1675" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSharesSubjectToExpropriation" xlink:label="loc_ypf_PercentageOfSharesSubjectToExpropriation_1677" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_PercentageOfSharesSubjectToExpropriation_1677" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TreasuryStockSharesAcquired1" xlink:label="loc_ypf_TreasuryStockSharesAcquired1_1402220" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_TreasuryStockSharesAcquired1_1402220" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfTreasuryShares" xlink:label="loc_ifrs-full_PurchaseOfTreasuryShares_1402221" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_PurchaseOfTreasuryShares_1402221" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xlink:label="loc_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum_1402522" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum_1402522" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaximumPercentageOfLegalReserve" xlink:label="loc_ypf_MaximumPercentageOfLegalReserve_1402523" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_MaximumPercentageOfLegalReserve_1402523" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserve" xlink:label="loc_ifrs-full_StatutoryReserve_1402524" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_StatutoryReserve_1402524" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RestrictedDistributionOfRetainedEarnings" xlink:label="loc_ypf_RestrictedDistributionOfRetainedEarnings_1402525" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ypf_RestrictedDistributionOfRetainedEarnings_1402525" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetainedEarnings" xlink:label="loc_ifrs-full_RetainedEarnings_1402980" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems_1660" xlink:to="loc_ifrs-full_RetainedEarnings_1402980" use="optional" order="41" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_1752" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_1752" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1752" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_1752" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CsjnMember" xlink:label="loc_ypf_CsjnMember_1762" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfOtherProvisionsDomain_1755" xlink:to="loc_ypf_CsjnMember_1762" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesAxis" xlink:label="loc_ypf_LegalEntitiesAxis_661400" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_LegalEntitiesAxis_661400" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesMember" xlink:label="loc_ypf_LegalEntitiesMember_661401" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_LegalEntitiesAxis_661400" xlink:to="loc_ypf_LegalEntitiesMember_661401" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesMember" xlink:label="loc_ypf_LegalEntitiesMember_661401_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_LegalEntitiesAxis_661400" xlink:to="loc_ypf_LegalEntitiesMember_661401_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xlink:label="loc_ypf_AsociacionSuperficiariosDeLaPatagoniaMember_661402" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_LegalEntitiesMember_661401" xlink:to="loc_ypf_AsociacionSuperficiariosDeLaPatagoniaMember_661402" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateAxis" xlink:label="loc_ypf_ExchangeRateAxis_1331121" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_ExchangeRateAxis_1331121" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateMember" xlink:label="loc_ypf_ExchangeRateMember_1331127" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ExchangeRateAxis_1331121" xlink:to="loc_ypf_ExchangeRateMember_1331127" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateMember" xlink:label="loc_ypf_ExchangeRateMember_1331127_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ExchangeRateAxis_1331121" xlink:to="loc_ypf_ExchangeRateMember_1331127_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1331136" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ifrs-full_RangeAxis_1331136" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1331137" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1331136" xlink:to="loc_ifrs-full_RangeDomain_1331137" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1331137_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1331136" xlink:to="loc_ifrs-full_RangeDomain_1331137_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsAxis" xlink:label="loc_ypf_CaseDetailsAxis_1402233" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable_1754" xlink:to="loc_ypf_CaseDetailsAxis_1402233" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsMember" xlink:label="loc_ypf_CaseDetailsMember_1402234" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_CaseDetailsAxis_1402233" xlink:to="loc_ypf_CaseDetailsMember_1402234" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsMember" xlink:label="loc_ypf_CaseDetailsMember_1402234_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_CaseDetailsAxis_1402233" xlink:to="loc_ypf_CaseDetailsMember_1402234_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" xlink:label="loc_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember_1402235" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_CaseDetailsMember_1402234" xlink:to="loc_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember_1402235" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfInterlocutoryJudgments" xlink:label="loc_ypf_NumberOfInterlocutoryJudgments_1757" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_NumberOfInterlocutoryJudgments_1757" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContractualLiabilityPayableValue" xlink:label="loc_ypf_ContractualLiabilityPayableValue_1402532" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_ContractualLiabilityPayableValue_1402532" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectDamagesPayableForBreachOfContract" xlink:label="loc_ypf_DirectDamagesPayableForBreachOfContract_1402534" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems_1753" xlink:to="loc_ypf_DirectDamagesPayableForBreachOfContract_1402534" use="optional" order="22" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContractualCommitmentsLineItems" xlink:label="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContractualCommitmentsTable" xlink:label="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsAxis" xlink:label="loc_ypf_InvestorsAxis_1331150" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_InvestorsAxis_1331150" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain_1331151" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_InvestorsAxis_1331150" xlink:to="loc_ypf_InvestorsDomain_1331151" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain_1331151_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_InvestorsAxis_1331150" xlink:to="loc_ypf_InvestorsDomain_1331151_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_1331171" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_srt_StatementGeographicalAxis_1331171" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1331172" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_1331171" xlink:to="loc_srt_SegmentGeographicalDomain_1331172" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1331172_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_1331171" xlink:to="loc_srt_SegmentGeographicalDomain_1331172_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityAxis" xlink:label="loc_ypf_GuaranteedSecurityAxis_1331221" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_GuaranteedSecurityAxis_1331221" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember_1331222" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_GuaranteedSecurityAxis_1331221" xlink:to="loc_ypf_GuaranteedSecurityMember_1331222" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember_1331222_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_GuaranteedSecurityAxis_1331221" xlink:to="loc_ypf_GuaranteedSecurityMember_1331222_default" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_1331620" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_CounterpartiesAxis_1331620" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_1331621" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CounterpartiesAxis_1331620" xlink:to="loc_ifrs-full_CounterpartiesDomain_1331621" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_1331621_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CounterpartiesAxis_1331620" xlink:to="loc_ifrs-full_CounterpartiesDomain_1331621_default" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis_1402457" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_AgreementAxis_1402457" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402470" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_AgreementAxis_1402457" xlink:to="loc_ypf_AgreementDomain_1402470" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain_1402470_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_AgreementAxis_1402457" xlink:to="loc_ypf_AgreementDomain_1402470_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarHilliCorporationMember" xlink:label="loc_ypf_GolarHilliCorporationMember_1403365" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AgreementDomain_1402470" xlink:to="loc_ypf_GolarHilliCorporationMember_1403365" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarMkiiCorporationMember" xlink:label="loc_ypf_GolarMkiiCorporationMember_1403380" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_AgreementDomain_1402470" xlink:to="loc_ypf_GolarMkiiCorporationMember_1403380" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockAxis" xlink:label="loc_ypf_BlockAxis_1402463" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ypf_BlockAxis_1402463" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockMember" xlink:label="loc_ypf_BlockMember_1402464" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_BlockAxis_1402463" xlink:to="loc_ypf_BlockMember_1402464" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockMember" xlink:label="loc_ypf_BlockMember_1402464_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_BlockAxis_1402463" xlink:to="loc_ypf_BlockMember_1402464_default" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402958" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402958" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402959" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402958" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402959" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402959_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402958" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402959_default" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1402963" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1402963" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1402963_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_1402962" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_1402963_default" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis_1403354" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable_1331146" xlink:to="loc_ifrs-full_JointOperationsAxis_1403354" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_1403355" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointOperationsAxis_1403354" xlink:to="loc_ifrs-full_JointOperationsDomain_1403355" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain_1403355_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointOperationsAxis_1403354" xlink:to="loc_ifrs-full_JointOperationsDomain_1403355_default" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDeLaArenaMember" xlink:label="loc_ypf_AguadaDeLaArenaMember_1403356" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_AguadaDeLaArenaMember_1403356" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAngosturaSurIMember" xlink:label="loc_ypf_LaAngosturaSurIMember_1403360" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_LaAngosturaSurIMember_1403360" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAngosturaSurIiMember" xlink:label="loc_ypf_LaAngosturaSurIiMember_1403361" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_LaAngosturaSurIiMember_1403361" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NarambuenaMember" xlink:label="loc_ypf_NarambuenaMember_1403362" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_NarambuenaMember_1403362" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeDesarrolloMember" xlink:label="loc_ypf_CompaniaDeDesarrolloMember_1403363" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_CompaniaDeDesarrolloMember_1403363" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PAEMember" xlink:label="loc_ypf_PAEMember_1403372" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_PAEMember_1403372" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergticasMember" xlink:label="loc_ypf_SurInversionesEnergticasMember_1403373" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_SurInversionesEnergticasMember_1403373" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaMember" xlink:label="loc_ypf_PampaMember_1403374" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_PampaMember_1403374" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SeArgentinaHoldingBvMember" xlink:label="loc_ypf_SeArgentinaHoldingBvMember_1403375" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_SeArgentinaHoldingBvMember_1403375" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarSubholdingMember" xlink:label="loc_ypf_GolarSubholdingMember_1403376" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointOperationsDomain_1403355" xlink:to="loc_ypf_GolarSubholdingMember_1403376" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfExpenseByNature" xlink:label="loc_ypf_AmountOfExpenseByNature_897266" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_AmountOfExpenseByNature_897266" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTransportationConcession" xlink:label="loc_ypf_PercentageOfTransportationConcession_1402455" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_PercentageOfTransportationConcession_1402455" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfVotingRightsHeldInJointOperation" xlink:label="loc_ifrs-full_ProportionOfVotingRightsHeldInJointOperation_1402957" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ifrs-full_ProportionOfVotingRightsHeldInJointOperation_1402957" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1403358" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1403358" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfUnconventionalWells" xlink:label="loc_ypf_NumberOfUnconventionalWells_1403359" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfUnconventionalWells_1403359" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfYearsExploitationConcessionTerm" xlink:label="loc_ypf_NumberOfYearsExploitationConcessionTerm_1403366" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfYearsExploitationConcessionTerm_1403366" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NormalCapacityOfTonExploitation" xlink:label="loc_ypf_NormalCapacityOfTonExploitation_1403369" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NormalCapacityOfTonExploitation_1403369" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfLeaseTerm" xlink:label="loc_ypf_NumberOfLeaseTerm_1403370" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfLeaseTerm_1403370" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionalNumberOfLeaseTerm" xlink:label="loc_ypf_AdditionalNumberOfLeaseTerm_1403381" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_AdditionalNumberOfLeaseTerm_1403381" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfNaturalGasSupplyAgreementsTerm" xlink:label="loc_ypf_NumberOfNaturalGasSupplyAgreementsTerm_1403383" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems_1331149" xlink:to="loc_ypf_NumberOfNaturalGasSupplyAgreementsTerm_1403383" use="optional" order="50" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScheduleOfGrantedGuaranteesLineItems" xlink:label="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScheduleOfGrantedGuaranteesTable" xlink:label="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" xlink:to="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis_2044" xlink:to="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GuaranteesMember" xlink:label="loc_ifrs-full_GuaranteesMember_2050" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain_2047" xlink:to="loc_ifrs-full_GuaranteesMember_2050" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityAxis" xlink:label="loc_ypf_GuaranteedSecurityAxis_862295" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ypf_GuaranteedSecurityAxis_862295" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember_862296" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_GuaranteedSecurityAxis_862295" xlink:to="loc_ypf_GuaranteedSecurityMember_862296" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember_862296_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_GuaranteedSecurityAxis_862295" xlink:to="loc_ypf_GuaranteedSecurityMember_862296_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsAxis" xlink:label="loc_ypf_InvestorsAxis_1331278" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ypf_InvestorsAxis_1331278" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain_1331280" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_InvestorsAxis_1331278" xlink:to="loc_ypf_InvestorsDomain_1331280" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain_1331280_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_InvestorsAxis_1331278" xlink:to="loc_ypf_InvestorsDomain_1331280_default" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassXXVIIINOMember" xlink:label="loc_ypf_ClassXXVIIINOMember_1403093" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_InvestorsDomain_1331280" xlink:to="loc_ypf_ClassXXVIIINOMember_1403093" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis_1331287" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_srt_StatementGeographicalAxis_1331287" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1331289" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_1331287" xlink:to="loc_srt_SegmentGeographicalDomain_1331289" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain_1331289_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_1331287" xlink:to="loc_srt_SegmentGeographicalDomain_1331289_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable_2046" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis_1403385" xlink:to="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergeticasMember" xlink:label="loc_ypf_SurInversionesEnergeticasMember_1403387" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" xlink:to="loc_ypf_SurInversionesEnergeticasMember_1403387" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarHilliCorporationMember" xlink:label="loc_ypf_GolarHilliCorporationMember_1403388" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" xlink:to="loc_ypf_GolarHilliCorporationMember_1403388" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarMkiiCorporationMember" xlink:label="loc_ypf_GolarMkiiCorporationMember_1403389" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain_1403386" xlink:to="loc_ypf_GolarMkiiCorporationMember_1403389" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" xlink:label="loc_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions_2049" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions_2049" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xlink:label="loc_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO_1403092" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO_1403092" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfDebtServices" xlink:label="loc_ypf_PercentageOfDebtServices_1331272" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_PercentageOfDebtServices_1331272" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xlink:label="loc_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid_1331273" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid_1331273" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BankGuaranteesIssued" xlink:label="loc_ypf_BankGuaranteesIssued_1402316" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_BankGuaranteesIssued_1402316" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403390" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403390" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfGranteGuarantees" xlink:label="loc_ypf_AmountOfGranteGuarantees_1403391" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ypf_AmountOfGranteGuarantees_1403391" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DebtInstrumentsHeld" xlink:label="loc_ifrs-full_DebtInstrumentsHeld_1403392" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems_2045" xlink:to="loc_ifrs-full_DebtInstrumentsHeld_1403392" use="optional" order="29" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_2078" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember_2184" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_MetrogasMember_2184" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonDistributionMember" xlink:label="loc_ypf_HydrocarbonDistributionMember_2186" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_HydrocarbonDistributionMember_2186" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LargeInvestmentIncentiveRegimeMember" xlink:label="loc_ypf_LargeInvestmentIncentiveRegimeMember_1403641" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_LargeInvestmentIncentiveRegimeMember_1403641" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquidHydrocarbonExportsMember" xlink:label="loc_ypf_LiquidHydrocarbonExportsMember_1402478" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_LiquidHydrocarbonExportsMember_1402478" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyRateMember" xlink:label="loc_ypf_ExportDutyRateMember_1402669" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_ExportDutyRateMember_1402669" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FreeLngExportAuthorizationMember" xlink:label="loc_ypf_FreeLngExportAuthorizationMember_1403033" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_FreeLngExportAuthorizationMember_1403033" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LngExportProjectsMember" xlink:label="loc_ypf_LngExportProjectsMember_1403367" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_LngExportProjectsMember_1403367" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NationalEnergySectorMember" xlink:label="loc_ypf_NationalEnergySectorMember_1403379" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_2074" xlink:to="loc_ypf_NationalEnergySectorMember_1403379" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_2072" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_RangeAxis_2072" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_2073" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_2072" xlink:to="loc_ifrs-full_RangeDomain_2073" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_2073_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_2072" xlink:to="loc_ifrs-full_RangeDomain_2073_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_2181" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_2073" xlink:to="loc_ifrs-full_BottomOfRangeMember_2181" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_2182" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_2073" xlink:to="loc_ifrs-full_TopOfRangeMember_2182" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis_2075" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_EventAfterReportingAxis_2075" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_2076" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_EventAfterReportingAxis_2075" xlink:to="loc_ypf_EventAfterReportingMember_2076" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember_2076_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_EventAfterReportingAxis_2075" xlink:to="loc_ypf_EventAfterReportingMember_2076_default" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2064" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065_default" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" xlink:label="loc_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember_1402183" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2065" xlink:to="loc_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember_1402183" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis_2066" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_PastDueStatusAxis_2066" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_2067" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_PastDueStatusAxis_2066" xlink:to="loc_ifrs-full_PastDueStatusDomain_2067" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain_2067_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_PastDueStatusAxis_2066" xlink:to="loc_ifrs-full_PastDueStatusDomain_2067_default" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis_2063" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_MeasurementAxis_2063" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_2053" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MeasurementAxis_2063" xlink:to="loc_ifrs-full_MeasurementDomain_2053" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain_2053_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MeasurementAxis_2063" xlink:to="loc_ifrs-full_MeasurementDomain_2053_default" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Axis" xlink:label="loc_ypf_PlanName1Axis_2068" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PlanName1Axis_2068" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Domain" xlink:label="loc_ypf_PlanName1Domain_2069" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_PlanName1Axis_2068" xlink:to="loc_ypf_PlanName1Domain_2069" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Domain" xlink:label="loc_ypf_PlanName1Domain_2069_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_PlanName1Axis_2068" xlink:to="loc_ypf_PlanName1Domain_2069_default" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_2070" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_2070" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_2071" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_2070" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_2071" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_2071_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_2070" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_2071_default" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgriculturalProductsMember" xlink:label="loc_ypf_AgriculturalProductsMember_1335646" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_AgriculturalProductsMember_1335646" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportedDieselMember" xlink:label="loc_ypf_ImportedDieselMember_1402674" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_ImportedDieselMember_1402674" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportedGasolineMember" xlink:label="loc_ypf_ImportedGasolineMember_1402673" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_ImportedGasolineMember_1402673" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WheatCornAndSorghumMember" xlink:label="loc_ypf_WheatCornAndSorghumMember_1402672" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_WheatCornAndSorghumMember_1402672" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SoybeanMember" xlink:label="loc_ypf_SoybeanMember_1402677" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_SoybeanMember_1402677" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SoybeanByproductsMember" xlink:label="loc_ypf_SoybeanByproductsMember_1402678" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_SoybeanByproductsMember_1402678" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrainsMember" xlink:label="loc_ypf_GrainsMember_1403034" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_GrainsMember_1403034" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CornAndSorghumMember" xlink:label="loc_ypf_CornAndSorghumMember_1403393" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_CornAndSorghumMember_1403393" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WheatMember" xlink:label="loc_ypf_WheatMember_1403394" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ProductsAndServicesDomain_2071" xlink:to="loc_ypf_WheatMember_1403394" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_2056" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_2056" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_2056_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_2055" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_2056_default" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_2059" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_2059" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_2059_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis_2054" xlink:to="loc_ifrs-full_CategoriesOfFinancialAssetsDomain_2059_default" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_2077" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_2077" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_2062" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_2077" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_2062" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_2062_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_2077" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_2062_default" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2060" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2060" use="optional" order="55" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2061" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2060" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2061" use="optional" order="56" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2061_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2060" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2061_default" use="optional" order="57" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_637934" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ifrs-full_SegmentsAxis_637934" use="optional" order="58" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_637935" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SegmentsAxis_637934" xlink:to="loc_ifrs-full_SegmentsDomain_637935" use="optional" order="59" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_637935_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SegmentsAxis_637934" xlink:to="loc_ifrs-full_SegmentsDomain_637935_default" use="optional" order="60" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionTypeAxis" xlink:label="loc_ypf_ResolutionTypeAxis_637938" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_ResolutionTypeAxis_637938" use="optional" order="61" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionMember" xlink:label="loc_ypf_ResolutionMember_637942" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ResolutionTypeAxis_637938" xlink:to="loc_ypf_ResolutionMember_637942" use="optional" order="62" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionMember" xlink:label="loc_ypf_ResolutionMember_637942_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ResolutionTypeAxis_637938" xlink:to="loc_ypf_ResolutionMember_637942_default" use="optional" order="63" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeAxis" xlink:label="loc_ypf_DecreeTypeAxis_637968" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_DecreeTypeAxis_637968" use="optional" order="64" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeMember" xlink:label="loc_ypf_DecreeTypeMember_637969" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_DecreeTypeAxis_637968" xlink:to="loc_ypf_DecreeTypeMember_637969" use="optional" order="65" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeMember" xlink:label="loc_ypf_DecreeTypeMember_637969_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_DecreeTypeAxis_637968" xlink:to="loc_ypf_DecreeTypeMember_637969_default" use="optional" order="66" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xlink:label="loc_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member_1402666" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DecreeTypeMember_637969" xlink:to="loc_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member_1402666" use="optional" order="67" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeAxis" xlink:label="loc_ypf_InstallmentTypeAxis_637973" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_InstallmentTypeAxis_637973" use="optional" order="68" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeMember" xlink:label="loc_ypf_InstallmentTypeMember_637974" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_InstallmentTypeAxis_637973" xlink:to="loc_ypf_InstallmentTypeMember_637974" use="optional" order="69" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeMember" xlink:label="loc_ypf_InstallmentTypeMember_637974_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_InstallmentTypeAxis_637973" xlink:to="loc_ypf_InstallmentTypeMember_637974_default" use="optional" order="70" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveAxis" xlink:label="loc_ypf_TakeRespectiveAxis_637977" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_TakeRespectiveAxis_637977" use="optional" order="71" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveMember" xlink:label="loc_ypf_TakeRespectiveMember_637978" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_TakeRespectiveAxis_637977" xlink:to="loc_ypf_TakeRespectiveMember_637978" use="optional" order="72" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveMember" xlink:label="loc_ypf_TakeRespectiveMember_637978_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_TakeRespectiveAxis_637977" xlink:to="loc_ypf_TakeRespectiveMember_637978_default" use="optional" order="73" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyAxis" xlink:label="loc_srt_EnergyAxis_865532" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_srt_EnergyAxis_865532" use="optional" order="74" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyDomain" xlink:label="loc_srt_EnergyDomain_865534" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_EnergyAxis_865532" xlink:to="loc_srt_EnergyDomain_865534" use="optional" order="75" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyDomain" xlink:label="loc_srt_EnergyDomain_865534_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_EnergyAxis_865532" xlink:to="loc_srt_EnergyDomain_865534_default" use="optional" order="76" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationAxis" xlink:label="loc_ypf_LocationAxis_1402160" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_LocationAxis_1402160" use="optional" order="77" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationMember" xlink:label="loc_ypf_LocationMember_1402161" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_LocationAxis_1402160" xlink:to="loc_ypf_LocationMember_1402161" use="optional" order="78" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationMember" xlink:label="loc_ypf_LocationMember_1402161_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_LocationAxis_1402160" xlink:to="loc_ypf_LocationMember_1402161_default" use="optional" order="79" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodAxis" xlink:label="loc_ypf_PeriodAxis_1402555" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PeriodAxis_1402555" use="optional" order="80" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain_1402556" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_PeriodAxis_1402555" xlink:to="loc_ypf_PeriodDomain_1402556" use="optional" order="81" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain_1402556_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_PeriodAxis_1402555" xlink:to="loc_ypf_PeriodDomain_1402556_default" use="optional" order="82" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xlink:label="loc_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember_1402557" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_PeriodDomain_1402556" xlink:to="loc_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember_1402557" use="optional" order="83" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeAxis" xlink:label="loc_ypf_SchemeAxis_1402560" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_SchemeAxis_1402560" use="optional" order="84" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeMember" xlink:label="loc_ypf_SchemeMember_1402561" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_SchemeAxis_1402560" xlink:to="loc_ypf_SchemeMember_1402561" use="optional" order="85" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeMember" xlink:label="loc_ypf_SchemeMember_1402561_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_SchemeAxis_1402560" xlink:to="loc_ypf_SchemeMember_1402561_default" use="optional" order="86" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xlink:label="loc_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember_1402562" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SchemeMember_1402561" xlink:to="loc_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember_1402562" use="optional" order="87" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxBenefitsForPriceAgreementsMember" xlink:label="loc_ypf_TaxBenefitsForPriceAgreementsMember_1402570" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_SchemeMember_1402561" xlink:to="loc_ypf_TaxBenefitsForPriceAgreementsMember_1402570" use="optional" order="88" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityAxis" xlink:label="loc_ypf_PeriodOfApplicabilityAxis_1402571" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PeriodOfApplicabilityAxis_1402571" use="optional" order="89" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityMember" xlink:label="loc_ypf_PeriodOfApplicabilityMember_1402572" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_PeriodOfApplicabilityAxis_1402571" xlink:to="loc_ypf_PeriodOfApplicabilityMember_1402572" use="optional" order="90" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityMember" xlink:label="loc_ypf_PeriodOfApplicabilityMember_1402572_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_PeriodOfApplicabilityAxis_1402571" xlink:to="loc_ypf_PeriodOfApplicabilityMember_1402572_default" use="optional" order="91" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationAxis" xlink:label="loc_ypf_NotificationAxis_1402576" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_NotificationAxis_1402576" use="optional" order="92" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember_1402577" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_NotificationAxis_1402576" xlink:to="loc_ypf_NotificationMember_1402577" use="optional" order="93" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember_1402577_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_NotificationAxis_1402576" xlink:to="loc_ypf_NotificationMember_1402577_default" use="optional" order="94" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageAxis" xlink:label="loc_ypf_PurposeOfUsageAxis_1402586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_PurposeOfUsageAxis_1402586" use="optional" order="95" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember_1402587" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_PurposeOfUsageAxis_1402586" xlink:to="loc_ypf_PurposeOfUsageMember_1402587" use="optional" order="96" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember_1402587_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_PurposeOfUsageAxis_1402586" xlink:to="loc_ypf_PurposeOfUsageMember_1402587_default" use="optional" order="97" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActAxis" xlink:label="loc_ypf_StatutoryActAxis_1402592" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_StatutoryActAxis_1402592" use="optional" order="98" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember_1402593" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_StatutoryActAxis_1402592" xlink:to="loc_ypf_StatutoryActMember_1402593" use="optional" order="99" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember_1402593_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_StatutoryActAxis_1402592" xlink:to="loc_ypf_StatutoryActMember_1402593_default" use="optional" order="100" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteAxis" xlink:label="loc_ypf_ApplicableStatuteAxis_1402682" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_2058" xlink:to="loc_ypf_ApplicableStatuteAxis_1402682" use="optional" order="101" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteDomain" xlink:label="loc_ypf_ApplicableStatuteDomain_1402683" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ApplicableStatuteAxis_1402682" xlink:to="loc_ypf_ApplicableStatuteDomain_1402683" use="optional" order="102" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteDomain" xlink:label="loc_ypf_ApplicableStatuteDomain_1402683_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ApplicableStatuteAxis_1402682" xlink:to="loc_ypf_ApplicableStatuteDomain_1402683_default" use="optional" order="103" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectInvestmentInForeignCurrency" xlink:label="loc_ypf_DirectInvestmentInForeignCurrency_2088" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_DirectInvestmentInForeignCurrency_2088" use="optional" order="104" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xlink:label="loc_ypf_DirectInvestmentInForeignCurrencyAfterAmendment_2089" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_DirectInvestmentInForeignCurrencyAfterAmendment_2089" use="optional" order="105" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xlink:label="loc_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons_2090" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons_2090" use="optional" order="106" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xlink:label="loc_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent_2091" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent_2091" use="optional" order="107" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyPercentage" xlink:label="loc_ypf_ExportDutyPercentage_2093" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportDutyPercentage_2093" use="optional" order="108" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsentExpressionTerm" xlink:label="loc_ypf_ConsentExpressionTerm_2119" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ConsentExpressionTerm_2119" use="optional" order="109" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicDistributionServiceTerm" xlink:label="loc_ypf_PublicDistributionServiceTerm_2129" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PublicDistributionServiceTerm_2129" use="optional" order="110" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LicenseRenewalTerm" xlink:label="loc_ypf_LicenseRenewalTerm_2130" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_LicenseRenewalTerm_2130" use="optional" order="111" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionalLicenseRenewalTerm" xlink:label="loc_ypf_AdditionalLicenseRenewalTerm_1403111" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_AdditionalLicenseRenewalTerm_1403111" use="optional" order="112" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LicenseAgreementPeriod" xlink:label="loc_ypf_LicenseAgreementPeriod_2131" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_LicenseAgreementPeriod_2131" use="optional" order="113" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ApplicableTaxRate" xlink:label="loc_ifrs-full_ApplicableTaxRate_2149" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ifrs-full_ApplicableTaxRate_2149" use="optional" order="114" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfConventionalExplorationTerm" xlink:label="loc_ypf_PermitOfConventionalExplorationTerm_1330576" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfConventionalExplorationTerm_1330576" use="optional" order="115" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfConventionalExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfConventionalExplorationTerm_1330580" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfExtensionOfConventionalExplorationTerm_1330580" use="optional" order="116" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfUnconventionalExplorationTerm" xlink:label="loc_ypf_PermitOfUnconventionalExplorationTerm_1330584" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfUnconventionalExplorationTerm_1330584" use="optional" order="117" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfUnconventionalExplorationTerm_1330586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfExtensionOfUnconventionalExplorationTerm_1330586" use="optional" order="118" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:label="loc_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm_1330589" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm_1330589" use="optional" order="119" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm_1330593" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm_1330593" use="optional" order="120" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConventionalExploitationConcessionTerm" xlink:label="loc_ypf_ConventionalExploitationConcessionTerm_1331418" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ConventionalExploitationConcessionTerm_1331418" use="optional" order="121" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnconventionalExploitationConcessionTerm" xlink:label="loc_ypf_UnconventionalExploitationConcessionTerm_1331425" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_UnconventionalExploitationConcessionTerm_1331425" use="optional" order="122" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xlink:label="loc_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm_1331426" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm_1331426" use="optional" order="123" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfAdvanceFee" xlink:label="loc_ypf_PercentageOfAdvanceFee_1331456" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfAdvanceFee_1331456" use="optional" order="124" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageReductionInTheConcessionFee" xlink:label="loc_ypf_PercentageReductionInTheConcessionFee_1331460" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageReductionInTheConcessionFee_1331460" use="optional" order="125" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPermitTerm" xlink:label="loc_ypf_ExportPermitTerm_1331560" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportPermitTerm_1331560" use="optional" order="126" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xlink:label="loc_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024_1332844" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024_1332844" use="optional" order="127" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PersonalAssetsTaxRate" xlink:label="loc_ypf_PersonalAssetsTaxRate_1332878" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PersonalAssetsTaxRate_1332878" use="optional" order="128" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FloatingRateForHydrocarbonExportDuties" xlink:label="loc_ypf_FloatingRateForHydrocarbonExportDuties_1332891" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_FloatingRateForHydrocarbonExportDuties_1332891" use="optional" order="129" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BrentCrudePrice" xlink:label="loc_ypf_BrentCrudePrice_1332895" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_BrentCrudePrice_1332895" use="optional" order="130" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportTaxRate" xlink:label="loc_ypf_ExportTaxRate_1335453" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ExportTaxRate_1335453" use="optional" order="131" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageRateVariationInTheCPI" xlink:label="loc_ypf_PercentageRateVariationInTheCPI_1335509" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageRateVariationInTheCPI_1335509" use="optional" order="132" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xlink:label="loc_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries_1335531" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries_1335531" use="optional" order="133" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xlink:label="loc_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses_1402177" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses_1402177" use="optional" order="134" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xlink:label="loc_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation_1402179" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation_1402179" use="optional" order="135" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xlink:label="loc_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding_1402324" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding_1402324" use="optional" order="136" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransportationConcessionTerm" xlink:label="loc_ypf_TransportationConcessionTerm_1402476" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TransportationConcessionTerm_1402476" use="optional" order="137" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermOfExtensionOfTransportationConcession" xlink:label="loc_ypf_TermOfExtensionOfTransportationConcession_1402553" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TermOfExtensionOfTransportationConcession_1402553" use="optional" order="138" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xlink:label="loc_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards_1402554" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards_1402554" use="optional" order="139" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xlink:label="loc_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized_1402558" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized_1402558" use="optional" order="140" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xlink:label="loc_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad_1402567" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad_1402567" use="optional" order="141" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xlink:label="loc_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices_1402564" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices_1402564" use="optional" order="142" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageTaxRateForImportOfGoods" xlink:label="loc_ypf_PercentageTaxRateForImportOfGoods_1402565" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageTaxRateForImportOfGoods_1402565" use="optional" order="143" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfExportDutyAfterReduction" xlink:label="loc_ypf_PercentageOfExportDutyAfterReduction_1402569" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfExportDutyAfterReduction_1402569" use="optional" order="144" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewExploitationConcessionTerm" xlink:label="loc_ypf_NewExploitationConcessionTerm_1403030" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_NewExploitationConcessionTerm_1403030" use="optional" order="145" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfRoyaltyAtBidderDiscretion" xlink:label="loc_ypf_PercentageOfRoyaltyAtBidderDiscretion_1403031" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfRoyaltyAtBidderDiscretion_1403031" use="optional" order="146" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xlink:label="loc_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties_1403032" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties_1403032" use="optional" order="147" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProgramOfShipmentsOrDeliveriesTerm" xlink:label="loc_ypf_ProgramOfShipmentsOrDeliveriesTerm_1403152" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_ProgramOfShipmentsOrDeliveriesTerm_1403152" use="optional" order="148" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpdatedOfExportPermitTerm" xlink:label="loc_ypf_UpdatedOfExportPermitTerm_1403368" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_UpdatedOfExportPermitTerm_1403368" use="optional" order="149" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xlink:label="loc_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate_1403371" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate_1403371" use="optional" order="150" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfGeneralServiceCustomersRate" xlink:label="loc_ypf_PercentageOfGeneralServiceCustomersRate_1403377" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_PercentageOfGeneralServiceCustomersRate_1403377" use="optional" order="151" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RenewableEnergiesTerm" xlink:label="loc_ypf_RenewableEnergiesTerm_1403378" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_RenewableEnergiesTerm_1403378" use="optional" order="152" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfReceivedCompensationFromNationalGovernment" xlink:label="loc_ypf_AmountOfReceivedCompensationFromNationalGovernment_1403382" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_2057" xlink:to="loc_ypf_AmountOfReceivedCompensationFromNationalGovernment_1403382" use="optional" order="153" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_1403164" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_1403164" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationAxis" xlink:label="loc_ypf_NotificationAxis_1403158" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ypf_NotificationAxis_1403158" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember_1403159" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_NotificationAxis_1403158" xlink:to="loc_ypf_NotificationMember_1403159" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember_1403159_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_NotificationAxis_1403158" xlink:to="loc_ypf_NotificationMember_1403159_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActAxis" xlink:label="loc_ypf_StatutoryActAxis_1403174" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ypf_StatutoryActAxis_1403174" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember_1403175" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_StatutoryActAxis_1403174" xlink:to="loc_ypf_StatutoryActMember_1403175" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember_1403175_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_StatutoryActAxis_1403174" xlink:to="loc_ypf_StatutoryActMember_1403175_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" xlink:label="loc_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member_1403176" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_StatutoryActMember_1403175" xlink:to="loc_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member_1403176" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageAxis" xlink:label="loc_ypf_PurposeOfUsageAxis_1403169" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable_1403157" xlink:to="loc_ypf_PurposeOfUsageAxis_1403169" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember_1403170" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_PurposeOfUsageAxis_1403169" xlink:to="loc_ypf_PurposeOfUsageMember_1403170" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember_1403170_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_PurposeOfUsageAxis_1403169" xlink:to="loc_ypf_PurposeOfUsageMember_1403170_default" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xlink:label="loc_ypf_MaximumPercentageOfPermissibleInterestsInGasStations_1403166" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems_1403164" xlink:to="loc_ypf_MaximumPercentageOfPermissibleInterestsInGasStations_1403166" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xlink:label="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xlink:label="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_2197" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ifrs-full_JointVenturesAxis_2197" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_2195" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_2197" xlink:to="loc_ifrs-full_JointVenturesDomain_2195" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_2195_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_2197" xlink:to="loc_ifrs-full_JointVenturesDomain_2195_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_2220" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_YPFEEMember_2220" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember_2214" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_ProfertilMember_2214" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember_2215" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_MEGAMember_2215" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember_2216" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_RefinorMember_2216" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember_637561" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_OLCLPMember_637561" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SustentatorSaMember" xlink:label="loc_ypf_SustentatorSaMember_865683" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_SustentatorSaMember_865683" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1402113" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_CTBarraganMember_1402113" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMember" xlink:label="loc_ypf_OTAMember_2209" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_OTAMember_2209" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTCMember" xlink:label="loc_ypf_OTCMember_1402404" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_2195" xlink:to="loc_ypf_OTCMember_1402404" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis_2198" xlink:to="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember_2205" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_CDSMember_2205" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember_2206" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_YPFGasMember_2206" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember_2207" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_OldelvalMember_2207" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember_2208" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_TermapMember_2208" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GpaMember" xlink:label="loc_ypf_GpaMember_2211" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_GpaMember_2211" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember_1403203" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_OTAMERICAMember_1403203" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasAustralSAMember" xlink:label="loc_ypf_GasAustralSAMember_2213" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_GasAustralSAMember_2213" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember_1403027" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain_2194" xlink:to="loc_ypf_VmosMember_1403027" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable_2193" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2191" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196_default" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesWhereEntityIsVenturerMember" xlink:label="loc_ifrs-full_JointVenturesWhereEntityIsVenturerMember_2223" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" xlink:to="loc_ifrs-full_JointVenturesWhereEntityIsVenturerMember_2223" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="loc_ifrs-full_AssociatesMember_2224" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" xlink:to="loc_ifrs-full_AssociatesMember_2224" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JointVenturesAndAssociatesMember" xlink:label="loc_ypf_JointVenturesAndAssociatesMember_2225" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2196" xlink:to="loc_ypf_JointVenturesAndAssociatesMember_2225" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables_1402467" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_OtherNoncurrentReceivables_1402467" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables_2199" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_OtherCurrentReceivables_2199" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables_2200" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentTradeReceivables_2200" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue_2202" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_Revenue_2202" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CostOfSales" xlink:label="loc_ifrs-full_CostOfSales_2203" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CostOfSales_2203" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRevenueExpense" xlink:label="loc_ifrs-full_InterestRevenueExpense_2204" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_InterestRevenueExpense_2204" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets_1402468" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets_1402468" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets_1332127" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentFinancialAssets_1332127" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables_2201" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables_2201" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractLiabilities" xlink:label="loc_ifrs-full_CurrentContractLiabilities_1403202" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentContractLiabilities_1403202" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractAssets" xlink:label="loc_ifrs-full_CurrentContractAssets_637249" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems_2192" xlink:to="loc_ifrs-full_CurrentContractAssets_637249" use="optional" order="41" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" xlink:to="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis_2228" xlink:to="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SeMember" xlink:label="loc_ypf_SeMember_1403028" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_SeMember_1403028" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SecretaryOfTransportMember" xlink:label="loc_ypf_SecretaryOfTransportMember_1403029" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_SecretaryOfTransportMember_1403029" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ArcaMember" xlink:label="loc_ypf_ArcaMember_1402125" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_ArcaMember_1402125" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SecretaryOfIndustryMember" xlink:label="loc_ypf_SecretaryOfIndustryMember_2238" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_SecretaryOfIndustryMember_2238" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CammesaMember" xlink:label="loc_ypf_CammesaMember_2239" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_CammesaMember_2239" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CammesaOneMember" xlink:label="loc_ypf_CammesaOneMember_2240" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_CammesaOneMember_2240" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ENARSAMember" xlink:label="loc_ypf_ENARSAMember_1402126" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_ENARSAMember_1402126" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ENARSAOneMember" xlink:label="loc_ypf_ENARSAOneMember_1402280" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_ENARSAOneMember_1402280" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AerolineasArgentinasSAMember" xlink:label="loc_ypf_AerolineasArgentinasSAMember_2243" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_AerolineasArgentinasSAMember_2243" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AerolineasArgentinasSAOneMember" xlink:label="loc_ypf_AerolineasArgentinasSAOneMember_2244" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_AerolineasArgentinasSAOneMember_2244" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguaYSaneamientosArgentinosS.a.Member" xlink:label="loc_ypf_AguaYSaneamientosArgentinosS.a.Member_1331492" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain_2231" xlink:to="loc_ypf_AguaYSaneamientosArgentinosS.a.Member_1331492" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersAxis" xlink:label="loc_ifrs-full_MajorCustomersAxis_2232" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_2230" xlink:to="loc_ifrs-full_MajorCustomersAxis_2232" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersDomain" xlink:label="loc_ifrs-full_MajorCustomersDomain_2233" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MajorCustomersAxis_2232" xlink:to="loc_ifrs-full_MajorCustomersDomain_2233" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersDomain" xlink:label="loc_ifrs-full_MajorCustomersDomain_2233_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MajorCustomersAxis_2232" xlink:to="loc_ifrs-full_MajorCustomersDomain_2233_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasarPlanMember" xlink:label="loc_ypf_GasarPlanMember_1334573" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_GasarPlanMember_1334573" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropaneGasSupplyAgreementMember" xlink:label="loc_ypf_PropaneGasSupplyAgreementMember_2247" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_PropaneGasSupplyAgreementMember_2247" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xlink:label="loc_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember_2250" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember_2250" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xlink:label="loc_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember_1334563" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember_1334563" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompensationToDecreeNo10532018Member" xlink:label="loc_ypf_CompensationToDecreeNo10532018Member_1402325" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MajorCustomersDomain_2233" xlink:to="loc_ypf_CompensationToDecreeNo10532018Member_1402325" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xlink:label="loc_ypf_AmountsReceivableOrPayableRelatedPartyTransactions_2234" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" xlink:to="loc_ypf_AmountsReceivableOrPayableRelatedPartyTransactions_2234" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeExpenseForRelatedPartyTransactions" xlink:label="loc_ypf_IncomeExpenseForRelatedPartyTransactions_2235" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_2229" xlink:to="loc_ypf_IncomeExpenseForRelatedPartyTransactions_2235" use="optional" order="25" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_861735" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_861735" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_861735_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_861734" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_861735_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis_861738" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_CounterpartiesAxis_861738" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_861739" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CounterpartiesAxis_861738" xlink:to="loc_ifrs-full_CounterpartiesDomain_861739" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain_861739_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CounterpartiesAxis_861738" xlink:to="loc_ifrs-full_CounterpartiesDomain_861739_default" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" xlink:label="loc_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember_861740" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CounterpartiesDomain_861739" xlink:to="loc_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember_861740" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xlink:label="loc_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember_1402326" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CounterpartiesDomain_861739" xlink:to="loc_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember_1402326" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403015" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403015" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403015_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403014" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403015_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationAxis" xlink:label="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationDomain" xlink:label="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" xlink:to="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationDomain" xlink:label="loc_ypf_ComprehensiveIncomeLocationDomain_1403019_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ComprehensiveIncomeLocationAxis_1403018" xlink:to="loc_ypf_ComprehensiveIncomeLocationDomain_1403019_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SellingGeneralAndAdministrativeExpenseMember" xlink:label="loc_ifrs-full_SellingGeneralAndAdministrativeExpenseMember_1403020" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" xlink:to="loc_ifrs-full_SellingGeneralAndAdministrativeExpenseMember_1403020" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" xlink:label="loc_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember_1403021" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ComprehensiveIncomeLocationDomain_1403019" xlink:to="loc_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember_1403021" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis_1403022" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable_861733" xlink:to="loc_ifrs-full_JointVenturesAxis_1403022" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403023" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_JointVenturesAxis_1403022" xlink:to="loc_ifrs-full_JointVenturesDomain_1403023" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain_1403023_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_JointVenturesAxis_1403022" xlink:to="loc_ifrs-full_JointVenturesDomain_1403023_default" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember_1403024" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1403023" xlink:to="loc_ypf_YPFEEMember_1403024" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember_1403025" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_JointVenturesDomain_1403023" xlink:to="loc_ypf_CTBarraganMember_1403025" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfOilAndGasAssets" xlink:label="loc_ifrs-full_PurchaseOfOilAndGasAssets_861743" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_PurchaseOfOilAndGasAssets_861743" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBalancePayable" xlink:label="loc_ypf_NetBalancePayable_861744" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ypf_NetBalancePayable_861744" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1332345" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1332345" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1332346" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation_1332346" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentProvisions" xlink:label="loc_ifrs-full_NoncurrentProvisions_1403026" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems_861741" xlink:to="loc_ifrs-full_NoncurrentProvisions_1403026" use="optional" order="27" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlanLineItems" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlanTable" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansAxis" xlink:label="loc_ifrs-full_DefinedBenefitPlansAxis_2265" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ifrs-full_DefinedBenefitPlansAxis_2265" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="loc_ifrs-full_DefinedBenefitPlansDomain_2266" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_DefinedBenefitPlansAxis_2265" xlink:to="loc_ifrs-full_DefinedBenefitPlansDomain_2266" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="loc_ifrs-full_DefinedBenefitPlansDomain_2266_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_DefinedBenefitPlansAxis_2265" xlink:to="loc_ifrs-full_DefinedBenefitPlansDomain_2266_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RetirementPlanMember" xlink:label="loc_ypf_RetirementPlanMember_2275" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DefinedBenefitPlansDomain_2266" xlink:to="loc_ypf_RetirementPlanMember_2275" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xlink:label="loc_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember_2276" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DefinedBenefitPlansDomain_2266" xlink:to="loc_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember_2276" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2270" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ValueGenerationPlanMember" xlink:label="loc_ypf_ValueGenerationPlanMember_1402998" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" xlink:to="loc_ypf_ValueGenerationPlanMember_1402998" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember_1403300" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2269" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember_1403300" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1402449" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable_2268" xlink:to="loc_ifrs-full_RangeAxis_1402449" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402450" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1402449" xlink:to="loc_ifrs-full_RangeDomain_1402450" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1402450_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1402449" xlink:to="loc_ifrs-full_RangeDomain_1402450_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1402451" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1402450" xlink:to="loc_ifrs-full_TopOfRangeMember_1402451" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember_1402452" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1402450" xlink:to="loc_ifrs-full_BottomOfRangeMember_1402452" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EmployeeBenefitsExpense" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense_2277" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_EmployeeBenefitsExpense_2277" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xlink:label="loc_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan_1402604" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan_1402604" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402999" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402999" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement_1403004" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement_1403004" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageSharePrice2019" xlink:label="loc_ifrs-full_WeightedAverageSharePrice2019_1403005" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_WeightedAverageSharePrice2019_1403005" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" xlink:label="loc_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019_1403006" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019_1403006" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" xlink:label="loc_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019_1403007" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019_1403007" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1403008" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems_2267" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets_1403008" use="optional" order="24" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2331" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2333" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_1402395" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2332" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember_1402395" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_861721" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_861721" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2336" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2336" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2337" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2337" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2340" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2330" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2340" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2309" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2311" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1402397" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2310" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember_1402397" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_2312" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_2312" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2313" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2313" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2314" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2314" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2315" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2315" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660931" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660931" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2318" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2308" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2318" use="optional" order="11" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1330193" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1330194" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember_1402399" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1330195" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember_1402399" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1330201" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1330201" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1330203" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1330203" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1330205" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1330205" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1330206" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1330206" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1330212" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1330212" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1330219" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1330199" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1330219" use="optional" order="11" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1402077" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1402078" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402401" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1402079" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember_1402401" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1402082" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1402082" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402083" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1402083" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1402084" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_1402084" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1402085" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_1402085" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1402087" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1402087" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1402088" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1402081" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1402088" use="optional" order="11" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_2357" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_2359" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember_2367" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_2358" xlink:to="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember_2367" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_2360" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_2360" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2361" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_2361" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2362" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement_2362" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2363" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement_2363" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660932" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_660932" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2366" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_2356" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_2366" use="optional" order="11" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable_1403324" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis_1403325" xlink:to="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Plan20252028Member" xlink:label="loc_ypf_Plan20252028Member_1403327" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain_1403326" xlink:to="loc_ypf_Plan20252028Member_1403327" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1403333" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement_1403333" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions_1403338" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_NumberOfOutstandingShareOptions_1403338" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1403341" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees_1403341" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1403339" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems_1403329" xlink:to="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_1403339" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_2493" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IssueOfDebtNotesMember" xlink:label="loc_ypf_IssueOfDebtNotesMember_1402621" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" xlink:to="loc_ypf_IssueOfDebtNotesMember_1402621" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsExchangeMember" xlink:label="loc_ypf_AssetsExchangeMember_1403245" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_2494" xlink:to="loc_ypf_AssetsExchangeMember_1403245" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis_2490" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_ClassesOfProvisionsAxis_2490" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_2495" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_2490" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_2495" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain_2495_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis_2490" xlink:to="loc_ifrs-full_ClassesOfOtherProvisionsDomain_2495_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis_638026" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_BorrowingsByNameAxis_638026" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_638027" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_638026" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_638027" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain_638027_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BorrowingsByNameAxis_638026" xlink:to="loc_ifrs-full_BorrowingsByNameDomain_638027_default" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis_640141" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_TypesOfInterestRatesAxis_640141" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_640142" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_640141" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_640142" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain_640142_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis_640141" xlink:to="loc_ifrs-full_TypesOfInterestRatesDomain_640142_default" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis_673590" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_ProductsAndServicesAxis_673590" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_673591" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_673590" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_673591" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain_673591_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ProductsAndServicesAxis_673590" xlink:to="loc_ifrs-full_ProductsAndServicesDomain_673591_default" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_861755" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_RangeAxis_861755" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_861756" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_861755" xlink:to="loc_ifrs-full_RangeDomain_861756" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_861756_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_861755" xlink:to="loc_ifrs-full_RangeDomain_861756_default" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis_861796" xlink:to="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797_default" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassXXXIVMember" xlink:label="loc_ypf_ClassXXXIVMember_1402987" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" xlink:to="loc_ypf_ClassXXXIVMember_1402987" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassxliiMember" xlink:label="loc_ypf_ClassxliiMember_1403278" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain_861797" xlink:to="loc_ypf_ClassxliiMember_1403278" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsAxis" xlink:label="loc_ypf_ClassOfBorrowingsAxis_1329561" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ypf_ClassOfBorrowingsAxis_1329561" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsMember" xlink:label="loc_ypf_ClassOfBorrowingsMember_1329586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ClassOfBorrowingsAxis_1329561" xlink:to="loc_ypf_ClassOfBorrowingsMember_1329586" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsMember" xlink:label="loc_ypf_ClassOfBorrowingsMember_1329586_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ClassOfBorrowingsAxis_1329561" xlink:to="loc_ypf_ClassOfBorrowingsMember_1329586_default" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityAxis" xlink:label="loc_ypf_LetterOfCreditFacilityAxis_1402060" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ypf_LetterOfCreditFacilityAxis_1402060" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityMember" xlink:label="loc_ypf_LetterOfCreditFacilityMember_1402061" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_LetterOfCreditFacilityAxis_1402060" xlink:to="loc_ypf_LetterOfCreditFacilityMember_1402061" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityMember" xlink:label="loc_ypf_LetterOfCreditFacilityMember_1402061_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_LetterOfCreditFacilityAxis_1402060" xlink:to="loc_ypf_LetterOfCreditFacilityMember_1402061_default" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1402494" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1402494" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1402494_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis_1402493" xlink:to="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain_1402494_default" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402498" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402498" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402499" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402498" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402499" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402499_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402498" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402499_default" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleAxis" xlink:label="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleMember" xlink:label="loc_ypf_ClassifiedAsHeldForSaleMember_1402609" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" xlink:to="loc_ypf_ClassifiedAsHeldForSaleMember_1402609" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleMember" xlink:label="loc_ypf_ClassifiedAsHeldForSaleMember_1402609_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ypf_ClassifiedAsHeldForSaleAxis_1402608" xlink:to="loc_ypf_ClassifiedAsHeldForSaleMember_1402609_default" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402613" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402613" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402613_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis_1402612" xlink:to="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain_1402613_default" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis_1402616" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_MaturityAxis_1402616" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1402617" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_MaturityAxis_1402616" xlink:to="loc_ifrs-full_MaturityDomain_1402617" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain_1402617_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_MaturityAxis_1402616" xlink:to="loc_ifrs-full_MaturityDomain_1402617_default" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JanuaryTwentyThousandThirtyFourMember" xlink:label="loc_ypf_JanuaryTwentyThousandThirtyFourMember_1402986" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1402617" xlink:to="loc_ypf_JanuaryTwentyThousandThirtyFourMember_1402986" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MarchTwentyThousandTwentyNineMember" xlink:label="loc_ypf_MarchTwentyThousandTwentyNineMember_1403280" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_MaturityDomain_1402617" xlink:to="loc_ypf_MarchTwentyThousandTwentyNineMember_1403280" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis_1403246" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable_2492" xlink:to="loc_ifrs-full_BusinessCombinationsAxis_1403246" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_1403247" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_1403246" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_1403247" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain_1403247_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_BusinessCombinationsAxis_1403246" xlink:to="loc_ifrs-full_BusinessCombinationsDomain_1403247_default" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember_1403248" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_VmiMember_1403248" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaVillanuevaMember" xlink:label="loc_ypf_AguadaVillanuevaMember_1403249" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_AguadaVillanuevaMember_1403249" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaSauMember" xlink:label="loc_ypf_EquinorArgentinaSauMember_1403282" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_EquinorArgentinaSauMember_1403282" use="optional" order="55" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurMember" xlink:label="loc_ypf_BandurriaSurMember_1403283" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BandurriaSurMember_1403283" use="optional" order="56" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroMember" xlink:label="loc_ypf_BajoDelToroMember_1403287" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BajoDelToroMember_1403287" use="optional" order="57" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurBlockMember" xlink:label="loc_ypf_BandurriaSurBlockMember_1403290" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BandurriaSurBlockMember_1403290" use="optional" order="58" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroNorteMember" xlink:label="loc_ypf_BajoDelToroNorteMember_1403292" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_BusinessCombinationsDomain_1403247" xlink:to="loc_ypf_BajoDelToroNorteMember_1403292" use="optional" order="59" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="loc_ifrs-full_BorrowingsMaturity_638037" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_BorrowingsMaturity_638037" use="optional" order="60" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="loc_ifrs-full_BorrowingsInterestRate_1402066" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_BorrowingsInterestRate_1402066" use="optional" order="61" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="loc_ifrs-full_NotionalAmount_1402988" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_NotionalAmount_1402988" use="optional" order="62" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfConsecutiveAnnualInstalments" xlink:label="loc_ypf_NumberOfConsecutiveAnnualInstalments_1402991" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_NumberOfConsecutiveAnnualInstalments_1402991" use="optional" order="63" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfInstallmentAmoritized" xlink:label="loc_ypf_PercentageOfInstallmentAmoritized_1402992" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_PercentageOfInstallmentAmoritized_1402992" use="optional" order="64" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xlink:label="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1403244" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff_1403244" use="optional" order="65" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403251" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary_1403251" use="optional" order="66" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BorrowingsInterestYieldRate" xlink:label="loc_ypf_BorrowingsInterestYieldRate_1403257" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ypf_BorrowingsInterestYieldRate_1403257" use="optional" order="67" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403281" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired_1403281" use="optional" order="68" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_1403286" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems_2491" xlink:to="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred_1403286" use="optional" order="69" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2516" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2516" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2517" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2516" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2517" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2517_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2516" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2517_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2555" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2517" xlink:to="loc_ypf_WorldwideMember_2555" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2556" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2517" xlink:to="loc_country_AR_2556" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2510" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513_default" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2550" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2550" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsolidatedAndEquityaccountedEntitiesMember" xlink:label="loc_ypf_ConsolidatedAndEquityaccountedEntitiesMember_2551" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2513" xlink:to="loc_ypf_ConsolidatedAndEquityaccountedEntitiesMember_2551" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_2515" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_2515" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain_2515_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis_2508" xlink:to="loc_ifrs-full_ClassesOfFinancialAssetsDomain_2515_default" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis_2509" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2512" xlink:to="loc_ifrs-full_ComponentsOfEquityAxis_2509" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_2514" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_2509" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_2514" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain_2514_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis_2509" xlink:to="loc_ifrs-full_ComponentsOfEquityDomain_2514_default" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesDevelopedMember" xlink:label="loc_ypf_ProvedReservesDevelopedMember_2552" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_2514" xlink:to="loc_ypf_ProvedReservesDevelopedMember_2552" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesUndevelopedMember" xlink:label="loc_ypf_ProvedReservesUndevelopedMember_2553" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain_2514" xlink:to="loc_ypf_ProvedReservesUndevelopedMember_2553" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilAndCondensate" xlink:label="loc_ypf_NetProvedReservesOfOilAndCondensate_2518" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilAndCondensate_2518" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xlink:label="loc_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates_2519" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates_2519" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xlink:label="loc_ypf_OilAndCondensateReserveExtensionsAndDiscoveries_2520" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveExtensionsAndDiscoveries_2520" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveImprovedRecovery" xlink:label="loc_ypf_OilAndCondensateReserveImprovedRecovery_2521" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveImprovedRecovery_2521" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReservePurchaseOfMinerals" xlink:label="loc_ypf_OilAndCondensateReservePurchaseOfMinerals_2522" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReservePurchaseOfMinerals_2522" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveSaleOfMinerals" xlink:label="loc_ypf_OilAndCondensateReserveSaleOfMinerals_2523" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveSaleOfMinerals_2523" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveProductionForYear" xlink:label="loc_ypf_OilAndCondensateReserveProductionForYear_2524" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_OilAndCondensateReserveProductionForYear_2524" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquids" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquids_2526" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquids_2526" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates_2527" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates_2527" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries_2528" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries_2528" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals_2531" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals_2531" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear_2532" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear_2532" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGas" xlink:label="loc_ypf_NetProvedReservesOfNaturalGas_2534" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGas_2534" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates_2535" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates_2535" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries_2536" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries_2536" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasImprovedRecovery_2537" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasImprovedRecovery_2537" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals_2538" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals_2538" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals_2539" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals_2539" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasProductionForYear_2540" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfNaturalGasProductionForYear_2540" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalent" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalent_2542" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalent_2542" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates_2543" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates_2543" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries_2544" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries_2544" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery_2545" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery_2545" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals_2546" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals_2546" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals_2547" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals_2547" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentProductionForYear_2548" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2511" xlink:to="loc_ypf_NetProvedReservesOfOilEquivalentProductionForYear_2548" use="optional" order="45" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2560" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilEquivalentMember" xlink:label="loc_ypf_OilEquivalentMember_2575" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2565" xlink:to="loc_ypf_OilEquivalentMember_2575" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2563" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis_2561" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2573" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain_2564" xlink:to="loc_ifrs-full_ConsolidatedStructuredEntitiesMember_2573" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedCrudeOilProductionDuringPeriod" xlink:label="loc_ypf_EstimatedCrudeOilProductionDuringPeriod_2567" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedCrudeOilProductionDuringPeriod_2567" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedCrudeOilReserves" xlink:label="loc_ypf_EstimatedProvedCrudeOilReserves_2568" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedCrudeOilReserves_2568" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedNaturalGasLiquidsProduction" xlink:label="loc_ypf_EstimatedNaturalGasLiquidsProduction_2569" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedNaturalGasLiquidsProduction_2569" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedNaturalGasLiquidsReserves" xlink:label="loc_ypf_EstimatedProvedNaturalGasLiquidsReserves_2570" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedNaturalGasLiquidsReserves_2570" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedNaturalGasProduction" xlink:label="loc_ypf_EstimatedNaturalGasProduction_2571" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedNaturalGasProduction_2571" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xlink:label="loc_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel_2566" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel_2566" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedBarrelOfOilEquivalentProduction" xlink:label="loc_ypf_EstimatedBarrelOfOilEquivalentProduction_2576" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedBarrelOfOilEquivalentProduction_2576" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedOilEquivalentReserves" xlink:label="loc_ypf_EstimatedProvedOilEquivalentReserves_2577" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedOilEquivalentReserves_2577" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xlink:label="loc_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel_1400972" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2562" xlink:to="loc_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel_1400972" use="optional" order="18" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChangesInOurEstimatedProvedReservesLineItems" xlink:label="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis_2580" xlink:to="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOil1Member" xlink:label="loc_ypf_CrudeOil1Member_2612" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_CrudeOil1Member_2612" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasLiquidsMember" xlink:label="loc_ypf_NaturalGasLiquidsMember_2613" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_NaturalGasLiquidsMember_2613" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember_2614" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_NaturalGasMember_2614" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOilAndNaturalGasMember" xlink:label="loc_ypf_CrudeOilAndNaturalGasMember_1383477" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain_2583" xlink:to="loc_ypf_CrudeOilAndNaturalGasMember_1383477" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis_2584" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_SegmentsAxis_2584" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_2585" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_SegmentsAxis_2584" xlink:to="loc_ifrs-full_SegmentsDomain_2585" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain_2585_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_SegmentsAxis_2584" xlink:to="loc_ifrs-full_SegmentsDomain_2585_default" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolfoSanJorgeBasinMember" xlink:label="loc_ypf_GolfoSanJorgeBasinMember_2617" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_2585" xlink:to="loc_ypf_GolfoSanJorgeBasinMember_2617" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" xlink:label="loc_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember_1403347" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_SegmentsDomain_2585" xlink:to="loc_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember_1403347" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesAxis" xlink:label="loc_ifrs-full_AccountingEstimatesAxis_657752" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_AccountingEstimatesAxis_657752" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesDomain" xlink:label="loc_ifrs-full_AccountingEstimatesDomain_657753" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_AccountingEstimatesAxis_657752" xlink:to="loc_ifrs-full_AccountingEstimatesDomain_657753" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesDomain" xlink:label="loc_ifrs-full_AccountingEstimatesDomain_657753_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_AccountingEstimatesAxis_657752" xlink:to="loc_ifrs-full_AccountingEstimatesDomain_657753_default" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis_1383478" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_RangeAxis_1383478" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1383479" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_RangeAxis_1383478" xlink:to="loc_ifrs-full_RangeDomain_1383479" use="optional" order="18" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain_1383479_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_RangeAxis_1383478" xlink:to="loc_ifrs-full_RangeDomain_1383479_default" use="optional" order="19" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember_1383480" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_RangeDomain_1383479" xlink:to="loc_ifrs-full_TopOfRangeMember_1383480" use="optional" order="20" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_1402697" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_GeographicalAreasAxis_1402697" use="optional" order="21" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402698" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402697" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402698" use="optional" order="22" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_1402698_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_1402697" xlink:to="loc_ifrs-full_GeographicalAreasDomain_1402698_default" use="optional" order="23" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ReserveQuantitiesByTypeOfReserveAxis" xlink:label="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" use="optional" order="24" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain_1402705" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" xlink:to="loc_srt_TypeOfReserveDomain_1402705" use="optional" order="25" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain_1402705_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis_1402704" xlink:to="loc_srt_TypeOfReserveDomain_1402705_default" use="optional" order="26" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" use="optional" order="27" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708" use="optional" order="28" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis_1402707" xlink:to="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708_default" use="optional" order="29" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" xlink:label="loc_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember_1403645" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain_1402708" xlink:to="loc_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember_1403645" use="optional" order="30" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" use="optional" order="31" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_1403134" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" xlink:to="loc_ifrs-full_CarryingAmountMember_1403134" use="optional" order="32" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember_1403134_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis_1403133" xlink:to="loc_ifrs-full_CarryingAmountMember_1403134_default" use="optional" order="33" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember_1403143" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_1403134" xlink:to="loc_ifrs-full_GrossCarryingAmountMember_1403143" use="optional" order="34" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403135" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_CarryingAmountMember_1403134" xlink:to="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember_1403135" use="optional" order="35" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis_1403136" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_ClassesOfAssetsAxis_1403136" use="optional" order="36" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403137" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403136" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403137" use="optional" order="37" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain_1403137_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis_1403136" xlink:to="loc_ifrs-full_ClassesOfAssetsDomain_1403137_default" use="optional" order="38" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember_1403138" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403137" xlink:to="loc_ypf_MatureFieldsProjectMember_1403138" use="optional" order="39" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChanarMember" xlink:label="loc_ypf_AguadaDelChanarMember_1403635" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403137" xlink:to="loc_ypf_AguadaDelChanarMember_1403635" use="optional" order="40" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember_1403636" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain_1403137" xlink:to="loc_ypf_OptimizationPlanMember_1403636" use="optional" order="41" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2582" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" use="optional" order="42" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1403140" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1403140" use="optional" order="43" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1403140_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_1403139" xlink:to="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember_1403140_default" use="optional" order="44" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xlink:label="loc_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves_2587" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves_2587" use="optional" order="45" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xlink:label="loc_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves_2586" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves_2586" use="optional" order="46" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xlink:label="loc_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease_2592" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease_2592" use="optional" order="47" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xlink:label="loc_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices_2593" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices_2593" use="optional" order="48" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xlink:label="loc_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease_2594" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease_2594" use="optional" order="49" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules_2597" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules_2597" use="optional" order="50" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInEstimatedReserve" xlink:label="loc_ypf_IncreaseDecreaseInEstimatedReserve_1383484" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseDecreaseInEstimatedReserve_1383484" use="optional" order="51" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInTotalProvedReserve" xlink:label="loc_ypf_IncreaseDecreaseInTotalProvedReserve_1383487" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseDecreaseInTotalProvedReserve_1383487" use="optional" order="52" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xlink:label="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance_1402694" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance_1402694" use="optional" order="53" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments_1402695" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments_1402695" use="optional" order="54" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" xlink:label="loc_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy_1402696" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy_1402696" use="optional" order="55" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xlink:label="loc_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil_1403035" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil_1403035" use="optional" order="56" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment_1403130" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment_1403130" use="optional" order="57" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xlink:label="loc_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale_1403131" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale_1403131" use="optional" order="58" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets_1403132" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ifrs-full_Assets_1403132" use="optional" order="59" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredOfAssetsHeldForSale" xlink:label="loc_ypf_CostsIncurredOfAssetsHeldForSale_1403142" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_CostsIncurredOfAssetsHeldForSale_1403142" use="optional" order="60" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfDisposalOfInterests" xlink:label="loc_ypf_PercentageOfDisposalOfInterests_1403633" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems_2581" xlink:to="loc_ypf_PercentageOfDisposalOfInterests_1403633" use="optional" order="61" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2625" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2624" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2625" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2626" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2625" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2626" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2626_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2625" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2626_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2634" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2626" xlink:to="loc_country_AR_2634" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2636" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2626" xlink:to="loc_ypf_WorldwideMember_2636" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralPropertyWellsAndRelatedEquipment" xlink:label="loc_ypf_MineralPropertyWellsAndRelatedEquipment_2627" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_MineralPropertyWellsAndRelatedEquipment_2627" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SupportEquipmentAndFacilities" xlink:label="loc_ypf_SupportEquipmentAndFacilities_2628" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_SupportEquipmentAndFacilities_2628" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingAndWorkInProgress" xlink:label="loc_ypf_DrillingAndWorkInProgress_2629" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_DrillingAndWorkInProgress_2629" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnprovedOilAndGasProperties" xlink:label="loc_ypf_UnprovedOilAndGasProperties_2630" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_UnprovedOilAndGasProperties_2630" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrossCapitalizedCost" xlink:label="loc_ypf_GrossCapitalizedCost_2631" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_GrossCapitalizedCost_2631" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationAndValuationAllowances" xlink:label="loc_ypf_AccumulatedDepreciationAndValuationAllowances_2632" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_AccumulatedDepreciationAndValuationAllowances_2632" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetCapitalizedCost" xlink:label="loc_ypf_NetCapitalizedCost_2633" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2623" xlink:to="loc_ypf_NetCapitalizedCost_2633" use="optional" order="13" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="loc_ifrs-full_TypesOfContractsAxis_672092" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" xlink:to="loc_ifrs-full_TypesOfContractsAxis_672092" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain_672093" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfContractsAxis_672092" xlink:to="loc_ifrs-full_TypesOfContractsDomain_672093" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain_672093_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfContractsAxis_672092" xlink:to="loc_ifrs-full_TypesOfContractsDomain_672093_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xlink:label="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672100" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfContractsDomain_672093" xlink:to="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672100" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_672102" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672090" xlink:to="loc_ifrs-full_NewIFRSsAxis_672102" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_672103" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NewIFRSsAxis_672102" xlink:to="loc_ifrs-full_NewIFRSsDomain_672103" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_672103_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NewIFRSsAxis_672102" xlink:to="loc_ifrs-full_NewIFRSsDomain_672103_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IFRS16Member" xlink:label="loc_ypf_IFRS16Member_672104" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_NewIFRSsDomain_672103" xlink:to="loc_ypf_IFRS16Member_672104" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets_894896" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets_894896" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets_894898" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets_894898" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets_1402731" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672091" xlink:to="loc_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets_1402731" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2641" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_2640" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2641" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2642" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2641" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2642" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2642_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2641" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2642_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2648" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2642" xlink:to="loc_country_AR_2648" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherForeignMember" xlink:label="loc_ypf_OtherForeignMember_2649" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2642" xlink:to="loc_ypf_OtherForeignMember_2649" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2650" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2642" xlink:to="loc_ypf_WorldwideMember_2650" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfUnprovedProperties" xlink:label="loc_ypf_AcquisitionOfUnprovedProperties_2643" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_AcquisitionOfUnprovedProperties_2643" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfProvedProperties" xlink:label="loc_ypf_AcquisitionOfProvedProperties_2644" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_AcquisitionOfProvedProperties_2644" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationCost" xlink:label="loc_ypf_ExplorationCost_2645" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_ExplorationCost_2645" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCost" xlink:label="loc_ypf_DevelopmentCost_2646" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_DevelopmentCost_2646" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredInOilAndGasProductivity" xlink:label="loc_ypf_CostsIncurredInOilAndGasProductivity_2647" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_2639" xlink:to="loc_ypf_CostsIncurredInOilAndGasProductivity_2647" use="optional" order="12" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672109" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672109" xlink:to="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="loc_ifrs-full_TypesOfContractsAxis_672111" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" xlink:to="loc_ifrs-full_TypesOfContractsAxis_672111" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain_672112" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_TypesOfContractsAxis_672111" xlink:to="loc_ifrs-full_TypesOfContractsDomain_672112" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain_672112_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_TypesOfContractsAxis_672111" xlink:to="loc_ifrs-full_TypesOfContractsDomain_672112_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xlink:label="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672113" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_TypesOfContractsDomain_672112" xlink:to="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember_672113" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis_672114" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable_672108" xlink:to="loc_ifrs-full_NewIFRSsAxis_672114" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_672115" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_NewIFRSsAxis_672114" xlink:to="loc_ifrs-full_NewIFRSsDomain_672115" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain_672115_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_NewIFRSsAxis_672114" xlink:to="loc_ifrs-full_NewIFRSsDomain_672115_default" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets_672110" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems_672109" xlink:to="loc_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets_672110" use="optional" order="9" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xlink:label="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xlink:label="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2655" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable_2654" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2655" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2656" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2655" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2656" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2656_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2655" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2656_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2668" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2656" xlink:to="loc_country_AR_2668" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherForeignMember" xlink:label="loc_ypf_OtherForeignMember_2669" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2656" xlink:to="loc_ypf_OtherForeignMember_2669" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2670" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2656" xlink:to="loc_ypf_WorldwideMember_2670" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetSalesToUnaffiliatedParties" xlink:label="loc_ypf_NetSalesToUnaffiliatedParties_2657" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_NetSalesToUnaffiliatedParties_2657" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetIntersegmentSales" xlink:label="loc_ypf_NetIntersegmentSales_2658" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_NetIntersegmentSales_2658" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoods" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods_2659" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoods_2659" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCost" xlink:label="loc_ypf_ProductionCost_2660" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ProductionCost_2660" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationExpenses" xlink:label="loc_ypf_ExplorationExpenses_2661" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ExplorationExpenses_2661" use="optional" order="12" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xlink:label="loc_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets_2662" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets_2662" use="optional" order="13" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xlink:label="loc_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax_2663" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax_2663" use="optional" order="14" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherGainsLosses" xlink:label="loc_ifrs-full_OtherGainsLosses_2664" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_OtherGainsLosses_2664" use="optional" order="15" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax_2665" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_ProfitLossBeforeTax_2665" use="optional" order="16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_2666" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations_2666" use="optional" order="17" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsOfOilAndGasProducingActivities" xlink:label="loc_ypf_ResultsOfOilAndGasProducingActivities_2667" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems_2653" xlink:to="loc_ypf_ResultsOfOilAndGasProducingActivities_2667" use="optional" order="18" />
        </link:definitionLink>
        <link:definitionLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" xbrldt:contextElement="segment" xbrldt:closed="true" use="optional" order="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis_2675" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable_2674" xlink:to="loc_ifrs-full_GeographicalAreasAxis_2675" use="optional" order="2" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2676" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2675" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2676" use="optional" order="3" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain_2676_default" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_ifrs-full_GeographicalAreasAxis_2675" xlink:to="loc_ifrs-full_GeographicalAreasDomain_2676_default" use="optional" order="4" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR_2683" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2676" xlink:to="loc_country_AR_2683" use="optional" order="5" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember_2684" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ifrs-full_GeographicalAreasDomain_2676" xlink:to="loc_ypf_WorldwideMember_2684" use="optional" order="6" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows_2677" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows_2677" use="optional" order="7" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts_2678" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts_2678" use="optional" order="8" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts_2679" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts_2679" use="optional" order="9" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense_2680" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense_2680" use="optional" order="10" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows_2681" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows_2681" use="optional" order="11" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:label="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve_2682" />
          <link:definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems_2673" xlink:to="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve_2682" use="optional" order="12" />
        </link:definitionLink>
        <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"  />
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurity" xlink:label="loc_YPF_SalariesAndSocialSecurity" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xlink:label="loc_YPF_NonCurrentCashSettledSharebasedPaymentsProvision" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_SalariesAndSocialSecurity" xlink:to="loc_YPF_NonCurrentCashSettledSharebasedPaymentsProvision" use="optional" order="1" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:label="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForSeveranceIndemnitiesCurrent" xlink:label="loc_YPF_ProvisionForSeveranceIndemnitiesCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:to="loc_YPF_ProvisionForSeveranceIndemnitiesCurrent" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VacationProvisionCurrent" xlink:label="loc_YPF_VacationProvisionCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:to="loc_YPF_VacationProvisionCurrent" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BonusesAndIncentivesProvisionCurrent" xlink:label="loc_YPF_BonusesAndIncentivesProvisionCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:to="loc_YPF_BonusesAndIncentivesProvisionCurrent" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityPayablesCurrent" xlink:label="loc_YPF_SalariesAndSocialSecurityPayablesCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:to="loc_YPF_SalariesAndSocialSecurityPayablesCurrent" use="optional" order="5" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:label="loc_YPF_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" use="optional" order="1" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" use="optional" order="2" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" use="optional" order="3" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" use="optional" order="4" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:to="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" use="optional" order="5" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetCapitalizedCost" xlink:label="loc_YPF_NetCapitalizedCost" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationAndValuationAllowances" xlink:label="loc_YPF_AccumulatedDepreciationAndValuationAllowances" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NetCapitalizedCost" xlink:to="loc_YPF_AccumulatedDepreciationAndValuationAllowances" use="optional" order="1" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrossCapitalizedCost" xlink:label="loc_YPF_GrossCapitalizedCost" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NetCapitalizedCost" xlink:to="loc_YPF_GrossCapitalizedCost" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnprovedOilAndGasProperties" xlink:label="loc_YPF_UnprovedOilAndGasProperties" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_GrossCapitalizedCost" xlink:to="loc_YPF_UnprovedOilAndGasProperties" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingAndWorkInProgress" xlink:label="loc_YPF_DrillingAndWorkInProgress" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_GrossCapitalizedCost" xlink:to="loc_YPF_DrillingAndWorkInProgress" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SupportEquipmentAndFacilities" xlink:label="loc_YPF_SupportEquipmentAndFacilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_GrossCapitalizedCost" xlink:to="loc_YPF_SupportEquipmentAndFacilities" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralPropertyWellsAndRelatedEquipment" xlink:label="loc_YPF_MineralPropertyWellsAndRelatedEquipment" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_GrossCapitalizedCost" xlink:to="loc_YPF_MineralPropertyWellsAndRelatedEquipment" use="optional" order="6" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsOfOilAndGasProducingActivities" xlink:label="loc_YPF_ResultsOfOilAndGasProducingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_ResultsOfOilAndGasProducingActivities" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" use="optional" order="1" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_ResultsOfOilAndGasProducingActivities" xlink:to="loc_ifrs-full_ProfitLossBeforeTax" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoods" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetIntersegmentSales" xlink:label="loc_YPF_NetIntersegmentSales" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_RevenueFromSaleOfGoods" xlink:to="loc_YPF_NetIntersegmentSales" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetSalesToUnaffiliatedParties" xlink:label="loc_YPF_NetSalesToUnaffiliatedParties" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_RevenueFromSaleOfGoods" xlink:to="loc_YPF_NetSalesToUnaffiliatedParties" use="optional" order="4" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredInOilAndGasProductivity" xlink:label="loc_YPF_CostsIncurredInOilAndGasProductivity" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCost" xlink:label="loc_YPF_DevelopmentCost" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_CostsIncurredInOilAndGasProductivity" xlink:to="loc_YPF_DevelopmentCost" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationCost" xlink:label="loc_YPF_ExplorationCost" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_CostsIncurredInOilAndGasProductivity" xlink:to="loc_YPF_ExplorationCost" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfUnprovedProperties" xlink:label="loc_YPF_AcquisitionOfUnprovedProperties" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_CostsIncurredInOilAndGasProductivity" xlink:to="loc_YPF_AcquisitionOfUnprovedProperties" use="optional" order="3" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Revenue" xlink:to="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfOilAndGasProducts" xlink:label="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Revenue" xlink:to="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenuesFromContractsWithCustomers" xlink:label="loc_YPF_RevenuesFromContractsWithCustomers" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Revenue" xlink:to="loc_YPF_RevenuesFromContractsWithCustomers" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueFromGovernmentIncentives" xlink:label="loc_YPF_RevenueFromGovernmentIncentives" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Revenue" xlink:to="loc_YPF_RevenueFromGovernmentIncentives" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xlink:label="loc_YPF_ProvisionForImpairmentOfPropertyPlantAndEquipment" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_PropertyPlantAndEquipment" xlink:to="loc_YPF_ProvisionForImpairmentOfPropertyPlantAndEquipment" use="optional" order="1" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBookValueOfPropertyPlantAndEquipment" xlink:label="loc_YPF_NetBookValueOfPropertyPlantAndEquipment" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_PropertyPlantAndEquipment" xlink:to="loc_YPF_NetBookValueOfPropertyPlantAndEquipment" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xlink:label="loc_YPF_ProvisionForOtherDoubtfulNoncurrentReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherNoncurrentReceivables" xlink:to="loc_YPF_ProvisionForOtherDoubtfulNoncurrentReceivables" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentReceivablesOtherthanProvision" xlink:label="loc_YPF_NoncurrentReceivablesOtherthanProvision" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherNoncurrentReceivables" xlink:to="loc_YPF_NoncurrentReceivablesOtherthanProvision" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentMiscellaneous" xlink:label="loc_YPF_NoncurrentMiscellaneous" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_YPF_NoncurrentMiscellaneous" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:label="loc_YPF_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_YPF_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAdvances" xlink:label="loc_ifrs-full_NoncurrentAdvances" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_ifrs-full_NoncurrentAdvances" use="optional" order="5" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPrepayments" xlink:label="loc_ifrs-full_NoncurrentPrepayments" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_ifrs-full_NoncurrentPrepayments" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesDueFromRelatedParties" xlink:label="loc_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" use="optional" order="8" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherAccountsReceivableTradeNonCurrent" xlink:label="loc_YPF_OtherAccountsReceivableTradeNonCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_NoncurrentReceivablesOtherthanProvision" xlink:to="loc_YPF_OtherAccountsReceivableTradeNonCurrent" use="optional" order="9" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:label="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherCurrentReceivables" xlink:to="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" use="optional" order="10" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Miscellaneous" xlink:label="loc_YPF_Miscellaneous" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_YPF_Miscellaneous" use="optional" order="11" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentInsuranceReceivables" xlink:label="loc_YPF_CurrentInsuranceReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_YPF_CurrentInsuranceReceivables" use="optional" order="12" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:label="loc_YPF_CurrentReceivablesWithPartnersInJaAndOtherAgreements" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_YPF_CurrentReceivablesWithPartnersInJaAndOtherAgreements" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAdvancesToSuppliers" xlink:label="loc_ifrs-full_CurrentAdvancesToSuppliers" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_ifrs-full_CurrentAdvancesToSuppliers" use="optional" order="14" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentAdvancesAndLoansToEmployees" xlink:label="loc_YPF_CurrentAdvancesAndLoansToEmployees" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_YPF_CurrentAdvancesAndLoansToEmployees" use="optional" order="15" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPrepaidExpenses" xlink:label="loc_ifrs-full_CurrentPrepaidExpenses" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_ifrs-full_CurrentPrepaidExpenses" use="optional" order="16" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentCollateralDeposits" xlink:label="loc_YPF_CurrentCollateralDeposits" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_YPF_CurrentCollateralDeposits" use="optional" order="17" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" use="optional" order="18" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" use="optional" order="19" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherAccountsReceivableTradeCurrent" xlink:label="loc_YPF_OtherAccountsReceivableTradeCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="loc_YPF_OtherAccountsReceivableTradeCurrent" use="optional" order="20" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherNetOperatingResultsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xlink:label="loc_YPF_ProvisionForOperatingOptimizationsOtherOperatingIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_ProvisionForOperatingOptimizationsOtherOperatingIncome" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xlink:label="loc_YPF_GainLossOnChangeInFairValueOfAssetHeldForSale" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_GainLossOnChangeInFairValueOfAssetHeldForSale" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xlink:label="loc_YPF_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgramOtherOperatingIncome" xlink:label="loc_YPF_ExportIncreaseProgramOtherOperatingIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_ExportIncreaseProgramOtherOperatingIncome" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromSaleOfAssets" xlink:label="loc_YPF_ResultFromSaleOfAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_ResultFromSaleOfAssets" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousandOtherOperatingIncomeExpense" xlink:label="loc_YPF_MiscellaneousandOtherOperatingIncomeExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_MiscellaneousandOtherOperatingIncomeExpense" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InsuranceOtherOperatingIncome" xlink:label="loc_YPF_InsuranceOtherOperatingIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_InsuranceOtherOperatingIncome" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LawsuitsOtherOperatingExpense" xlink:label="loc_YPF_LawsuitsOtherOperatingExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="loc_YPF_LawsuitsOtherOperatingExpense" use="optional" order="8" weight="-1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForConcessionsNoncurrent" xlink:label="loc_YPF_LiabilitiesForConcessionsNoncurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherNoncurrentLiabilities" xlink:to="loc_YPF_LiabilitiesForConcessionsNoncurrent" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForContractualClaimsNoncurrent" xlink:label="loc_YPF_LiabilitiesForContractualClaimsNoncurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherNoncurrentLiabilities" xlink:to="loc_YPF_LiabilitiesForContractualClaimsNoncurrent" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentLiabilities" xlink:label="loc_ifrs-full_OtherCurrentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOperatingOptimizationsCurrent" xlink:label="loc_YPF_ProvisionForOperatingOptimizationsCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherCurrentLiabilities" xlink:to="loc_YPF_ProvisionForOperatingOptimizationsCurrent" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForConcessionsCurrent" xlink:label="loc_YPF_LiabilitiesForConcessionsCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherCurrentLiabilities" xlink:to="loc_YPF_LiabilitiesForConcessionsCurrent" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermMiscellaneousOtherProvisions" xlink:label="loc_ifrs-full_ShorttermMiscellaneousOtherProvisions" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherCurrentLiabilities" xlink:to="loc_ifrs-full_ShorttermMiscellaneousOtherProvisions" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForContractualClaimsCurrent" xlink:label="loc_YPF_LiabilitiesForContractualClaimsCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherCurrentLiabilities" xlink:to="loc_YPF_LiabilitiesForContractualClaimsCurrent" use="optional" order="6" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinanceIncome" xlink:label="loc_ifrs-full_OtherFinanceIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_OtherFinanceIncome" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherExchangeDifferencesNet" xlink:label="loc_YPF_OtherExchangeDifferencesNet" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_OtherExchangeDifferencesNet" use="optional" order="2" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xlink:label="loc_YPF_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" use="optional" order="3" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesGeneratedByLoans" xlink:label="loc_YPF_ExchangeDifferencesGeneratedByLoans" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_ExchangeDifferencesGeneratedByLoans" use="optional" order="4" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgrammeOtherIncome" xlink:label="loc_YPF_ExportIncreaseProgrammeOtherIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_ExportIncreaseProgrammeOtherIncome" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsFromTransactionsWithFinancialAssets" xlink:label="loc_YPF_ResultsFromTransactionsWithFinancialAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_ResultsFromTransactionsWithFinancialAssets" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromNetMonetaryPosition" xlink:label="loc_YPF_ResultFromNetMonetaryPosition" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_ResultFromNetMonetaryPosition" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnDerivativeFinancialInstruments" xlink:label="loc_YPF_GainLossOnDerivativeFinancialInstruments" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_YPF_GainLossOnDerivativeFinancialInstruments" use="optional" order="8" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" use="optional" order="9" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_FinanceCosts" use="optional" order="10" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialCosts" xlink:label="loc_YPF_OtherFinancialCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceCosts" xlink:to="loc_YPF_OtherFinancialCosts" use="optional" order="11" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xlink:label="loc_YPF_HydrocarbonWellAbandonmentProvisionFinancialAccretion" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceCosts" xlink:to="loc_YPF_HydrocarbonWellAbandonmentProvisionFinancialAccretion" use="optional" order="12" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_FinanceIncome" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialIncome" xlink:label="loc_YPF_OtherFinancialIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncome" xlink:to="loc_YPF_OtherFinancialIncome" use="optional" order="14" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InterestIncomeOnTradeReceivables" xlink:label="loc_YPF_InterestIncomeOnTradeReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncome" xlink:to="loc_YPF_InterestIncomeOnTradeReceivables" use="optional" order="15" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestIncomeOnCashAndCashEquivalents" xlink:label="loc_ifrs-full_InterestIncomeOnCashAndCashEquivalents" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncome" xlink:to="loc_ifrs-full_InterestIncomeOnCashAndCashEquivalents" use="optional" order="16" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInJointVentures" xlink:label="loc_ifrs-full_InvestmentsInJointVentures" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:to="loc_ifrs-full_InvestmentsInJointVentures" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInAssociates" xlink:label="loc_ifrs-full_InvestmentsInAssociates" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:to="loc_ifrs-full_InvestmentsInAssociates" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="4" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="6" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="8" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="9" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="10" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="11" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="12" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="14" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="15" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="16" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="17" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="18" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="19" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="20" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousOtherOperatingIncomeExpense" xlink:label="loc_YPF_MiscellaneousOtherOperatingIncomeExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_YPF_MiscellaneousOtherOperatingIncomeExpense" use="optional" order="1" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxEffectFromChangeInTaxRate" xlink:label="loc_ifrs-full_TaxEffectFromChangeInTaxRate" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_ifrs-full_TaxEffectFromChangeInTaxRate" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentIncome" xlink:label="loc_ifrs-full_InvestmentIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_ifrs-full_InvestmentIncome" use="optional" order="3" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTheValuationOfInventories" xlink:label="loc_YPF_EffectOfTheValuationOfInventories" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_YPF_EffectOfTheValuationOfInventories" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferences" xlink:label="loc_YPF_ExchangeDifferences" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_YPF_ExchangeDifferences" use="optional" order="5" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xlink:label="loc_YPF_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_YPF_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" xlink:label="loc_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="loc_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" use="optional" order="7" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilityAsset" xlink:label="loc_ifrs-full_DeferredTaxLiabilityAsset" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxLiabilities" xlink:label="loc_ifrs-full_NetDeferredTaxLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_DeferredTaxLiabilityAsset" xlink:to="loc_ifrs-full_NetDeferredTaxLiabilities" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxAssets" xlink:label="loc_ifrs-full_NetDeferredTaxAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_DeferredTaxLiabilityAsset" xlink:to="loc_ifrs-full_NetDeferredTaxAssets" use="optional" order="2" weight="-1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossLeaseLiabilities" xlink:label="loc_ifrs-full_GrossLeaseLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinancialLiabilities" xlink:to="loc_ifrs-full_GrossLeaseLiabilities" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayables" xlink:label="loc_ifrs-full_TradeAndOtherPayables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinancialLiabilities" xlink:to="loc_ifrs-full_TradeAndOtherPayables" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinancialLiabilities" xlink:label="loc_ifrs-full_OtherFinancialLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinancialLiabilities" xlink:to="loc_ifrs-full_OtherFinancialLiabilities" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LoansReceived" xlink:label="loc_ifrs-full_LoansReceived" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinancialLiabilities" xlink:to="loc_ifrs-full_LoansReceived" use="optional" order="4" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_FinanceCosts" use="optional" order="1" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_FinanceIncome" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgrammeOtherIncome" xlink:label="loc_YPF_ExportIncreaseProgrammeOtherIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_YPF_ExportIncreaseProgrammeOtherIncome" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xlink:label="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromNetMonetaryPosition" xlink:label="loc_YPF_ResultFromNetMonetaryPosition" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_YPF_ResultFromNetMonetaryPosition" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnDerivativeFinancialInstruments" xlink:label="loc_YPF_GainLossOnDerivativeFinancialInstruments" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_YPF_GainLossOnDerivativeFinancialInstruments" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetForeignExchangeGainLoss" xlink:label="loc_YPF_NetForeignExchangeGainLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_YPF_NetForeignExchangeGainLoss" use="optional" order="8" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialLiabilities" xlink:label="loc_YPF_FinancialAndNonFinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonFinancialLiabilities" xlink:label="loc_YPF_NonFinancialLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_FinancialAndNonFinancialLiabilities" xlink:to="loc_YPF_NonFinancialLiabilities" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_FinancialAndNonFinancialLiabilities" xlink:to="loc_ifrs-full_FinancialLiabilities" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail" >
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssets" xlink:label="loc_YPF_FinancialAndNonFinancialAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNonfinancialAssets" xlink:label="loc_ifrs-full_OtherNonfinancialAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_FinancialAndNonFinancialAssets" xlink:to="loc_ifrs-full_OtherNonfinancialAssets" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_YPF_FinancialAndNonFinancialAssets" xlink:to="loc_ifrs-full_FinancialAssets" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinancialAssets" xlink:to="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCost" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinancialAssets" xlink:to="loc_ifrs-full_FinancialAssetsAtAmortisedCost" use="optional" order="6" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNature" xlink:label="loc_ifrs-full_ExpenseByNature" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FuelAndEnergyExpense" xlink:label="loc_ifrs-full_FuelAndEnergyExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_FuelAndEnergyExpense" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdvertisingExpenses" xlink:label="loc_YPF_AdvertisingExpenses" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_YPF_AdvertisingExpenses" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xlink:label="loc_YPF_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_YPF_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TransportationExpense" xlink:label="loc_ifrs-full_TransportationExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_TransportationExpense" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnproductiveExploratoryDrillings" xlink:label="loc_YPF_UnproductiveExploratoryDrillings" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_YPF_UnproductiveExploratoryDrillings" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepairsAndMaintenanceExpense" xlink:label="loc_ifrs-full_RepairsAndMaintenanceExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_RepairsAndMaintenanceExpense" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OperationServicesAndOtherServiceContracts" xlink:label="loc_YPF_OperationServicesAndOtherServiceContracts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_YPF_OperationServicesAndOtherServiceContracts" use="optional" order="8" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RawMaterialsAndConsumablesUsed" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_RawMaterialsAndConsumablesUsed" use="optional" order="9" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationExpense" xlink:label="loc_ifrs-full_AmortisationExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_AmortisationExpense" use="optional" order="10" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_DepreciationPropertyPlantAndEquipment" use="optional" order="11" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurveyExpenses" xlink:label="loc_YPF_SurveyExpenses" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_YPF_SurveyExpenses" use="optional" order="12" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RentalExpense" xlink:label="loc_ifrs-full_RentalExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_RentalExpense" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InsuranceExpense" xlink:label="loc_ifrs-full_InsuranceExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_InsuranceExpense" use="optional" order="14" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RoyaltyExpense" xlink:label="loc_ifrs-full_RoyaltyExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_RoyaltyExpense" use="optional" order="15" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xlink:label="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" use="optional" order="16" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherExpenseByNature" xlink:label="loc_ifrs-full_OtherExpenseByNature" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_OtherExpenseByNature" use="optional" order="17" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServicesExpense" xlink:label="loc_ifrs-full_ServicesExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_ifrs-full_ServicesExpense" use="optional" order="18" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityTaxes" xlink:label="loc_YPF_SalariesAndSocialSecurityTaxes" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="loc_YPF_SalariesAndSocialSecurityTaxes" use="optional" order="19" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets" xlink:to="loc_ifrs-full_CurrentAssets" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_YPF_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_YPF_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_ifrs-full_Inventories" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractAssets" xlink:label="loc_ifrs-full_CurrentContractAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_ifrs-full_CurrentContractAssets" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_ifrs-full_OtherCurrentReceivables" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_ifrs-full_CurrentTradeReceivables" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_ifrs-full_CurrentFinancialAssets" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="loc_ifrs-full_CashAndCashEquivalents" use="optional" order="8" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Assets" xlink:to="loc_ifrs-full_NoncurrentAssets" use="optional" order="9" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill" use="optional" order="10" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_PropertyPlantAndEquipment" use="optional" order="11" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" use="optional" order="12" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssets" xlink:label="loc_ifrs-full_DeferredTaxAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_DeferredTaxAssets" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_OtherNoncurrentReceivables" use="optional" order="14" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentTradeReceivables" xlink:label="loc_ifrs-full_NoncurrentTradeReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_NoncurrentTradeReceivables" use="optional" order="15" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="loc_ifrs-full_RightofuseAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_RightofuseAssets" use="optional" order="16" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="loc_ifrs-full_NoncurrentFinancialAssets" use="optional" order="17" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAndLiabilities" xlink:label="loc_ifrs-full_EquityAndLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities" xlink:to="loc_ifrs-full_Equity" use="optional" order="18" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity" xlink:to="loc_ifrs-full_EquityAttributableToOwnersOfParent" use="optional" order="19" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IssuedCapital" xlink:label="loc_ifrs-full_IssuedCapital" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_IssuedCapital" use="optional" order="20" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TreasuryShares" xlink:label="loc_ifrs-full_TreasuryShares" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_TreasuryShares" use="optional" order="21" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlans" xlink:label="loc_YPF_ShareBasedBenefitPlans" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_ShareBasedBenefitPlans" use="optional" order="22" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SharePremium" xlink:label="loc_ifrs-full_SharePremium" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_SharePremium" use="optional" order="23" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserve" xlink:label="loc_ifrs-full_StatutoryReserve" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_StatutoryReserve" use="optional" order="24" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForFutureDividends" xlink:label="loc_YPF_ReserveForFutureDividends" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_ReserveForFutureDividends" use="optional" order="25" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForInvestments" xlink:label="loc_YPF_ReserveForInvestments" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_ReserveForInvestments" use="optional" order="26" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForPurchaseOfTreasuryShares" xlink:label="loc_YPF_ReserveForPurchaseOfTreasuryShares" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_ReserveForPurchaseOfTreasuryShares" use="optional" order="27" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnappropriatedRetainedEarningsAndLosses" xlink:label="loc_YPF_UnappropriatedRetainedEarningsAndLosses" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_UnappropriatedRetainedEarningsAndLosses" use="optional" order="28" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncome" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_AccumulatedOtherComprehensiveIncome" use="optional" order="29" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionCostOfTreasuryShares" xlink:label="loc_YPF_AcquisitionCostOfTreasuryShares" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_AcquisitionCostOfTreasuryShares" use="optional" order="30" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareTradingPremiums" xlink:label="loc_YPF_ShareTradingPremiums" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="loc_YPF_ShareTradingPremiums" use="optional" order="31" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncontrollingInterests" xlink:label="loc_ifrs-full_NoncontrollingInterests" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Equity" xlink:to="loc_ifrs-full_NoncontrollingInterests" use="optional" order="32" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_EquityAndLiabilities" xlink:to="loc_ifrs-full_Liabilities" use="optional" order="33" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Liabilities" xlink:to="loc_ifrs-full_CurrentLiabilities" use="optional" order="34" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherShorttermProvisions" xlink:label="loc_ifrs-full_OtherShorttermProvisions" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_OtherShorttermProvisions" use="optional" order="35" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesCurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesCurrent" use="optional" order="36" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractLiabilities" xlink:label="loc_ifrs-full_CurrentContractLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_CurrentContractLiabilities" use="optional" order="37" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" use="optional" order="38" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:label="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" use="optional" order="39" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermBorrowings" xlink:label="loc_ifrs-full_ShorttermBorrowings" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_ShorttermBorrowings" use="optional" order="40" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentLiabilities" xlink:label="loc_ifrs-full_OtherCurrentLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_OtherCurrentLiabilities" use="optional" order="41" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayables" use="optional" order="42" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLeaseLiabilities" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_CurrentLeaseLiabilities" use="optional" order="43" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" use="optional" order="44" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_Liabilities" xlink:to="loc_ifrs-full_NoncurrentLiabilities" use="optional" order="45" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherLongtermProvisions" xlink:label="loc_ifrs-full_OtherLongtermProvisions" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_OtherLongtermProvisions" use="optional" order="46" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilities" xlink:label="loc_ifrs-full_DeferredTaxLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_DeferredTaxLiabilities" use="optional" order="47" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" use="optional" order="48" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermBorrowings" xlink:label="loc_ifrs-full_LongtermBorrowings" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_LongtermBorrowings" use="optional" order="49" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_OtherNoncurrentLiabilities" use="optional" order="50" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayables" xlink:label="loc_ifrs-full_NoncurrentPayables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_NoncurrentPayables" use="optional" order="51" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLeaseLiabilities" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_NoncurrentLeaseLiabilities" use="optional" order="52" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesNoncurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent" use="optional" order="53" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurity" xlink:label="loc_YPF_SalariesAndSocialSecurity" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_YPF_SalariesAndSocialSecurity" use="optional" order="54" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentContractLiabilities" xlink:label="loc_ifrs-full_NoncurrentContractLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="loc_ifrs-full_NoncurrentContractLiabilities" use="optional" order="55" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xlink:to="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent" use="optional" order="2" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:to="loc_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:to="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" use="optional" order="4" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_OtherComprehensiveIncome" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xlink:label="loc_YPF_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_YPF_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" use="optional" order="7" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xlink:label="loc_YPF_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="loc_YPF_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" use="optional" order="8" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="9" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss" xlink:to="loc_ifrs-full_ProfitLossBeforeTax" use="optional" order="10" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax" xlink:to="loc_ifrs-full_ProfitLossFromOperatingActivities" use="optional" order="11" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossProfit" xlink:label="loc_ifrs-full_GrossProfit" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="loc_ifrs-full_GrossProfit" use="optional" order="12" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_GrossProfit" xlink:to="loc_ifrs-full_Revenue" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CostOfSales" xlink:label="loc_ifrs-full_CostOfSales" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_GrossProfit" xlink:to="loc_ifrs-full_CostOfSales" use="optional" order="14" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DistributionCosts" xlink:label="loc_ifrs-full_DistributionCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="loc_ifrs-full_DistributionCosts" use="optional" order="15" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdministrativeExpense" xlink:label="loc_ifrs-full_AdministrativeExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="loc_ifrs-full_AdministrativeExpense" use="optional" order="16" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xlink:label="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" use="optional" order="17" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" use="optional" order="18" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="loc_ifrs-full_OtherOperatingIncomeExpense" use="optional" order="19" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax" xlink:to="loc_ifrs-full_FinanceIncomeCost" use="optional" order="20" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_FinanceIncome" use="optional" order="21" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_FinanceCosts" use="optional" order="22" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinanceIncomeCost" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="loc_ifrs-full_OtherFinanceIncomeCost" use="optional" order="23" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLossBeforeTax" xlink:to="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" use="optional" order="24" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_ProfitLoss" xlink:to="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" use="optional" order="25" weight="-1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:to="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" use="optional" order="2" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities" use="optional" order="3" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" use="optional" order="4" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:label="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" use="optional" order="5" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" use="optional" order="6" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PaymentOfInterestsOnIncomeTax" xlink:label="loc_YPF_PaymentOfInterestsOnIncomeTax" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_YPF_PaymentOfInterestsOnIncomeTax" use="optional" order="7" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xlink:label="loc_YPF_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="loc_YPF_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" use="optional" order="8" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:to="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" use="optional" order="9" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:to="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" use="optional" order="10" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" use="optional" order="11" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xlink:label="loc_YPF_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_YPF_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" use="optional" order="12" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" use="optional" order="13" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestReceivedClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" use="optional" order="14" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" use="optional" order="15" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xlink:label="loc_YPF_ProceedsFromAssignmentOfAreasAndSaleOfAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_YPF_ProceedsFromAssignmentOfAreasAndSaleOfAssets" use="optional" order="16" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xlink:label="loc_YPF_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_YPF_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" use="optional" order="17" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xlink:label="loc_YPF_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="loc_YPF_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" use="optional" order="18" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:to="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" use="optional" order="19" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" use="optional" order="20" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDepreciationExpense" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForDepreciationExpense" use="optional" order="21" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForAmortisationExpense" xlink:label="loc_ifrs-full_AdjustmentsForAmortisationExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForAmortisationExpense" use="optional" order="22" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" xlink:label="loc_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" use="optional" order="23" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncomeTaxExpense" xlink:label="loc_ifrs-full_AdjustmentsForIncomeTaxExpense" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForIncomeTaxExpense" use="optional" order="24" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForProvisions" xlink:label="loc_ifrs-full_AdjustmentsForProvisions" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForProvisions" use="optional" order="25" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" xlink:label="loc_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" use="optional" order="26" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForSharebasedPayments" xlink:label="loc_ifrs-full_AdjustmentsForSharebasedPayments" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForSharebasedPayments" use="optional" order="27" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_ProfitLoss" use="optional" order="28" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" use="optional" order="29" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" use="optional" order="30" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" use="optional" order="31" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" use="optional" order="32" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" use="optional" order="33" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" use="optional" order="34" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" use="optional" order="35" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForIncreaseDecreaseInProvision" xlink:label="loc_YPF_AdjustmentsForIncreaseDecreaseInProvision" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_YPF_AdjustmentsForIncreaseDecreaseInProvision" use="optional" order="36" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" use="optional" order="37" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xlink:label="loc_YPF_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_YPF_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" use="optional" order="38" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" use="optional" order="39" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_DepreciationRightofuseAssets" use="optional" order="40" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xlink:label="loc_YPF_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_YPF_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" use="optional" order="41" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" use="optional" order="42" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" use="optional" order="43" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForResultFromSaleOfAssets" xlink:label="loc_YPF_AdjustmentsForResultFromSaleOfAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_YPF_AdjustmentsForResultFromSaleOfAssets" use="optional" order="44" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" xlink:label="loc_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" use="optional" order="45" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" xlink:label="loc_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" use="optional" order="46" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughrevaluationofcompanies" xlink:label="loc_YPF_Increasedecreasethroughrevaluationofcompanies" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_YPF_Increasedecreasethroughrevaluationofcompanies" use="optional" order="47" weight="-1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughsaleofcompanies" xlink:label="loc_YPF_Increasedecreasethroughsaleofcompanies" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="loc_YPF_Increasedecreasethroughsaleofcompanies" use="optional" order="48" weight="-1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndBankBalancesAtCentralBanks" xlink:label="loc_ifrs-full_CashAndBankBalancesAtCentralBanks" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents" xlink:to="loc_ifrs-full_CashAndBankBalancesAtCentralBanks" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents" xlink:to="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xlink:label="loc_YPF_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_CashAndCashEquivalents" xlink:to="loc_YPF_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" use="optional" order="3" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensation" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensation" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensation" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensation" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensation" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensation" xlink:to="loc_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" use="optional" order="4" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:to="loc_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" use="optional" order="1" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentDepositsFromCustomers" xlink:label="loc_ifrs-full_CurrentDepositsFromCustomers" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:to="loc_ifrs-full_CurrentDepositsFromCustomers" use="optional" order="2" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PayablesWithPartnersCurrent" xlink:label="loc_YPF_PayablesWithPartnersCurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:to="loc_YPF_PayablesWithPartnersCurrent" use="optional" order="3" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherLiabilitiesCurrent1" xlink:label="loc_YPF_OtherLiabilitiesCurrent1" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:to="loc_YPF_OtherLiabilitiesCurrent1" use="optional" order="4" weight="1" />
        </link:calculationLink>
        <link:calculationLink xlink:type="extended" xlink:role="http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayables" xlink:label="loc_ifrs-full_NoncurrentPayables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesToTradeSuppliers" xlink:label="loc_ifrs-full_NoncurrentPayablesToTradeSuppliers" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentPayables" xlink:to="loc_ifrs-full_NoncurrentPayablesToTradeSuppliers" use="optional" order="5" weight="1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentDepositsFromCustomers" xlink:label="loc_ifrs-full_NoncurrentDepositsFromCustomers" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentPayables" xlink:to="loc_ifrs-full_NoncurrentDepositsFromCustomers" use="optional" order="6" weight="1" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PayablesWithPartnersNoncurrent" xlink:label="loc_YPF_PayablesWithPartnersNoncurrent" />
          <link:calculationArc xlink:type="arc" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ifrs-full_NoncurrentPayables" xlink:to="loc_YPF_PayablesWithPartnersNoncurrent" use="optional" order="7" weight="1" />
        </link:calculationLink>
        <link:labelLink xlink:type="extended" xlink:role="http://www.xbrl.org/2003/role/link" >
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CoverAbstract" xlink:label="loc_dei_CoverAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_CoverAbstract" xml:lang="en-US">Cover [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_CoverAbstract" xlink:to="lab_dei_CoverAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationTable" xlink:label="loc_dei_DocumentInformationTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentInformationTable" xml:lang="en-US">Document Information [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentInformationTable" xlink:to="lab_dei_DocumentInformationTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesAxis" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfOrdinarySharesAxis" xml:lang="en-US">Classes of ordinary shares [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesAxis" xlink:to="lab_ifrs-full_ClassesOfOrdinarySharesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOrdinarySharesDomain" xlink:label="loc_ifrs-full_ClassesOfOrdinarySharesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfOrdinarySharesDomain" xml:lang="en-US">Classes of ordinary shares [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfOrdinarySharesDomain" xlink:to="lab_ifrs-full_ClassesOfOrdinarySharesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassASharesMember" xlink:label="loc_ypf_ClassASharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassASharesMember" xml:lang="en-US">Class a shares [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ClassASharesMember" xml:lang="en-US">Class A shares [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassASharesMember" xml:lang="en-US">Class A shares [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassASharesMember" xlink:to="lab_ypf_ClassASharesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassBSharesMember" xlink:label="loc_ypf_ClassBSharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassBSharesMember" xml:lang="en-US">Class B Shares [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassBSharesMember" xml:lang="en-US">Class B shares [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassBSharesMember" xlink:to="lab_ypf_ClassBSharesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassCSharesMember" xlink:label="loc_ypf_ClassCSharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassCSharesMember" xml:lang="en-US">Class C Shares [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassCSharesMember" xml:lang="en-US">Class C shares [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassCSharesMember" xlink:to="lab_ypf_ClassCSharesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassDSharesMember" xlink:label="loc_ypf_ClassDSharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassDSharesMember" xml:lang="en-US">Class D Shares [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassDSharesMember" xml:lang="en-US">Class D shares [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassDSharesMember" xlink:to="lab_ypf_ClassDSharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassDSharesMember" xml:lang="en-US">Class D shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AdrMember" xlink:label="loc_dei_AdrMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_AdrMember" xml:lang="en-US">ADR [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_dei_AdrMember" xml:lang="en-US">American Depositary Shares [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_AdrMember" xlink:to="lab_dei_AdrMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressesAddressTypeAxis" xlink:label="loc_dei_EntityAddressesAddressTypeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityAddressesAddressTypeAxis" xml:lang="en-US">Entity Addresses, Address Type [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityAddressesAddressTypeAxis" xlink:to="lab_dei_EntityAddressesAddressTypeAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AddressTypeDomain" xlink:label="loc_dei_AddressTypeDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_AddressTypeDomain" xml:lang="en-US">Address Type [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_AddressTypeDomain" xlink:to="lab_dei_AddressTypeDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_BusinessContactMember" xlink:label="loc_dei_BusinessContactMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_BusinessContactMember" xml:lang="en-US">Business Contact [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_BusinessContactMember" xlink:to="lab_dei_BusinessContactMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentInformationLineItems" xlink:label="loc_dei_DocumentInformationLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentInformationLineItems" xml:lang="en-US">Document Information [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentInformationLineItems" xlink:to="lab_dei_DocumentInformationLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentType" xlink:label="loc_dei_DocumentType" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentType" xml:lang="en-US">Document Type</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentType" xlink:to="lab_dei_DocumentType" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AmendmentFlag" xlink:label="loc_dei_AmendmentFlag" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_AmendmentFlag" xml:lang="en-US">Amendment Flag</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_AmendmentFlag" xlink:to="lab_dei_AmendmentFlag" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityInteractiveDataCurrent" xlink:label="loc_dei_EntityInteractiveDataCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityInteractiveDataCurrent" xml:lang="en-US">Entity Interactive Data Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityInteractiveDataCurrent" xlink:to="lab_dei_EntityInteractiveDataCurrent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentPeriodEndDate" xlink:label="loc_dei_DocumentPeriodEndDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentPeriodEndDate" xml:lang="en-US">Document Period End Date</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentPeriodEndDate" xlink:to="lab_dei_DocumentPeriodEndDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalYearFocus" xlink:label="loc_dei_DocumentFiscalYearFocus" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentFiscalYearFocus" xml:lang="en-US">Document Fiscal Year Focus</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentFiscalYearFocus" xlink:to="lab_dei_DocumentFiscalYearFocus" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFiscalPeriodFocus" xlink:label="loc_dei_DocumentFiscalPeriodFocus" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentFiscalPeriodFocus" xml:lang="en-US">Document Fiscal Period Focus</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentFiscalPeriodFocus" xlink:to="lab_dei_DocumentFiscalPeriodFocus" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_TradingSymbol" xlink:label="loc_dei_TradingSymbol" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_TradingSymbol" xml:lang="en-US">Trading Symbol</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_TradingSymbol" xlink:to="lab_dei_TradingSymbol" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityRegistrantName" xlink:label="loc_dei_EntityRegistrantName" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityRegistrantName" xml:lang="en-US">Entity Registrant Name</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityRegistrantName" xlink:to="lab_dei_EntityRegistrantName" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCentralIndexKey" xlink:label="loc_dei_EntityCentralIndexKey" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityCentralIndexKey" xml:lang="en-US">Entity Central Index Key</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityCentralIndexKey" xlink:to="lab_dei_EntityCentralIndexKey" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CurrentFiscalYearEndDate" xlink:label="loc_dei_CurrentFiscalYearEndDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_CurrentFiscalYearEndDate" xml:lang="en-US">Current Fiscal Year End Date</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_CurrentFiscalYearEndDate" xlink:to="lab_dei_CurrentFiscalYearEndDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityWellKnownSeasonedIssuer" xlink:label="loc_dei_EntityWellKnownSeasonedIssuer" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityWellKnownSeasonedIssuer" xml:lang="en-US">Entity Well-known Seasoned Issuer</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityWellKnownSeasonedIssuer" xlink:to="lab_dei_EntityWellKnownSeasonedIssuer" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityVoluntaryFilers" xlink:label="loc_dei_EntityVoluntaryFilers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityVoluntaryFilers" xml:lang="en-US">Entity Voluntary Filers</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityVoluntaryFilers" xlink:to="lab_dei_EntityVoluntaryFilers" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCurrentReportingStatus" xlink:label="loc_dei_EntityCurrentReportingStatus" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityCurrentReportingStatus" xml:lang="en-US">Entity Current Reporting Status</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityCurrentReportingStatus" xlink:to="lab_dei_EntityCurrentReportingStatus" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFilerCategory" xlink:label="loc_dei_EntityFilerCategory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityFilerCategory" xml:lang="en-US">Entity Filer Category</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityFilerCategory" xlink:to="lab_dei_EntityFilerCategory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityShellCompany" xlink:label="loc_dei_EntityShellCompany" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityShellCompany" xml:lang="en-US">Entity Shell Company</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityShellCompany" xlink:to="lab_dei_EntityShellCompany" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityEmergingGrowthCompany" xlink:label="loc_dei_EntityEmergingGrowthCompany" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityEmergingGrowthCompany" xml:lang="en-US">Entity Emerging Growth Company</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityEmergingGrowthCompany" xlink:to="lab_dei_EntityEmergingGrowthCompany" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityCommonStockSharesOutstanding" xlink:label="loc_dei_EntityCommonStockSharesOutstanding" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityCommonStockSharesOutstanding" xml:lang="en-US">Entity Common Stock, Shares Outstanding</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityCommonStockSharesOutstanding" xlink:to="lab_dei_EntityCommonStockSharesOutstanding" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentRegistrationStatement" xlink:label="loc_dei_DocumentRegistrationStatement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentRegistrationStatement" xml:lang="en-US">Document Registration Statement</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentRegistrationStatement" xlink:to="lab_dei_DocumentRegistrationStatement" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentAnnualReport" xlink:label="loc_dei_DocumentAnnualReport" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentAnnualReport" xml:lang="en-US">Document Annual Report</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentAnnualReport" xlink:to="lab_dei_DocumentAnnualReport" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentTransitionReport" xlink:label="loc_dei_DocumentTransitionReport" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentTransitionReport" xml:lang="en-US">Document Transition Report</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentTransitionReport" xlink:to="lab_dei_DocumentTransitionReport" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentShellCompanyReport" xlink:label="loc_dei_DocumentShellCompanyReport" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentShellCompanyReport" xml:lang="en-US">Document Shell Company Report</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentShellCompanyReport" xlink:to="lab_dei_DocumentShellCompanyReport" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_Security12bTitle" xlink:label="loc_dei_Security12bTitle" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_Security12bTitle" xml:lang="en-US">Title of 12(b) Security</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_Security12bTitle" xlink:to="lab_dei_Security12bTitle" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_SecurityExchangeName" xlink:label="loc_dei_SecurityExchangeName" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_SecurityExchangeName" xml:lang="en-US">Security Exchange Name</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_SecurityExchangeName" xlink:to="lab_dei_SecurityExchangeName" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_NoTradingSymbolFlag" xlink:label="loc_dei_NoTradingSymbolFlag" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_NoTradingSymbolFlag" xml:lang="en-US">No Trading Symbol Flag</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_NoTradingSymbolFlag" xlink:to="lab_dei_NoTradingSymbolFlag" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_IcfrAuditorAttestationFlag" xlink:label="loc_dei_IcfrAuditorAttestationFlag" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_IcfrAuditorAttestationFlag" xml:lang="en-US">ICFR Auditor Attestation Flag</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_IcfrAuditorAttestationFlag" xlink:to="lab_dei_IcfrAuditorAttestationFlag" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorName" xlink:label="loc_dei_AuditorName" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_AuditorName" xml:lang="en-US">Auditor Name</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_AuditorName" xlink:to="lab_dei_AuditorName" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorFirmId" xlink:label="loc_dei_AuditorFirmId" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_AuditorFirmId" xml:lang="en-US">Auditor Firm ID</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_AuditorFirmId" xlink:to="lab_dei_AuditorFirmId" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_AuditorLocation" xlink:label="loc_dei_AuditorLocation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_AuditorLocation" xml:lang="en-US">Auditor Location</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_AuditorLocation" xlink:to="lab_dei_AuditorLocation" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentAccountingStandard" xlink:label="loc_dei_DocumentAccountingStandard" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentAccountingStandard" xml:lang="en-US">Document Accounting Standard</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentAccountingStandard" xlink:to="lab_dei_DocumentAccountingStandard" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_ContactPersonnelName" xlink:label="loc_dei_ContactPersonnelName" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_ContactPersonnelName" xml:lang="en-US">Contact Personnel Name</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_ContactPersonnelName" xlink:to="lab_dei_ContactPersonnelName" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_CityAreaCode" xlink:label="loc_dei_CityAreaCode" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_CityAreaCode" xml:lang="en-US">City Area Code</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_CityAreaCode" xlink:to="lab_dei_CityAreaCode" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_LocalPhoneNumber" xlink:label="loc_dei_LocalPhoneNumber" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_LocalPhoneNumber" xml:lang="en-US">Local Phone Number</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_LocalPhoneNumber" xlink:to="lab_dei_LocalPhoneNumber" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityFileNumber" xlink:label="loc_dei_EntityFileNumber" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityFileNumber" xml:lang="en-US">Entity File Number</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityFileNumber" xlink:to="lab_dei_EntityFileNumber" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressAddressLine1" xlink:label="loc_dei_EntityAddressAddressLine1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityAddressAddressLine1" xml:lang="en-US">Entity Address, Address Line One</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityAddressAddressLine1" xlink:to="lab_dei_EntityAddressAddressLine1" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressPostalZipCode" xlink:label="loc_dei_EntityAddressPostalZipCode" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityAddressPostalZipCode" xml:lang="en-US">Entity Address, Postal Zip Code</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityAddressPostalZipCode" xlink:to="lab_dei_EntityAddressPostalZipCode" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCityOrTown" xlink:label="loc_dei_EntityAddressCityOrTown" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityAddressCityOrTown" xml:lang="en-US">Entity Address, City or Town</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityAddressCityOrTown" xlink:to="lab_dei_EntityAddressCityOrTown" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityAddressCountry" xlink:label="loc_dei_EntityAddressCountry" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityAddressCountry" xml:lang="en-US">Entity Address, Country</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityAddressCountry" xlink:to="lab_dei_EntityAddressCountry" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_EntityIncorporationStateCountryCode" xlink:label="loc_dei_EntityIncorporationStateCountryCode" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_EntityIncorporationStateCountryCode" xml:lang="en-US">Entity Incorporation, State or Country Code</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_EntityIncorporationStateCountryCode" xlink:to="lab_dei_EntityIncorporationStateCountryCode" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/dei/2025/dei-2025.xsd#dei_DocumentFinStmtErrorCorrectionFlag" xlink:label="loc_dei_DocumentFinStmtErrorCorrectionFlag" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_dei_DocumentFinStmtErrorCorrectionFlag" xml:lang="en-US">Document Financial Statement Error Correction [Flag]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_dei_DocumentFinStmtErrorCorrectionFlag" xlink:to="lab_dei_DocumentFinStmtErrorCorrectionFlag" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfFinancialPositionAbstract" xlink:label="loc_ifrs-full_StatementOfFinancialPositionAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatementOfFinancialPositionAbstract" xml:lang="en-US">Statement of financial position [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatementOfFinancialPositionAbstract" xlink:to="lab_ifrs-full_StatementOfFinancialPositionAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAbstract" xlink:label="loc_ifrs-full_AssetsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AssetsAbstract" xml:lang="en-US">Assets [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AssetsAbstract" xml:lang="en-US">ASSETS</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AssetsAbstract" xlink:to="lab_ifrs-full_AssetsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssetsAbstract" xlink:label="loc_ifrs-full_CurrentAssetsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentAssetsAbstract" xml:lang="en-US">Current assets [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentAssetsAbstract" xml:lang="en-US">Current assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentAssetsAbstract" xlink:to="lab_ifrs-full_CurrentAssetsAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Current assets or disposal groups classified as held for sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:to="lab_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Current assets or disposal groups classified as held for sale</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Inventories" xlink:label="loc_ifrs-full_Inventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Inventories" xml:lang="en-US">Current inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Inventories" xml:lang="en-US">Inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_Inventories" xml:lang="en-US">Inventories at the beginning of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedPeriodEndLabel" xlink:label="lab_ifrs-full_Inventories" xml:lang="en-US">Inventories at the end of the fiscal year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Inventories" xlink:to="lab_ifrs-full_Inventories" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractAssets" xlink:label="loc_ifrs-full_CurrentContractAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentContractAssets" xml:lang="en-US">Current contract assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentContractAssets" xml:lang="en-US">Contract assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_CurrentContractAssets" xml:lang="en-US">Current contract assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentContractAssets" xml:lang="en-US">Current contract Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentContractAssets" xlink:to="lab_ifrs-full_CurrentContractAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentReceivables" xlink:label="loc_ifrs-full_OtherCurrentReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherCurrentReceivables" xml:lang="en-US">Other current receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherCurrentReceivables" xml:lang="en-US">Other receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherCurrentReceivables" xml:lang="en-US">Net Other current receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_OtherCurrentReceivables" xml:lang="en-US">Other receivables Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherCurrentReceivables" xlink:to="lab_ifrs-full_OtherCurrentReceivables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTradeReceivables" xlink:label="loc_ifrs-full_CurrentTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentTradeReceivables" xml:lang="en-US">Current trade receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_CurrentTradeReceivables" xml:lang="en-US">Trade receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentTradeReceivables" xml:lang="en-US">Accounts receivable and related parties, current gross</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveTerseLabel" xlink:label="lab_ifrs-full_CurrentTradeReceivables" xml:lang="en-US">Trade receivables Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentTradeReceivables" xlink:to="lab_ifrs-full_CurrentTradeReceivables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialAssets" xlink:label="loc_ifrs-full_CurrentFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentFinancialAssets" xml:lang="en-US">Current financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentFinancialAssets" xml:lang="en-US">Investments in financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_CurrentFinancialAssets" xml:lang="en-US">Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_CurrentFinancialAssets" xml:lang="en-US">Investment in financial assets Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentFinancialAssets" xlink:to="lab_ifrs-full_CurrentFinancialAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalents" xlink:label="loc_ifrs-full_CashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashAndCashEquivalents" xml:lang="en-US">Cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CashAndCashEquivalents" xml:lang="en-US">Cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_CashAndCashEquivalents" xml:lang="en-US">Cash and cash equivalents at the beginning of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_CashAndCashEquivalents" xml:lang="en-US">Cash and cash equivalents at the end of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CashAndCashEquivalents" xml:lang="en-US">Cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_CashAndCashEquivalents" xml:lang="en-US">Total</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashAndCashEquivalents" xlink:to="lab_ifrs-full_CashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAssets" xlink:label="loc_ifrs-full_CurrentAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentAssets" xml:lang="en-US">Current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_CurrentAssets" xml:lang="en-US">Total current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentAssets" xml:lang="en-US">Current assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentAssets" xlink:to="lab_ifrs-full_CurrentAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssetsAbstract" xlink:label="loc_ifrs-full_NoncurrentAssetsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentAssetsAbstract" xml:lang="en-US">Non-current assets [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentAssetsAbstract" xml:lang="en-US">Non-current assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentAssetsAbstract" xlink:to="lab_ifrs-full_NoncurrentAssetsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IntangibleAssetsOtherThanGoodwill" xml:lang="en-US">Intangible assets other than goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IntangibleAssetsOtherThanGoodwill" xml:lang="en-US">Intangible assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_IntangibleAssetsOtherThanGoodwill" xml:lang="en-US">Total</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IntangibleAssetsOtherThanGoodwill" xlink:to="lab_ifrs-full_IntangibleAssetsOtherThanGoodwill" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipment" xlink:label="loc_ifrs-full_PropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PropertyPlantAndEquipment" xml:lang="en-US">Property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_PropertyPlantAndEquipment" xml:lang="en-US">Property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_PropertyPlantAndEquipment" xml:lang="en-US">Property, plant and equipment net</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_PropertyPlantAndEquipment" xml:lang="en-US">Amount at beginning of year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_PropertyPlantAndEquipment" xml:lang="en-US">Amount at end of year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PropertyPlantAndEquipment" xlink:to="lab_ifrs-full_PropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Investments in joint ventures accounted for using equity method</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Investments in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" xlink:to="lab_ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssets" xlink:label="loc_ifrs-full_DeferredTaxAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DeferredTaxAssets" xml:lang="en-US">Deferred tax assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DeferredTaxAssets" xml:lang="en-US">Deferred income tax assets, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DeferredTaxAssets" xlink:to="lab_ifrs-full_DeferredTaxAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentReceivables" xlink:label="loc_ifrs-full_OtherNoncurrentReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherNoncurrentReceivables" xml:lang="en-US">Other non-current receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherNoncurrentReceivables" xml:lang="en-US">Other receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherNoncurrentReceivables" xml:lang="en-US">Net other non current receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_OtherNoncurrentReceivables" xml:lang="en-US">Other receivables Non Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherNoncurrentReceivables" xlink:to="lab_ifrs-full_OtherNoncurrentReceivables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentTradeReceivables" xlink:label="loc_ifrs-full_NoncurrentTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentTradeReceivables" xml:lang="en-US">Non-current trade receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentTradeReceivables" xml:lang="en-US">Trade receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_NoncurrentTradeReceivables" xml:lang="en-US">Accounts receivable and related parties, non- current gross</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentTradeReceivables" xlink:to="lab_ifrs-full_NoncurrentTradeReceivables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssets" xlink:label="loc_ifrs-full_NoncurrentAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentAssets" xml:lang="en-US">Non-current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_NoncurrentAssets" xml:lang="en-US">Total non-current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentAssets" xml:lang="en-US">Total non-current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentAssets" xml:lang="en-US">Non-current assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentAssets" xlink:to="lab_ifrs-full_NoncurrentAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RightofuseAssets" xlink:label="loc_ifrs-full_RightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RightofuseAssets" xml:lang="en-US">Right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RightofuseAssets" xml:lang="en-US">Right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_RightofuseAssets" xml:lang="en-US">Beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_RightofuseAssets" xml:lang="en-US">Ending balance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RightofuseAssets" xlink:to="lab_ifrs-full_RightofuseAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialAssets" xlink:label="loc_ifrs-full_NoncurrentFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentFinancialAssets" xml:lang="en-US">Non-current financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentFinancialAssets" xml:lang="en-US">Investments in financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_NoncurrentFinancialAssets" xml:lang="en-US">Non-current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_NoncurrentFinancialAssets" xml:lang="en-US">Investment in financial assets Non Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentFinancialAssets" xlink:to="lab_ifrs-full_NoncurrentFinancialAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Assets" xlink:label="loc_ifrs-full_Assets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Assets" xml:lang="en-US">Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_Assets" xml:lang="en-US">TOTAL ASSETS</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Assets" xml:lang="en-US">Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_Assets" xml:lang="en-US">Total assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Assets" xlink:to="lab_ifrs-full_Assets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAbstract" xlink:label="loc_ifrs-full_EquityAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EquityAbstract" xml:lang="en-US">Equity [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EquityAbstract" xml:lang="en-US">SHAREHOLDERS' EQUITY</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EquityAbstract" xlink:to="lab_ifrs-full_EquityAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EquityAttributableToOwnersOfParent" xml:lang="en-US">Equity attributable to owners of parent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_EquityAttributableToOwnersOfParent" xml:lang="en-US">Shareholders' equity attributable to shareholders of the parent company</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParent" xlink:to="lab_ifrs-full_EquityAttributableToOwnersOfParent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncontrollingInterests" xlink:label="loc_ifrs-full_NoncontrollingInterests" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncontrollingInterests" xml:lang="en-US">Non-controlling interests</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncontrollingInterests" xml:lang="en-US">Non-controlling interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncontrollingInterests" xlink:to="lab_ifrs-full_NoncontrollingInterests" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Equity" xlink:label="loc_ifrs-full_Equity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Equity" xml:lang="en-US">Equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_Equity" xml:lang="en-US">TOTAL SHAREHOLDERS' EQUITY</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_Equity" xml:lang="en-US">Balance at the beginning of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_Equity" xml:lang="en-US">Balance at the end of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_Equity" xml:lang="en-US">Total shareholders' equity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Equity" xlink:to="lab_ifrs-full_Equity" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IssuedCapital" xlink:label="loc_ifrs-full_IssuedCapital" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IssuedCapital" xml:lang="en-US">Issued capital</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_IssuedCapital" xml:lang="en-US">Capital</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IssuedCapital" xlink:to="lab_ifrs-full_IssuedCapital" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TreasuryShares" xlink:label="loc_ifrs-full_TreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TreasuryShares" xml:lang="en-US">Treasury shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TreasuryShares" xml:lang="en-US">Treasury shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TreasuryShares" xlink:to="lab_ifrs-full_TreasuryShares" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlans" xlink:label="loc_ypf_ShareBasedBenefitPlans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlans" xml:lang="en-US">Share Based Benefit Plans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ShareBasedBenefitPlans" xml:lang="en-US">Share-based benefit plans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlans" xlink:to="lab_ypf_ShareBasedBenefitPlans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlans" xml:lang="en-US">Share based benefit plans.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SharePremium" xlink:label="loc_ifrs-full_SharePremium" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SharePremium" xml:lang="en-US">Share premium</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SharePremium" xml:lang="en-US">Issuance premiums</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SharePremium" xlink:to="lab_ifrs-full_SharePremium" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserve" xlink:label="loc_ifrs-full_StatutoryReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatutoryReserve" xml:lang="en-US">Statutory reserve</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_StatutoryReserve" xml:lang="en-US">Legal reserve</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatutoryReserve" xlink:to="lab_ifrs-full_StatutoryReserve" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForFutureDividends" xlink:label="loc_ypf_ReserveForFutureDividends" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReserveForFutureDividends" xml:lang="en-US">Reserve For Future Dividends</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReserveForFutureDividends" xml:lang="en-US">Reserve for future dividends</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReserveForFutureDividends" xlink:to="lab_ypf_ReserveForFutureDividends" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReserveForFutureDividends" xml:lang="en-US">Reserve for future dividends.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForInvestments" xlink:label="loc_ypf_ReserveForInvestments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReserveForInvestments" xml:lang="en-US">Reserve For Investments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReserveForInvestments" xml:lang="en-US">Reserve for investments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReserveForInvestments" xlink:to="lab_ypf_ReserveForInvestments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReserveForInvestments" xml:lang="en-US">Reserve for investments.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReserveForPurchaseOfTreasuryShares" xlink:label="loc_ypf_ReserveForPurchaseOfTreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReserveForPurchaseOfTreasuryShares" xml:lang="en-US">Reserve For Purchase Of Treasury Shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReserveForPurchaseOfTreasuryShares" xml:lang="en-US">Reserve for purchase of treasury shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReserveForPurchaseOfTreasuryShares" xlink:to="lab_ypf_ReserveForPurchaseOfTreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReserveForPurchaseOfTreasuryShares" xml:lang="en-US">Reserve for purchase of treasury shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnappropriatedRetainedEarningsAndLosses" xlink:label="loc_ypf_UnappropriatedRetainedEarningsAndLosses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnappropriatedRetainedEarningsAndLosses" xml:lang="en-US">Unappropriated Retained Earnings And Losses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UnappropriatedRetainedEarningsAndLosses" xml:lang="en-US">Unappropriated retained earnings and losses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnappropriatedRetainedEarningsAndLosses" xlink:to="lab_ypf_UnappropriatedRetainedEarningsAndLosses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnappropriatedRetainedEarningsAndLosses" xml:lang="en-US">Unappropriated retained&#160;earnings&#160;and losses.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncome" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AccumulatedOtherComprehensiveIncome" xml:lang="en-US">Accumulated other comprehensive income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AccumulatedOtherComprehensiveIncome" xml:lang="en-US">Other comprehensive income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AccumulatedOtherComprehensiveIncome" xlink:to="lab_ifrs-full_AccumulatedOtherComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionCostOfTreasuryShares" xlink:label="loc_ypf_AcquisitionCostOfTreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AcquisitionCostOfTreasuryShares" xml:lang="en-US">Acquisition Cost Of Treasury Shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_AcquisitionCostOfTreasuryShares" xml:lang="en-US">Acquisition cost of treasury shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AcquisitionCostOfTreasuryShares" xlink:to="lab_ypf_AcquisitionCostOfTreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AcquisitionCostOfTreasuryShares" xml:lang="en-US">Acquisition cost of treasury shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareTradingPremiums" xlink:label="loc_ypf_ShareTradingPremiums" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareTradingPremiums" xml:lang="en-US">Share Trading Premiums</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareTradingPremiums" xml:lang="en-US">Share trading premiums</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareTradingPremiums" xlink:to="lab_ypf_ShareTradingPremiums" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareTradingPremiums" xml:lang="en-US">Share trading premiums.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiabilitiesAbstract" xlink:label="loc_ifrs-full_LiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LiabilitiesAbstract" xml:lang="en-US">Liabilities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LiabilitiesAbstract" xml:lang="en-US">LIABILITIES</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LiabilitiesAbstract" xlink:to="lab_ifrs-full_LiabilitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilitiesAbstract" xlink:label="loc_ifrs-full_CurrentLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentLiabilitiesAbstract" xml:lang="en-US">Current liabilities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentLiabilitiesAbstract" xml:lang="en-US">Current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentLiabilitiesAbstract" xlink:to="lab_ifrs-full_CurrentLiabilitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherShorttermProvisions" xlink:label="loc_ifrs-full_OtherShorttermProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherShorttermProvisions" xml:lang="en-US">Other current provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherShorttermProvisions" xml:lang="en-US">Provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherShorttermProvisions" xlink:to="lab_ifrs-full_OtherShorttermProvisions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesCurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentTaxLiabilitiesCurrent" xml:lang="en-US">Current tax liabilities, current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentTaxLiabilitiesCurrent" xml:lang="en-US">Income tax liability</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentTaxLiabilitiesCurrent" xlink:to="lab_ifrs-full_CurrentTaxLiabilitiesCurrent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentContractLiabilities" xlink:label="loc_ifrs-full_CurrentContractLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentContractLiabilities" xml:lang="en-US">Current contract liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentContractLiabilities" xml:lang="en-US">Contract liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_CurrentContractLiabilities" xml:lang="en-US">Current contract liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentContractLiabilities" xlink:to="lab_ifrs-full_CurrentContractLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xml:lang="en-US">Current payables on social security and taxes other than income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xml:lang="en-US">Taxes payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xml:lang="en-US">Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:to="lab_ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:label="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShorttermEmployeeBenefitsAccruals" xml:lang="en-US">Short-term employee benefits accruals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ShorttermEmployeeBenefitsAccruals" xml:lang="en-US">Salaries and social security</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ShorttermEmployeeBenefitsAccruals" xml:lang="en-US">Salaries and social security current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShorttermEmployeeBenefitsAccruals" xlink:to="lab_ifrs-full_ShorttermEmployeeBenefitsAccruals" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermBorrowings" xlink:label="loc_ifrs-full_ShorttermBorrowings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShorttermBorrowings" xml:lang="en-US">Current borrowings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ShorttermBorrowings" xml:lang="en-US">Loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_ShorttermBorrowings" xml:lang="en-US">Loans current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShorttermBorrowings" xlink:to="lab_ifrs-full_ShorttermBorrowings" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentLiabilities" xlink:label="loc_ifrs-full_OtherCurrentLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherCurrentLiabilities" xml:lang="en-US">Other current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherCurrentLiabilities" xml:lang="en-US">Other liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherCurrentLiabilities" xml:lang="en-US">Total, other current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherCurrentLiabilities" xlink:to="lab_ifrs-full_OtherCurrentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayables" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayables" xml:lang="en-US">Trade and other current payables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayables" xml:lang="en-US">Accounts payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayables" xml:lang="en-US">Total, current account payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayables" xml:lang="en-US">Accounts payable Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayables" xlink:to="lab_ifrs-full_TradeAndOtherCurrentPayables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLiabilities" xlink:label="loc_ifrs-full_CurrentLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentLiabilities" xml:lang="en-US">Current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_CurrentLiabilities" xml:lang="en-US">Total current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentLiabilities" xml:lang="en-US">Current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentLiabilities" xlink:to="lab_ifrs-full_CurrentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentLeaseLiabilities" xlink:label="loc_ifrs-full_CurrentLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentLeaseLiabilities" xml:lang="en-US">Current lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentLeaseLiabilities" xml:lang="en-US">Lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentLeaseLiabilities" xml:lang="en-US">Current lease liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentLeaseLiabilities" xlink:to="lab_ifrs-full_CurrentLeaseLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Liabilities included in disposal groups classified as held for sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Liabilities directly associated with assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" xlink:to="lab_ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilitiesAbstract" xlink:label="loc_ifrs-full_NoncurrentLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentLiabilitiesAbstract" xml:lang="en-US">Non-current liabilities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentLiabilitiesAbstract" xml:lang="en-US">Non-current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentLiabilitiesAbstract" xlink:to="lab_ifrs-full_NoncurrentLiabilitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherLongtermProvisions" xlink:label="loc_ifrs-full_OtherLongtermProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherLongtermProvisions" xml:lang="en-US">Other non-current provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherLongtermProvisions" xml:lang="en-US">Provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherLongtermProvisions" xlink:to="lab_ifrs-full_OtherLongtermProvisions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilities" xlink:label="loc_ifrs-full_DeferredTaxLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DeferredTaxLiabilities" xml:lang="en-US">Deferred tax liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DeferredTaxLiabilities" xml:lang="en-US">Deferred income tax liabilities, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DeferredTaxLiabilities" xlink:to="lab_ifrs-full_DeferredTaxLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xml:lang="en-US">Non-current payables on social security and taxes other than income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xml:lang="en-US">Taxes payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xml:lang="en-US">Non current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" xlink:to="lab_ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermBorrowings" xlink:label="loc_ifrs-full_LongtermBorrowings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LongtermBorrowings" xml:lang="en-US">Non-current portion of non-current borrowings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LongtermBorrowings" xml:lang="en-US">Loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_LongtermBorrowings" xml:lang="en-US">Loans Noncurrent</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LongtermBorrowings" xlink:to="lab_ifrs-full_LongtermBorrowings" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherNoncurrentLiabilities" xml:lang="en-US">Other non-current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherNoncurrentLiabilities" xml:lang="en-US">Other liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherNoncurrentLiabilities" xml:lang="en-US">Total, other noncurrent liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherNoncurrentLiabilities" xlink:to="lab_ifrs-full_OtherNoncurrentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayables" xlink:label="loc_ifrs-full_NoncurrentPayables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentPayables" xml:lang="en-US">Trade and other non-current payables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentPayables" xml:lang="en-US">Accounts payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_NoncurrentPayables" xml:lang="en-US">Total, noncurrent account payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentPayables" xlink:to="lab_ifrs-full_NoncurrentPayables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLiabilities" xlink:label="loc_ifrs-full_NoncurrentLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentLiabilities" xml:lang="en-US">Non-current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_NoncurrentLiabilities" xml:lang="en-US">Total non-current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentLiabilities" xml:lang="en-US">Total non-current liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentLiabilities" xml:lang="en-US">Non-current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentLiabilities" xlink:to="lab_ifrs-full_NoncurrentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentLeaseLiabilities" xlink:label="loc_ifrs-full_NoncurrentLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentLeaseLiabilities" xml:lang="en-US">Non-current lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentLeaseLiabilities" xml:lang="en-US">Lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentLeaseLiabilities" xml:lang="en-US">Non-current lease liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentLeaseLiabilities" xlink:to="lab_ifrs-full_NoncurrentLeaseLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilitiesNoncurrent" xlink:label="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentTaxLiabilitiesNoncurrent" xml:lang="en-US">Current tax liabilities, non-current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentTaxLiabilitiesNoncurrent" xml:lang="en-US">Income tax liability</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_CurrentTaxLiabilitiesNoncurrent" xml:lang="en-US">Income tax liability, non-current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentTaxLiabilitiesNoncurrent" xlink:to="lab_ifrs-full_CurrentTaxLiabilitiesNoncurrent" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurity" xlink:label="loc_ypf_SalariesAndSocialSecurity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SalariesAndSocialSecurity" xml:lang="en-US">Salaries And Social Security</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SalariesAndSocialSecurity" xml:lang="en-US">Salaries and social security</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_SalariesAndSocialSecurity" xml:lang="en-US">Salaries and social security non current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SalariesAndSocialSecurity" xlink:to="lab_ypf_SalariesAndSocialSecurity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SalariesAndSocialSecurity" xml:lang="en-US">Salaries And Social Security</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentContractLiabilities" xlink:label="loc_ifrs-full_NoncurrentContractLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentContractLiabilities" xml:lang="en-US">Non-current contract liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentContractLiabilities" xml:lang="en-US">Contract liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_NoncurrentContractLiabilities" xml:lang="en-US">Noncurrent Contract liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentContractLiabilities" xlink:to="lab_ifrs-full_NoncurrentContractLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Liabilities" xlink:label="loc_ifrs-full_Liabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Liabilities" xml:lang="en-US">Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_Liabilities" xml:lang="en-US">TOTAL LIABILITIES</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Liabilities" xml:lang="en-US">Total liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_Liabilities" xml:lang="en-US">Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Liabilities" xlink:to="lab_ifrs-full_Liabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAndLiabilities" xlink:label="loc_ifrs-full_EquityAndLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EquityAndLiabilities" xml:lang="en-US">Equity and liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_EquityAndLiabilities" xml:lang="en-US">TOTAL LIABILITIES AND SHAREHOLDERS' EQUITY</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EquityAndLiabilities" xlink:to="lab_ifrs-full_EquityAndLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeStatementAbstract" xlink:label="loc_ifrs-full_IncomeStatementAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncomeStatementAbstract" xml:lang="en-US">Profit or loss [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncomeStatementAbstract" xlink:to="lab_ifrs-full_IncomeStatementAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AnalysisOfIncomeAndExpenseAbstract" xlink:label="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AnalysisOfIncomeAndExpenseAbstract" xml:lang="en-US">Analysis of income and expense [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AnalysisOfIncomeAndExpenseAbstract" xml:lang="en-US">Net income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AnalysisOfIncomeAndExpenseAbstract" xlink:to="lab_ifrs-full_AnalysisOfIncomeAndExpenseAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Revenue" xlink:label="loc_ifrs-full_Revenue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Revenue" xml:lang="en-US">Revenue</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_Revenue" xml:lang="en-US">Revenues</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_Revenue" xml:lang="en-US">Revenues</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Revenue" xml:lang="en-US">Revenue</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Revenue" xlink:to="lab_ifrs-full_Revenue" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CostOfSales" xlink:label="loc_ifrs-full_CostOfSales" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CostOfSales" xml:lang="en-US">Cost of sales</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_CostOfSales" xml:lang="en-US">Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CostOfSales" xml:lang="en-US">Total</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CostOfSales" xml:lang="en-US">Costs and expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CostOfSales" xlink:to="lab_ifrs-full_CostOfSales" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossProfit" xlink:label="loc_ifrs-full_GrossProfit" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GrossProfit" xml:lang="en-US">Gross profit</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_GrossProfit" xml:lang="en-US">Gross profit</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GrossProfit" xlink:to="lab_ifrs-full_GrossProfit" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DistributionCosts" xlink:label="loc_ifrs-full_DistributionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DistributionCosts" xml:lang="en-US">Distribution costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_DistributionCosts" xml:lang="en-US">Selling expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DistributionCosts" xlink:to="lab_ifrs-full_DistributionCosts" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdministrativeExpense" xlink:label="loc_ifrs-full_AdministrativeExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdministrativeExpense" xml:lang="en-US">Administrative expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_AdministrativeExpense" xml:lang="en-US">Administrative expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdministrativeExpense" xlink:to="lab_ifrs-full_AdministrativeExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xlink:label="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xml:lang="en-US">Expense arising from exploration for and evaluation of mineral resources</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xml:lang="en-US">Exploration expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xml:lang="en-US">Exploration expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" xlink:to="lab_ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xml:lang="en-US">Impairment loss (reversal of impairment loss) recognised in profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xml:lang="en-US">Reversal / (Impairment) of property, plant and equipment and inventories write-down</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xml:lang="en-US">Net reversal of impairment losses of property, plant and equipment and inventories write-down</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" xlink:to="lab_ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherOperatingIncomeExpense" xlink:label="loc_ifrs-full_OtherOperatingIncomeExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherOperatingIncomeExpense" xml:lang="en-US">Other operating income (expense)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherOperatingIncomeExpense" xml:lang="en-US">Other net operating results</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherOperatingIncomeExpense" xml:lang="en-US">Other operating results, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherOperatingIncomeExpense" xlink:to="lab_ifrs-full_OtherOperatingIncomeExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossFromOperatingActivities" xlink:label="loc_ifrs-full_ProfitLossFromOperatingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProfitLossFromOperatingActivities" xml:lang="en-US">Profit (loss) from operating activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ProfitLossFromOperatingActivities" xml:lang="en-US">Operating profit / (loss)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProfitLossFromOperatingActivities" xml:lang="en-US">Operating profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProfitLossFromOperatingActivities" xml:lang="en-US">Operating profit</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProfitLossFromOperatingActivities" xlink:to="lab_ifrs-full_ProfitLossFromOperatingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EarningsPerShareAbstract" xlink:label="loc_ifrs-full_EarningsPerShareAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EarningsPerShareAbstract" xml:lang="en-US">Earnings per share [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EarningsPerShareAbstract" xml:lang="en-US">Earnings per share attributable to shareholders of the parent company:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EarningsPerShareAbstract" xlink:to="lab_ifrs-full_EarningsPerShareAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BasicEarningsLossPerShare" xlink:label="loc_ifrs-full_BasicEarningsLossPerShare" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BasicEarningsLossPerShare" xml:lang="en-US">Basic earnings (loss) per share</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BasicEarningsLossPerShare" xml:lang="en-US">Basic</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_BasicEarningsLossPerShare" xml:lang="en-US">Basic earnings per share</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BasicEarningsLossPerShare" xlink:to="lab_ifrs-full_BasicEarningsLossPerShare" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DilutedEarningsLossPerShare" xlink:label="loc_ifrs-full_DilutedEarningsLossPerShare" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DilutedEarningsLossPerShare" xml:lang="en-US">Diluted earnings (loss) per share</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DilutedEarningsLossPerShare" xml:lang="en-US">Diluted</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DilutedEarningsLossPerShare" xml:lang="en-US">Diluted earnings per share</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DilutedEarningsLossPerShare" xlink:to="lab_ifrs-full_DilutedEarningsLossPerShare" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" xlink:label="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" xml:lang="en-US">Components of other comprehensive income that will be reclassified to profit or loss, net of tax [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" xml:lang="en-US">Items that may be reclassified subsequently to profit or loss:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" xlink:to="lab_ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" xlink:label="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" xml:lang="en-US">Share of other comprehensive income of associates and joint ventures accounted for using equity method that will be reclassified to profit or loss, net of tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" xml:lang="en-US">Translation effect from subsidiaries, associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" xlink:to="lab_ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xlink:label="loc_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xml:lang="en-US">Other Comprehensive Income Net Of Tax Results From Net Monetary Position</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xml:lang="en-US">Result from net monetary position in subsidiaries, associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xlink:to="lab_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" xml:lang="en-US">Other comprehensive income net of tax results from net monetary position.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncome" xlink:label="loc_ifrs-full_OtherComprehensiveIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherComprehensiveIncome" xml:lang="en-US">Other comprehensive income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherComprehensiveIncome" xml:lang="en-US">Other comprehensive income for the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherComprehensiveIncome" xml:lang="en-US">Other comprehensive income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherComprehensiveIncome" xml:lang="en-US">Other comprehensive income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherComprehensiveIncome" xlink:to="lab_ifrs-full_OtherComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xlink:label="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xml:lang="en-US">Other Comprehensive Income Reclassification Adjustments Due To Acquisition Or Disposal Of Subsidiaries Associates Joint Ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xml:lang="en-US">Gains / (losses) reclassified to profit or loss due to the acquisition and/or disposal of subsidiaries, associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xlink:to="lab_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" xml:lang="en-US">Other comprehensive income reclassification adjustments due to acquisition or disposal of subsidiaries associates joint ventures</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToAbstract" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComprehensiveIncomeAttributableToAbstract" xml:lang="en-US">Comprehensive income attributable to [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ComprehensiveIncomeAttributableToAbstract" xml:lang="en-US">Total comprehensive income for the year attributable to:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToAbstract" xlink:to="lab_ifrs-full_ComprehensiveIncomeAttributableToAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xml:lang="en-US">Comprehensive income, attributable to owners of parent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xml:lang="en-US">Shareholders of the parent company</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" xlink:to="lab_ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xml:lang="en-US">Comprehensive income, attributable to non-controlling interests</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xml:lang="en-US">Non-controlling interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:to="lab_ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherComprehensiveIncomeAttributableToAbstract" xlink:label="loc_ypf_OtherComprehensiveIncomeAttributableToAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherComprehensiveIncomeAttributableToAbstract" xml:lang="en-US">Other Comprehensive Income Attributable To (abstract )</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherComprehensiveIncomeAttributableToAbstract" xml:lang="en-US">Other comprehensive income for the year attributable to:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherComprehensiveIncomeAttributableToAbstract" xlink:to="lab_ypf_OtherComprehensiveIncomeAttributableToAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherComprehensiveIncomeAttributableToAbstract" xml:lang="en-US">Other comprehensive income attributable to (abstract )</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" xml:lang="en-US">Other comprehensive income, attributable to owners of parent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" xml:lang="en-US">Shareholders of the parent company</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" xlink:to="lab_ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" xml:lang="en-US">Other comprehensive income, attributable to non-controlling interests</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" xml:lang="en-US">Non-controlling interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" xlink:to="lab_ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToAbstract" xlink:label="loc_ifrs-full_ProfitLossAttributableToAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProfitLossAttributableToAbstract" xml:lang="en-US">Profit (loss), attributable to [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProfitLossAttributableToAbstract" xml:lang="en-US">Net (loss) / profit for the year attributable to:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProfitLossAttributableToAbstract" xlink:to="lab_ifrs-full_ProfitLossAttributableToAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToOwnersOfParent" xlink:label="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProfitLossAttributableToOwnersOfParent" xml:lang="en-US">Profit (loss), attributable to owners of parent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProfitLossAttributableToOwnersOfParent" xml:lang="en-US">Shareholders of the parent company</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProfitLossAttributableToOwnersOfParent" xml:lang="en-US">Net (loss) / profit</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProfitLossAttributableToOwnersOfParent" xlink:to="lab_ifrs-full_ProfitLossAttributableToOwnersOfParent" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:label="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xml:lang="en-US">Profit (loss), attributable to non-controlling interests</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xml:lang="en-US">Non-controlling interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" xlink:to="lab_ifrs-full_ProfitLossAttributableToNoncontrollingInterests" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Share of profit (loss) of associates and joint ventures accounted for using equity method</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Income from equity interests in associates and joint ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Income from equity interests in associates and joint ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveTerseLabel" xlink:label="lab_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Income on investments in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:to="lab_ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncome" xlink:label="loc_ifrs-full_FinanceIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinanceIncome" xml:lang="en-US">Finance income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinanceIncome" xml:lang="en-US">Financial income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_FinanceIncome" xml:lang="en-US">Total financial income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinanceIncome" xlink:to="lab_ifrs-full_FinanceIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceCosts" xlink:label="loc_ifrs-full_FinanceCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinanceCosts" xml:lang="en-US">Finance costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_FinanceCosts" xml:lang="en-US">Financial costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTotalLabel" xlink:label="lab_ifrs-full_FinanceCosts" xml:lang="en-US">Total financial costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinanceCosts" xlink:to="lab_ifrs-full_FinanceCosts" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinanceIncomeCost" xlink:label="loc_ifrs-full_OtherFinanceIncomeCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherFinanceIncomeCost" xml:lang="en-US">Other finance income (cost)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherFinanceIncomeCost" xml:lang="en-US">Other financial results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherFinanceIncomeCost" xlink:to="lab_ifrs-full_OtherFinanceIncomeCost" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinanceIncomeCost" xlink:label="loc_ifrs-full_FinanceIncomeCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinanceIncomeCost" xml:lang="en-US">Finance income (cost)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_FinanceIncomeCost" xml:lang="en-US">Net financial results</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinanceIncomeCost" xml:lang="en-US">Net financial results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinanceIncomeCost" xlink:to="lab_ifrs-full_FinanceIncomeCost" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLossBeforeTax" xlink:label="loc_ifrs-full_ProfitLossBeforeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProfitLossBeforeTax" xml:lang="en-US">Profit (loss) before tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ProfitLossBeforeTax" xml:lang="en-US">Net profit / (loss) before income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProfitLossBeforeTax" xml:lang="en-US">Net profit / (loss) before income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_ProfitLossBeforeTax" xml:lang="en-US">Net profit / (loss) before income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_ProfitLossBeforeTax" xml:lang="en-US">Pre-tax income (loss) from producing activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProfitLossBeforeTax" xlink:to="lab_ifrs-full_ProfitLossBeforeTax" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:label="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncomeTaxExpenseContinuingOperations" xml:lang="en-US">Tax expense (income)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_IncomeTaxExpenseContinuingOperations" xml:lang="en-US">Income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTotalLabel" xlink:label="lab_ifrs-full_IncomeTaxExpenseContinuingOperations" xml:lang="en-US">Income tax (expense)/ benefit</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTerseLabel" xlink:label="lab_ifrs-full_IncomeTaxExpenseContinuingOperations" xml:lang="en-US">Income tax expense / benefit</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncomeTaxExpenseContinuingOperations" xlink:to="lab_ifrs-full_IncomeTaxExpenseContinuingOperations" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProfitLoss" xlink:label="loc_ifrs-full_ProfitLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProfitLoss" xml:lang="en-US">Profit (loss)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ProfitLoss" xml:lang="en-US">Net (loss) / profit for the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_ProfitLoss" xml:lang="en-US">Net (loss) / profit</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProfitLoss" xml:lang="en-US">Net (loss) / profit</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProfitLoss" xml:lang="en-US">Net income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_ProfitLoss" xml:lang="en-US">Net income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProfitLoss" xlink:to="lab_ifrs-full_ProfitLoss" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComprehensiveIncome" xlink:label="loc_ifrs-full_ComprehensiveIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComprehensiveIncome" xml:lang="en-US">Comprehensive income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ComprehensiveIncome" xml:lang="en-US">Total comprehensive income for the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ComprehensiveIncome" xml:lang="en-US">Total comprehensive income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComprehensiveIncome" xlink:to="lab_ifrs-full_ComprehensiveIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityAbstract" xlink:label="loc_ifrs-full_StatementOfChangesInEquityAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatementOfChangesInEquityAbstract" xml:lang="en-US">Statement of changes in equity [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatementOfChangesInEquityAbstract" xlink:to="lab_ifrs-full_StatementOfChangesInEquityAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityTable" xlink:label="loc_ifrs-full_StatementOfChangesInEquityTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatementOfChangesInEquityTable" xml:lang="en-US">Statement of changes in equity [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_StatementOfChangesInEquityTable" xml:lang="en-US">Statement of changes in equity [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatementOfChangesInEquityTable" xlink:to="lab_ifrs-full_StatementOfChangesInEquityTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityAxis" xlink:label="loc_ifrs-full_ComponentsOfEquityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComponentsOfEquityAxis" xml:lang="en-US">Components of equity [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ComponentsOfEquityAxis" xml:lang="en-US">Components of equity [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComponentsOfEquityAxis" xlink:to="lab_ifrs-full_ComponentsOfEquityAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ComponentsOfEquityDomain" xlink:label="loc_ifrs-full_ComponentsOfEquityDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ComponentsOfEquityDomain" xml:lang="en-US">Components of equity [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ComponentsOfEquityDomain" xml:lang="en-US">Components of equity [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ComponentsOfEquityDomain" xlink:to="lab_ifrs-full_ComponentsOfEquityDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IssuedCapitalMember" xlink:label="loc_ifrs-full_IssuedCapitalMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IssuedCapitalMember" xml:lang="en-US">Issued capital [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IssuedCapitalMember" xml:lang="en-US">Capital [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IssuedCapitalMember" xlink:to="lab_ifrs-full_IssuedCapitalMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TreasurySharesMember" xlink:label="loc_ifrs-full_TreasurySharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TreasurySharesMember" xml:lang="en-US">Treasury shares [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TreasurySharesMember" xml:lang="en-US">Treasury shares [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TreasurySharesMember" xlink:to="lab_ifrs-full_TreasurySharesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfSharebasedPaymentsMember" xlink:label="loc_ifrs-full_ReserveOfSharebasedPaymentsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ReserveOfSharebasedPaymentsMember" xml:lang="en-US">Reserve of share-based payments [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ReserveOfSharebasedPaymentsMember" xml:lang="en-US">Share-based benefit plans [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ReserveOfSharebasedPaymentsMember" xlink:to="lab_ifrs-full_ReserveOfSharebasedPaymentsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionCostOfTreasurySharesMember" xlink:label="loc_ypf_AcquisitionCostOfTreasurySharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AcquisitionCostOfTreasurySharesMember" xml:lang="en-US">Acquisition Cost Of Treasury Shares [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AcquisitionCostOfTreasurySharesMember" xml:lang="en-US">Acquisition cost of treasury shares [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AcquisitionCostOfTreasurySharesMember" xlink:to="lab_ypf_AcquisitionCostOfTreasurySharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AcquisitionCostOfTreasurySharesMember" xml:lang="en-US">Acquisition cost of treasury shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareTradingPremiumMember" xlink:label="loc_ypf_ShareTradingPremiumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareTradingPremiumMember" xml:lang="en-US">Share Trading Premium [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareTradingPremiumMember" xml:lang="en-US">Share trading premium [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareTradingPremiumMember" xlink:to="lab_ypf_ShareTradingPremiumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareTradingPremiumMember" xml:lang="en-US">Share trading premium.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SharePremiumMember" xlink:label="loc_ifrs-full_SharePremiumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SharePremiumMember" xml:lang="en-US">Share premium [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SharePremiumMember" xml:lang="en-US">Issuance premiums [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SharePremiumMember" xlink:to="lab_ifrs-full_SharePremiumMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatutoryReserveMember" xlink:label="loc_ifrs-full_StatutoryReserveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatutoryReserveMember" xml:lang="en-US">Statutory reserve [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_StatutoryReserveMember" xml:lang="en-US">Legal reserve [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatutoryReserveMember" xlink:to="lab_ifrs-full_StatutoryReserveMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForFutureDividendsMember" xlink:label="loc_ypf_ReservesForFutureDividendsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReservesForFutureDividendsMember" xml:lang="en-US">Reserves for Future Dividends [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReservesForFutureDividendsMember" xml:lang="en-US">Reserve for future dividends [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReservesForFutureDividendsMember" xlink:to="lab_ypf_ReservesForFutureDividendsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReservesForFutureDividendsMember" xml:lang="en-US">Future dividends.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xlink:label="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xml:lang="en-US">Reserve of gains and losses from investments in equity instruments [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xml:lang="en-US">Reserve for investments [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" xlink:to="lab_ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservesForPurchaseOfTreasuryShareMember" xlink:label="loc_ypf_ReservesForPurchaseOfTreasuryShareMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReservesForPurchaseOfTreasuryShareMember" xml:lang="en-US">Reserves for Purchase Of Treasury Share [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReservesForPurchaseOfTreasuryShareMember" xml:lang="en-US">Reserve for purchase of treasury shares [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReservesForPurchaseOfTreasuryShareMember" xlink:to="lab_ypf_ReservesForPurchaseOfTreasuryShareMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReservesForPurchaseOfTreasuryShareMember" xml:lang="en-US">Purchase of treasury shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:label="loc_ifrs-full_AccumulatedOtherComprehensiveIncomeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xml:lang="en-US">Accumulated other comprehensive income [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xml:lang="en-US">Other comprehensive income [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AccumulatedOtherComprehensiveIncomeMember" xlink:to="lab_ifrs-full_AccumulatedOtherComprehensiveIncomeMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:label="loc_ifrs-full_EquityAttributableToOwnersOfParentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EquityAttributableToOwnersOfParentMember" xml:lang="en-US">Equity attributable to owners of parent [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EquityAttributableToOwnersOfParentMember" xml:lang="en-US">Equity attributable to Shareholders of the parent company [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EquityAttributableToOwnersOfParentMember" xlink:to="lab_ifrs-full_EquityAttributableToOwnersOfParentMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncontrollingInterestsMember" xlink:label="loc_ifrs-full_NoncontrollingInterestsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncontrollingInterestsMember" xml:lang="en-US">Non-controlling interests [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncontrollingInterestsMember" xml:lang="en-US">Equity attributable to Non-controlling interests [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncontrollingInterestsMember" xlink:to="lab_ifrs-full_NoncontrollingInterestsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnappropriatedRetainedEarningsAndLossesMember" xlink:label="loc_ypf_UnappropriatedRetainedEarningsAndLossesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnappropriatedRetainedEarningsAndLossesMember" xml:lang="en-US">Unappropriated Retained Earnings and Losses [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_UnappropriatedRetainedEarningsAndLossesMember" xml:lang="en-US">Unappropriated retained earnings and losses [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnappropriatedRetainedEarningsAndLossesMember" xlink:to="lab_ypf_UnappropriatedRetainedEarningsAndLossesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnappropriatedRetainedEarningsAndLossesMember" xml:lang="en-US">Unappropriated retained earnings and losses.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfChangesInEquityLineItems" xlink:label="loc_ifrs-full_StatementOfChangesInEquityLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatementOfChangesInEquityLineItems" xml:lang="en-US">Statement of changes in equity [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_StatementOfChangesInEquityLineItems" xml:lang="en-US">Statement of changes in equity [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatementOfChangesInEquityLineItems" xlink:to="lab_ifrs-full_StatementOfChangesInEquityLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xlink:label="loc_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xml:lang="en-US">Increase (decrease) through share-based payment transactions accrual of share-based benefit plans, equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xml:lang="en-US">Accrual of share-based benefit plans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xlink:to="lab_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" xml:lang="en-US">Increase (decrease) through share-based payment transactions accrual of share-based benefit plans, equity.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" xml:lang="en-US">Increase (decrease) through share-based payment transactions, equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" xml:lang="en-US">Settlement of share-based benefit plans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CancellationOfTreasuryShares" xlink:label="loc_ifrs-full_CancellationOfTreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CancellationOfTreasuryShares" xml:lang="en-US">Cancellation of treasury shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_CancellationOfTreasuryShares" xml:lang="en-US">Repurchase of treasury shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CancellationOfTreasuryShares" xlink:to="lab_ifrs-full_CancellationOfTreasuryShares" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xlink:label="loc_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xml:lang="en-US">Decrease Through Reversal of Reserves and Absorption of Accumulated Losses Equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xml:lang="en-US">Release of reserves and absorption of accumulated losses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xlink:to="lab_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" xml:lang="en-US">Decrease through reversal of reserves and absorption of accumulated losses equity.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConstitutionOfReservesEquity" xlink:label="loc_ypf_ConstitutionOfReservesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ConstitutionOfReservesEquity" xml:lang="en-US">Constitution of Reserves Equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ConstitutionOfReservesEquity" xml:lang="en-US">Appropriation to reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ConstitutionOfReservesEquity" xlink:to="lab_ypf_ConstitutionOfReservesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ConstitutionOfReservesEquity" xml:lang="en-US">Constitution of reserves equity.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AppropriationToReservesEquity" xlink:label="loc_ypf_AppropriationToReservesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AppropriationToReservesEquity" xml:lang="en-US">Appropriation To Reserves Equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AppropriationToReservesEquity" xml:lang="en-US">Appropriation&#160;to&#160;reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AppropriationToReservesEquity" xlink:to="lab_ypf_AppropriationToReservesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AppropriationToReservesEquity" xml:lang="en-US">Appropriation to&#160;reserves equity</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReleaseOfReservesEquity" xlink:label="loc_ypf_ReleaseOfReservesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReleaseOfReservesEquity" xml:lang="en-US">Release of Reserves Equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReleaseOfReservesEquity" xml:lang="en-US">Release of reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReleaseOfReservesEquity" xlink:to="lab_ypf_ReleaseOfReservesEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReleaseOfReservesEquity" xml:lang="en-US">Release&#160;of reserves equity</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CategoriesOfRelatedPartiesAxis" xml:lang="en-US">Categories of related parties [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CategoriesOfRelatedPartiesAxis" xml:lang="en-US">Categories of related parties [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesAxis" xlink:to="lab_ifrs-full_CategoriesOfRelatedPartiesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:label="loc_ifrs-full_CategoriesOfRelatedPartiesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CategoriesOfRelatedPartiesDomain" xml:lang="en-US">Categories of related parties [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CategoriesOfRelatedPartiesDomain" xml:lang="en-US">Categories of related parties [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CategoriesOfRelatedPartiesDomain" xlink:to="lab_ifrs-full_CategoriesOfRelatedPartiesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:label="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xml:lang="en-US">Reclassification adjustments on exchange differences on translation, net of tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xml:lang="en-US">Corresponding to the effect of the translation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:to="lab_ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xlink:label="loc_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xml:lang="en-US">Reclassification Adjustments Corresponding To Recognition Of Results From Net Monetary Position</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xml:lang="en-US">Corresponding to recognition of result for the net monetary position of subsidiaries, associates and joint ventures with the Peso as functional currency</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xlink:to="lab_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" xml:lang="en-US">Adjustments corresponding to recognition of results from net monetary position.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_StatementOfCashFlowsAbstract" xlink:label="loc_ifrs-full_StatementOfCashFlowsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_StatementOfCashFlowsAbstract" xml:lang="en-US">Statement of cash flows [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_StatementOfCashFlowsAbstract" xlink:to="lab_ifrs-full_StatementOfCashFlowsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" xml:lang="en-US">Cash flows from (used in) financing activities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" xml:lang="en-US">Financing activities:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" xlink:to="lab_ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xml:lang="en-US">Repayments of borrowings, classified as financing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xml:lang="en-US">Payments of loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTerseLabel" xlink:label="lab_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xml:lang="en-US">Payments of loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" xlink:to="lab_ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestPaidClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestPaidClassifiedAsFinancingActivities" xml:lang="en-US">Interest paid, classified as financing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_InterestPaidClassifiedAsFinancingActivities" xml:lang="en-US">Payments of interests</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTerseLabel" xlink:label="lab_ifrs-full_InterestPaidClassifiedAsFinancingActivities" xml:lang="en-US">Payments of interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestPaidClassifiedAsFinancingActivities" xlink:to="lab_ifrs-full_InterestPaidClassifiedAsFinancingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xml:lang="en-US">Proceeds from borrowings, classified as financing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xml:lang="en-US">Proceeds from loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xml:lang="en-US">Proceeds from loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" xlink:to="lab_ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:label="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xml:lang="en-US">Payments to acquire or redeem entity's shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xml:lang="en-US">Repurchase of treasury shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" xlink:to="lab_ifrs-full_PaymentsToAcquireOrRedeemEntitysShares" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashFlowsFromUsedInFinancingActivities" xml:lang="en-US">Cash flows from (used in) financing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_CashFlowsFromUsedInFinancingActivities" xml:lang="en-US">Net cash flows from / (used in) financing activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashFlowsFromUsedInFinancingActivities" xlink:to="lab_ifrs-full_CashFlowsFromUsedInFinancingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:label="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xml:lang="en-US">Payments of lease liabilities, classified as financing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xml:lang="en-US">Payments of leases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" xlink:to="lab_ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PaymentOfInterestsOnIncomeTax" xlink:label="loc_ypf_PaymentOfInterestsOnIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PaymentOfInterestsOnIncomeTax" xml:lang="en-US">Payment Of Interests On Income Tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_PaymentOfInterestsOnIncomeTax" xml:lang="en-US">Payments of interests in relation to income tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PaymentOfInterestsOnIncomeTax" xlink:to="lab_ypf_PaymentOfInterestsOnIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PaymentOfInterestsOnIncomeTax" xml:lang="en-US">Payment of interests on income tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xlink:label="loc_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xml:lang="en-US">Proceeds from Account Overdraft Net Classified as Financing Activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xml:lang="en-US">Account overdrafts, net</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTerseLabel" xlink:label="lab_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xml:lang="en-US">Account overdrafts, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xlink:to="lab_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" xml:lang="en-US">Proceeds from account overdraft net classified as financing activities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" xml:lang="en-US">Cash flows from (used in) investing activities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" xml:lang="en-US">Investing activities:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" xlink:to="lab_ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:label="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xml:lang="en-US">Purchase of property, plant and equipment, intangible assets other than goodwill, investment property and other non-current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xml:lang="en-US">Acquisition of property, plant and equipment and intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" xlink:to="lab_ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xlink:label="loc_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xml:lang="en-US">Contributions and acquisitions of interests in associates and joint ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xml:lang="en-US">Contributions and acquisitions of interests in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xlink:to="lab_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" xml:lang="en-US">Contributions and acquisitions of interests in associates and joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xml:lang="en-US">Proceeds from sales or maturity of financial assets measured at amortised cost, classified as investing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xml:lang="en-US">Proceeds from sales of financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:to="lab_ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestReceivedClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" xml:lang="en-US">Interest received, classified as investing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" xml:lang="en-US">Interests received from financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" xlink:to="lab_ifrs-full_InterestReceivedClassifiedAsInvestingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashFlowsFromUsedInInvestingActivities" xml:lang="en-US">Cash flows from (used in) investing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_CashFlowsFromUsedInInvestingActivities" xml:lang="en-US">Net cash flows used in investing activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashFlowsFromUsedInInvestingActivities" xlink:to="lab_ifrs-full_CashFlowsFromUsedInInvestingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:label="loc_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xml:lang="en-US">Purchase of financial assets measured at amortised cost, classified as investing activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xml:lang="en-US">Payments from purchase of financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" xlink:to="lab_ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xlink:label="loc_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xml:lang="en-US">Proceeds From Assignment Of Areas And Sale Of Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xml:lang="en-US">Proceeds from concessions, assignment agreements and sale of assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xlink:to="lab_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" xml:lang="en-US">Proceeds from assignment of areas and sale of assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xlink:label="loc_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xml:lang="en-US">Proceeds From Payments Of Financial Assets Available For Sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xml:lang="en-US">Additions of assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xlink:to="lab_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" xml:lang="en-US">Proceeds from (payments of) financial assets available for sale.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xlink:label="loc_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xml:lang="en-US">CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xml:lang="en-US">Acquisitions from business combinations net of cash and cash equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xlink:to="lab_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" xml:lang="en-US">Cash Flows From Acquisitions From Business Combinations Net Of Cash And Cash Equivalents</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" xml:lang="en-US">Cash flows from (used in) operating activities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" xml:lang="en-US">Cash flows from operating activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" xlink:to="lab_ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForReconcileProfitLossAbstract" xlink:label="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForReconcileProfitLossAbstract" xml:lang="en-US">Adjustments to reconcile profit (loss) [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AdjustmentsForReconcileProfitLossAbstract" xml:lang="en-US">Adjustments to reconcile net (loss) / profit to cash flows provided by operating activities:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForReconcileProfitLossAbstract" xlink:to="lab_ifrs-full_AdjustmentsForReconcileProfitLossAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" xlink:label="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" xml:lang="en-US">Changes in Operating Assets and Liabilities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" xml:lang="en-US">Changes in assets and liabilities:</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" xlink:to="lab_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" xml:lang="en-US">Changes in operating assets and liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" xml:lang="en-US">Adjustments for decrease (increase) in trade accounts receivable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" xml:lang="en-US">Trade receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" xlink:to="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" xml:lang="en-US">Adjustments for decrease (increase) in other operating receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" xml:lang="en-US">Other receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" xlink:to="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" xml:lang="en-US">Adjustments for decrease (increase) in inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" xml:lang="en-US">Inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" xlink:to="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInInventories" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" xml:lang="en-US">Adjustments for increase (decrease) in trade accounts payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" xml:lang="en-US">Accounts payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" xlink:to="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" xml:lang="en-US">Income taxes paid (refund), classified as operating activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" xml:lang="en-US">Taxes payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" xlink:to="lab_ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" xml:lang="en-US">Adjustments for increase (decrease) in employee benefit liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" xml:lang="en-US">Salaries and social security</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" xlink:to="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" xml:lang="en-US">Adjustments for increase (decrease) in other liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" xml:lang="en-US">Other liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" xlink:to="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForIncreaseDecreaseInProvision" xlink:label="loc_ypf_AdjustmentsForIncreaseDecreaseInProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentsForIncreaseDecreaseInProvision" xml:lang="en-US">Adjustments For Increase Decrease In Provision</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_AdjustmentsForIncreaseDecreaseInProvision" xml:lang="en-US">Decrease in provisions due to payment/use</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentsForIncreaseDecreaseInProvision" xlink:to="lab_ypf_AdjustmentsForIncreaseDecreaseInProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentsForIncreaseDecreaseInProvision" xml:lang="en-US">Adjustments for increase (decrease) in provision.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xml:lang="en-US">Dividends received, classified as operating activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xml:lang="en-US">Dividends received</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xml:lang="en-US">Dividends received</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" xlink:to="lab_ifrs-full_DividendsReceivedClassifiedAsOperatingActivities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xlink:label="loc_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xml:lang="en-US">Adjustments for proceeds from collection of lost profit insurance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xml:lang="en-US">Proceeds from collection of profit loss insurance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xlink:to="lab_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" xml:lang="en-US">Adjustments for proceeds from collection of lost profit insurance classified as operating activities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" xlink:label="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" xml:lang="en-US">Income taxes paid, classified as operating activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" xml:lang="en-US">Income tax payments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" xlink:to="lab_ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" xlink:label="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" xml:lang="en-US">Adjustments for decrease increase in contract assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" xml:lang="en-US">Contract assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" xlink:to="lab_ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" xlink:label="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" xml:lang="en-US">Adjustments for increase (decrease) in contract liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" xml:lang="en-US">Contract liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" xlink:to="lab_ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:label="loc_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Share of profit (loss) from continuing operations of associates and joint ventures accounted for using equity method</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xml:lang="en-US">Income from equity interests in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" xlink:to="lab_ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForDepreciationExpense" xlink:label="loc_ifrs-full_AdjustmentsForDepreciationExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForDepreciationExpense" xml:lang="en-US">Adjustments for depreciation expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForDepreciationExpense" xml:lang="en-US">Depreciation of property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForDepreciationExpense" xlink:to="lab_ifrs-full_AdjustmentsForDepreciationExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForAmortisationExpense" xlink:label="loc_ifrs-full_AdjustmentsForAmortisationExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForAmortisationExpense" xml:lang="en-US">Adjustments for amortisation expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForAmortisationExpense" xml:lang="en-US">Amortization of intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForAmortisationExpense" xlink:to="lab_ifrs-full_AdjustmentsForAmortisationExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" xlink:label="loc_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" xml:lang="en-US">Adjustments for losses (gains) on disposal of non-current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" xml:lang="en-US">Retirement of property, plant and equipment and intangible assets and consumption of materials</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" xlink:to="lab_ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForIncomeTaxExpense" xlink:label="loc_ifrs-full_AdjustmentsForIncomeTaxExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForIncomeTaxExpense" xml:lang="en-US">Adjustments for income tax expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForIncomeTaxExpense" xml:lang="en-US">Charge on income tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForIncomeTaxExpense" xlink:to="lab_ifrs-full_AdjustmentsForIncomeTaxExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForProvisions" xlink:label="loc_ifrs-full_AdjustmentsForProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForProvisions" xml:lang="en-US">Adjustments for provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForProvisions" xml:lang="en-US">Net increase in provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForProvisions" xlink:to="lab_ifrs-full_AdjustmentsForProvisions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" xlink:label="loc_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" xml:lang="en-US">Adjustments for unrealised foreign exchange losses (gains)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" xml:lang="en-US">Effect of changes in exchange rates, interest and others</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" xlink:to="lab_ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForSharebasedPayments" xlink:label="loc_ifrs-full_AdjustmentsForSharebasedPayments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForSharebasedPayments" xml:lang="en-US">Adjustments for share-based payments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForSharebasedPayments" xml:lang="en-US">Share-based benefit plans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForSharebasedPayments" xlink:to="lab_ifrs-full_AdjustmentsForSharebasedPayments" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationRightofuseAssets" xlink:label="loc_ifrs-full_DepreciationRightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DepreciationRightofuseAssets" xml:lang="en-US">Depreciation, right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DepreciationRightofuseAssets" xml:lang="en-US">Depreciation of right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DepreciationRightofuseAssets" xlink:to="lab_ifrs-full_DepreciationRightofuseAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xlink:label="loc_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xml:lang="en-US">Adjustments For Increase (decrease) In Other Insurance Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xml:lang="en-US">Other insurance income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xlink:to="lab_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" xml:lang="en-US">Adjustments for increase (decrease) in Other insurance income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentsForResultFromSaleOfAssets" xlink:label="loc_ypf_AdjustmentsForResultFromSaleOfAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentsForResultFromSaleOfAssets" xml:lang="en-US">Adjustments For Result from Sale of Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_AdjustmentsForResultFromSaleOfAssets" xml:lang="en-US">Result from sale of assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentsForResultFromSaleOfAssets" xlink:to="lab_ypf_AdjustmentsForResultFromSaleOfAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentsForResultFromSaleOfAssets" xml:lang="en-US">Adjustments for result from sale of assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" xlink:label="loc_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" xml:lang="en-US">Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss, inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" xml:lang="en-US">(Reversal) / Impairment of property, plant and equipment and inventories write-down</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" xlink:to="lab_ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" xlink:label="loc_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" xml:lang="en-US">Receipts from rents and subsequent sales of assets held for rental to others and subsequently held for sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" xml:lang="en-US">Result from changes in fair value of assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" xlink:to="lab_ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughrevaluationofcompanies" xlink:label="loc_ypf_Increasedecreasethroughrevaluationofcompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Increasedecreasethroughrevaluationofcompanies" xml:lang="en-US">Increase decrease through revaluation of companies</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_Increasedecreasethroughrevaluationofcompanies" xml:lang="en-US">Result from revaluation of companies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Increasedecreasethroughrevaluationofcompanies" xlink:to="lab_ypf_Increasedecreasethroughrevaluationofcompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Increasedecreasethroughrevaluationofcompanies" xml:lang="en-US">increase decrease through revaluation of companies</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughsaleofcompanies" xlink:label="loc_ypf_Increasedecreasethroughsaleofcompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Increasedecreasethroughsaleofcompanies" xml:lang="en-US">Increase decrease through sale of companies</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_Increasedecreasethroughsaleofcompanies" xml:lang="en-US">Result from sale of companies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Increasedecreasethroughsaleofcompanies" xlink:to="lab_ypf_Increasedecreasethroughsaleofcompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Increasedecreasethroughsaleofcompanies" xml:lang="en-US">Increase decrease through sale of companies</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:label="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashFlowsFromUsedInOperatingActivities" xml:lang="en-US">Cash flows from (used in) operating activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_CashFlowsFromUsedInOperatingActivities" xml:lang="en-US">Net cash flows from operating activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashFlowsFromUsedInOperatingActivities" xlink:to="lab_ifrs-full_CashFlowsFromUsedInOperatingActivities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" xlink:label="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" xml:lang="en-US">Effect of exchange rate changes on cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" xml:lang="en-US">Effect of changes in exchange rates on cash and cash equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" xlink:to="lab_ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:label="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xml:lang="en-US">Increase (decrease) in cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xml:lang="en-US">(Decrease) / Increase in cash and cash equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" xlink:to="lab_ifrs-full_IncreaseDecreaseInCashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCashTransactionsAbstract" xlink:label="loc_ypf_NonCashTransactionsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NonCashTransactionsAbstract" xml:lang="en-US">Non Cash Transactions [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NonCashTransactionsAbstract" xml:lang="en-US">Non cash transactions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NonCashTransactionsAbstract" xlink:to="lab_ypf_NonCashTransactionsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NonCashTransactionsAbstract" xml:lang="en-US">Non cash transactions.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsToRightofuseAssets" xlink:label="loc_ifrs-full_AdditionsToRightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdditionsToRightofuseAssets" xml:lang="en-US">Additions to right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AdditionsToRightofuseAssets" xml:lang="en-US">Additions of right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_AdditionsToRightofuseAssets" xml:lang="en-US">Acquisitions of right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AdditionsToRightofuseAssets" xml:lang="en-US">Increases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdditionsToRightofuseAssets" xlink:to="lab_ifrs-full_AdditionsToRightofuseAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xlink:label="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xml:lang="en-US">Capitalization Of Financial Accretion For Lease Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xml:lang="en-US">Capitalization of financial accretion for lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xml:lang="en-US">Capitalization of financial accretion for lease liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xlink:to="lab_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" xml:lang="en-US">Capitalization of financial accretion for lease liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DebtCapitalizationOfJointVentures" xlink:label="loc_ypf_DebtCapitalizationOfJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DebtCapitalizationOfJointVentures" xml:lang="en-US">Debt Capitalization Of Joint Ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_DebtCapitalizationOfJointVentures" xml:lang="en-US">Capitalization in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DebtCapitalizationOfJointVentures" xlink:to="lab_ypf_DebtCapitalizationOfJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DebtCapitalizationOfJointVentures" xml:lang="en-US">Debt capitalization of joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfDepreciationOfRightOfUseAssets" xlink:label="loc_ypf_CapitalizationOfDepreciationOfRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CapitalizationOfDepreciationOfRightOfUseAssets" xml:lang="en-US">Capitalization Of Depreciation Of Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CapitalizationOfDepreciationOfRightOfUseAssets" xml:lang="en-US">Capitalization of depreciation of&#160;right-of-use&#160;assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CapitalizationOfDepreciationOfRightOfUseAssets" xlink:to="lab_ypf_CapitalizationOfDepreciationOfRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CapitalizationOfDepreciationOfRightOfUseAssets" xml:lang="en-US">Capitalization Of Depreciation Of Right Of Use Assets</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" xlink:label="loc_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" xml:lang="en-US">Capital Expenditure Incurred But Not Paid On Property Plant And Equipment And Intangible Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" xml:lang="en-US">Unpaid acquisitions of property, plant and equipment and intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" xlink:to="lab_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" xml:lang="en-US">Capital expenditure incurred but not paid on property plant and equipment and intangible assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnpaidAdditionsOfAssetsHeldForSale" xlink:label="loc_ypf_UnpaidAdditionsOfAssetsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnpaidAdditionsOfAssetsHeldForSale" xml:lang="en-US">Unpaid Additions Of Assets Held For Sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UnpaidAdditionsOfAssetsHeldForSale" xml:lang="en-US">Unpaid additions of assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnpaidAdditionsOfAssetsHeldForSale" xlink:to="lab_ypf_UnpaidAdditionsOfAssetsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnpaidAdditionsOfAssetsHeldForSale" xml:lang="en-US">Unpaid additions of assets held for sale.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" xlink:label="loc_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" xml:lang="en-US">CashFlowsFromHydrocarbonWellsAbandonmentCosts</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" xml:lang="en-US">(Reversal) / Costs of hydrocarbon wells abandonment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" xlink:to="lab_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" xml:lang="en-US">Cash Flows From Hydro carbon Wells Abandonment Costs</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" xlink:label="loc_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" xml:lang="en-US">ContractLiabilitiesArisingFromCompanyAcquisitions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" xml:lang="en-US">Contract liabilities arising from company acquisitions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" xlink:to="lab_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" xml:lang="en-US">Contract Liabilities Arising From Company Acquisitions</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Receivablesfromsaleofnoncashsettledassets" xlink:label="loc_ypf_Receivablesfromsaleofnoncashsettledassets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Receivablesfromsaleofnoncashsettledassets" xml:lang="en-US">ReceivablesFromSaleOfNonCashSettledAssets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Receivablesfromsaleofnoncashsettledassets" xml:lang="en-US">Receivables from the sale of non-cash-settled assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Receivablesfromsaleofnoncashsettledassets" xlink:to="lab_ypf_Receivablesfromsaleofnoncashsettledassets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Receivablesfromsaleofnoncashsettledassets" xml:lang="en-US">Receivables From Sale Of Non Cash Settled Assets</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnpaidReceivablesFromSaleOfCompanies" xlink:label="loc_ypf_UnpaidReceivablesFromSaleOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnpaidReceivablesFromSaleOfCompanies" xml:lang="en-US">UnpaidReceivablesFromSaleOfCompanies</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UnpaidReceivablesFromSaleOfCompanies" xml:lang="en-US">Unpaid receivables from the sale of companies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnpaidReceivablesFromSaleOfCompanies" xlink:to="lab_ypf_UnpaidReceivablesFromSaleOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnpaidReceivablesFromSaleOfCompanies" xml:lang="en-US">Unpaid Receivables From Sale Of Companies</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PaymentOfShortTermLeaseAndVariableCharge" xlink:label="loc_ypf_PaymentOfShortTermLeaseAndVariableCharge" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PaymentOfShortTermLeaseAndVariableCharge" xml:lang="en-US">Payment Of Short Term Lease And Variable Charge</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PaymentOfShortTermLeaseAndVariableCharge" xml:lang="en-US">Payment of short term lease and variable charges</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PaymentOfShortTermLeaseAndVariableCharge" xlink:to="lab_ypf_PaymentOfShortTermLeaseAndVariableCharge" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PaymentOfShortTermLeaseAndVariableCharge" xml:lang="en-US">Payment of short term lease and variable charge.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TextBlock1Abstract" xlink:label="loc_ypf_TextBlock1Abstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TextBlock1Abstract" xml:lang="en-US">Text Block1 [Abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TextBlock1Abstract" xml:lang="en-US">Text block [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TextBlock1Abstract" xlink:to="lab_ypf_TextBlock1Abstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfGeneralInformationExplanatory" xlink:label="loc_ypf_DisclosureOfGeneralInformationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfGeneralInformationExplanatory" xml:lang="en-US">Disclosure of General Information Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfGeneralInformationExplanatory" xml:lang="en-US">General Information, Structure and Organization of the Group's Business</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfGeneralInformationExplanatory" xlink:to="lab_ypf_DisclosureOfGeneralInformationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfGeneralInformationExplanatory" xml:lang="en-US">Disclosure of General Information Explanatory</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" xml:lang="en-US">Disclosure of basis of preparation of financial statements [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" xml:lang="en-US">Basis of Preparation of the Consolidated Financial Statements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsExplanatory" xml:lang="en-US">Disclosure of business combinations [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsExplanatory" xml:lang="en-US">Acquisitions and Disposals</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfBusinessCombinationsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureFinancialRiskManagementExplanatory" xlink:label="loc_ypf_DisclosureFinancialRiskManagementExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureFinancialRiskManagementExplanatory" xml:lang="en-US">Disclosure Financial Risk Management</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureFinancialRiskManagementExplanatory" xml:lang="en-US">Financial Risk Management</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureFinancialRiskManagementExplanatory" xlink:to="lab_ypf_DisclosureFinancialRiskManagementExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureFinancialRiskManagementExplanatory" xml:lang="en-US">The details of disclosure of employee share schemes.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" xml:lang="en-US">Disclosure of entity's operating segments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" xml:lang="en-US">Business Segment Information</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" xml:lang="en-US">Disclosure of financial instruments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" xml:lang="en-US">Financial Instruments by Category</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfIntangibleAssetsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfIntangibleAssetsExplanatory" xml:lang="en-US">Disclosure of intangible assets [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfIntangibleAssetsExplanatory" xml:lang="en-US">Intangible Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfIntangibleAssetsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfIntangibleAssetsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Disclosure of property, plant and equipment [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Property, Plant and Equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" xlink:to="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRightOfUseAssets" xlink:label="loc_ypf_DisclosureOfRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfRightOfUseAssets" xml:lang="en-US">Disclosure Of Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfRightOfUseAssets" xml:lang="en-US">Right-of-use Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfRightOfUseAssets" xlink:to="lab_ypf_DisclosureOfRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfRightOfUseAssets" xml:lang="en-US">Disclosure of right of use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Disclosure of investments in associates and joint ventures [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Investments in Associates and Joint Ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" xlink:to="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" xml:lang="en-US">The entire disclosure of investments in associates and joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xml:lang="en-US">Assets Held For Sale And Associated Liabilities [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xlink:to="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" xml:lang="en-US">Assets Held For Sale And Associated Liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" xlink:label="loc_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" xml:lang="en-US">Disclosure Detailed Information Of Assets Held For Sale And Associated Liabilities [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" xml:lang="en-US">Assets Held For Sale and Associated Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" xlink:to="lab_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" xml:lang="en-US">Disclosure detailed information of assets held for sale and associated liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInventoriesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfInventoriesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInventoriesExplanatory" xml:lang="en-US">Disclosure of inventories [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfInventoriesExplanatory" xml:lang="en-US">Inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInventoriesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfInventoriesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" xml:lang="en-US">Disclosure of trade and other receivables [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" xml:lang="en-US">Other Receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesExplanatory" xlink:label="loc_ypf_DisclosureOfTradeReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTradeReceivablesExplanatory" xml:lang="en-US">Disclosure of Trade Receivables [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfTradeReceivablesExplanatory" xml:lang="en-US">Trade Receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTradeReceivablesExplanatory" xlink:to="lab_ypf_DisclosureOfTradeReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTradeReceivablesExplanatory" xml:lang="en-US">The disclosure of trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" xml:lang="en-US">Disclosure of Investment In Financial Asset Explanatory [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" xml:lang="en-US">Investments in Financial Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" xlink:to="lab_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" xml:lang="en-US">Disclosure of investment in financial asset explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" xml:lang="en-US">Disclosure of cash and cash equivalents [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" xml:lang="en-US">Cash and Cash Equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfProvisionsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfProvisionsExplanatory" xml:lang="en-US">Disclosure of provisions [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfProvisionsExplanatory" xml:lang="en-US">Provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfProvisionsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfProvisionsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfIncomeTaxExplanatory" xlink:label="loc_ifrs-full_DisclosureOfIncomeTaxExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfIncomeTaxExplanatory" xml:lang="en-US">Disclosure of income tax [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfIncomeTaxExplanatory" xml:lang="en-US">Income Tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfIncomeTaxExplanatory" xlink:to="lab_ifrs-full_DisclosureOfIncomeTaxExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayable" xlink:label="loc_ypf_DisclosureOfTaxesPayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTaxesPayable" xml:lang="en-US">Disclosure of Taxes Payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfTaxesPayable" xml:lang="en-US">Taxes payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTaxesPayable" xlink:to="lab_ypf_DisclosureOfTaxesPayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTaxesPayable" xml:lang="en-US">Disclosure of taxes payable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xlink:label="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xml:lang="en-US">Disclosure Of Salaries And Social Security [Abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xml:lang="en-US">Disclosure of salaries and social security [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xlink:to="lab_ypf_DisclosureOfSalariesAndSocialSecurityAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfSalariesAndSocialSecurityAbstract" xml:lang="en-US">Disclosure of salaries and social security.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" xlink:label="loc_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" xml:lang="en-US">Disclosure Of Salaries And Social Security [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" xml:lang="en-US">Salaries and social security</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" xlink:to="lab_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" xml:lang="en-US">Disclosure of salaries and social security.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesAbstract" xlink:label="loc_ifrs-full_LeaseLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LeaseLiabilitiesAbstract" xml:lang="en-US">Lease liabilities [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LeaseLiabilitiesAbstract" xlink:to="lab_ifrs-full_LeaseLiabilitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfLeasesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfLeasesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfLeasesExplanatory" xml:lang="en-US">Disclosure of leases [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfLeasesExplanatory" xml:lang="en-US">Lease liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfLeasesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfLeasesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" xlink:label="loc_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" xml:lang="en-US">Disclosure of loans and advances to banks [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" xml:lang="en-US">Loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" xlink:to="lab_ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" xml:lang="en-US">Disclosure of other liabilities [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" xml:lang="en-US">Other Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfOtherLiabilitiesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAccountsPayableExplanatory" xlink:label="loc_ypf_DisclosureOfAccountsPayableExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfAccountsPayableExplanatory" xml:lang="en-US">Disclosure of Accounts Payable [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfAccountsPayableExplanatory" xml:lang="en-US">Accounts payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfAccountsPayableExplanatory" xlink:to="lab_ypf_DisclosureOfAccountsPayableExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfAccountsPayableExplanatory" xml:lang="en-US">Disclosure of accounts payable.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfRevenueExplanatory" xlink:label="loc_ifrs-full_DisclosureOfRevenueExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfRevenueExplanatory" xml:lang="en-US">Disclosure of revenue [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfRevenueExplanatory" xml:lang="en-US">Revenues</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfRevenueExplanatory" xlink:to="lab_ifrs-full_DisclosureOfRevenueExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfExpensesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfExpensesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfExpensesExplanatory" xml:lang="en-US">Disclosure of expenses [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfExpensesExplanatory" xml:lang="en-US">Costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfExpensesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfExpensesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfExpensesByNatureExplanatory" xlink:label="loc_ifrs-full_DisclosureOfExpensesByNatureExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfExpensesByNatureExplanatory" xml:lang="en-US">Disclosure of expenses by nature [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfExpensesByNatureExplanatory" xml:lang="en-US">Expenses by Nature</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfExpensesByNatureExplanatory" xlink:to="lab_ifrs-full_DisclosureOfExpensesByNatureExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" xlink:label="loc_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" xml:lang="en-US">Disclosure of other operating income (expense) [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" xml:lang="en-US">Other Net Operating Results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" xlink:to="lab_ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFinancialResultsNetExplanatory" xlink:label="loc_ypf_DisclosureOfFinancialResultsNetExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFinancialResultsNetExplanatory" xml:lang="en-US">Disclosure of Financial Results Net [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfFinancialResultsNetExplanatory" xml:lang="en-US">Net Financial Results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetExplanatory" xlink:to="lab_ypf_DisclosureOfFinancialResultsNetExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfFinancialResultsNetExplanatory" xml:lang="en-US">The entire disclosure of financial results net</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" xlink:label="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" xml:lang="en-US">Investments accounted for using equity method [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" xlink:to="lab_ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsExplanatory" xml:lang="en-US">Disclosure of joint operations [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsExplanatory" xml:lang="en-US">Investments in Joint Operations and Consortiums</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfJointOperationsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" xlink:label="loc_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" xml:lang="en-US">Disclosure of share capital, reserves and other equity interest [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" xml:lang="en-US">Shareholders' Equity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" xlink:to="lab_ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfEarningsPerShareExplanatory" xlink:label="loc_ifrs-full_DisclosureOfEarningsPerShareExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfEarningsPerShareExplanatory" xml:lang="en-US">Disclosure of earnings per share [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfEarningsPerShareExplanatory" xml:lang="en-US">Earnings Per Share</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfEarningsPerShareExplanatory" xlink:to="lab_ifrs-full_DisclosureOfEarningsPerShareExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" xml:lang="en-US">Contingent Assets and Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" xlink:to="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" xml:lang="en-US">Disclosure of contingent assets and liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCommitmentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfCommitmentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfCommitmentsExplanatory" xml:lang="en-US">Disclosure of commitments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfCommitmentsExplanatory" xml:lang="en-US">Contractual Commitments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfCommitmentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfCommitmentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" xlink:label="loc_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" xml:lang="en-US">Disclosure of main regulations and other regulations [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" xml:lang="en-US">Main Regulations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" xlink:to="lab_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" xml:lang="en-US">The entire disclosure of main regulations and other regulations.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" xlink:label="loc_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" xml:lang="en-US">Disclosure Of Balances And Transactions With Related Parties [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" xml:lang="en-US">Balances and Transactions with Related Parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" xlink:to="lab_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" xml:lang="en-US">Disclosure of balances and transactions with related parties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" xml:lang="en-US">Disclosure of employee benefit plans and share based payments [table text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" xml:lang="en-US">Employee Benefit Plans and Similar Obligations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" xlink:to="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" xml:lang="en-US">Tabular disclosure of employee benefit plans and share based payments</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" xlink:label="loc_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" xml:lang="en-US">Disclosure of events after reporting period [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" xml:lang="en-US">Subsequent Events</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" xlink:to="lab_ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" xml:lang="en-US">Disclosure of separate financial statements [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" xml:lang="en-US">Supplemental Information on Oil and Gas Producing Activities (Unaudited)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" xml:lang="en-US">Description of accounting policy for measuring inventories [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" xml:lang="en-US">Inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" xml:lang="en-US">Description of accounting policy for intangible assets other than goodwill [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" xml:lang="en-US">Intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Description of accounting policy for investment in associates and joint ventures [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Investments in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Description of accounting policy for property, plant and equipment [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" xml:lang="en-US">Description of accounting policy for impairment of non-financial assets [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" xml:lang="en-US">Impairment of property, plant and equipment, intangible assets and right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" xml:lang="en-US">Description of accounting policy for share-based payment transactions [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" xml:lang="en-US">Share-based benefit plans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" xml:lang="en-US">Description of accounting policy for recognition of revenue [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" xml:lang="en-US">Revenues</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" xml:lang="en-US">Description of accounting policy for leases [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" xml:lang="en-US">Leases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" xml:lang="en-US">Description of accounting policy for issued capital [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" xml:lang="en-US">Shareholder's equity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" xml:lang="en-US">Description of accounting policy for cash and cash equivalents explanatory [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" xml:lang="en-US">Cash and cash equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" xlink:to="lab_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" xml:lang="en-US">The description of the entity's accounting policy for cash and cash equivalents.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" xml:lang="en-US">Description Of Accounting Policy For Assets Or Disposal Groups And Related Liabilities Classified As Held For Sale And Discontinued Operations Explanatory [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" xml:lang="en-US">Non-current assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" xlink:to="lab_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" xml:lang="en-US">Description of accounting policy for assets or disposal groups and related liabilities classified as held for sale and discontinued operations explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" xml:lang="en-US">Disclosure of changes in accounting policies [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" xml:lang="en-US">New standards issued</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" xml:lang="en-US">Description of accounting policy for Comparative Information [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" xml:lang="en-US">Comparative Information</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" xlink:to="lab_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" xml:lang="en-US">Description of accounting policy for Comparative Information [text block]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" xml:lang="en-US">Description of accounting policy for financial instruments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" xml:lang="en-US">Financial instruments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" xlink:to="lab_ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" xlink:label="loc_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" xml:lang="en-US">Description Of Accounting Policy Applicable Accounting Framework Explanatory [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" xml:lang="en-US">Applicable accounting framework</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" xlink:to="lab_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" xml:lang="en-US">Description of accounting policy applicable accounting framework.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" xml:lang="en-US">Disclosure of accounting judgements and estimates [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" xml:lang="en-US">Significant estimates and key sources of estimation uncertainty</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" xlink:label="loc_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" xml:lang="en-US">Description Of Accounting Policy Basis of Preparation and Presentation Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" xml:lang="en-US">Basis of preparation and presentation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" xlink:to="lab_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" xml:lang="en-US">Description of accounting policy basis of preparation and presentation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" xml:lang="en-US">Disclosure Of Significant Investments In Subsidiaries And Joint Ventures And Associates Explanatory [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" xml:lang="en-US">Summary of Main Companies of the Group</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" xlink:to="lab_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" xml:lang="en-US">Disclosure of significant investments in subsidiaries and joint ventures and associates explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" xlink:label="loc_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" xml:lang="en-US">Disclosure of property plant and equipment estimated useful life [Text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" xml:lang="en-US">Detailed Information About Property, Plant and Equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" xlink:to="lab_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" xml:lang="en-US">The tabular disclosure of property plant and equipment estimated useful life.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsAbstract" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsAbstract" xml:lang="en-US">Disclosure of detailed information about business combination [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsAbstract" xlink:to="lab_ifrs-full_DisclosureOfBusinessCombinationsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsTable" xml:lang="en-US">Disclosure of detailed information about business combination [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsTable" xml:lang="en-US">Disposal percentage of assignment.</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsTable" xlink:to="lab_ifrs-full_DisclosureOfBusinessCombinationsTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsLineItems" xml:lang="en-US">Disclosure of detailed information about business combination [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfBusinessCombinationsLineItems" xml:lang="en-US">Disclosure of detailed information about Acquisitions and Disposals [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfBusinessCombinationsLineItems" xlink:to="lab_ifrs-full_DisclosureOfBusinessCombinationsLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" xml:lang="en-US">Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Table Text Block]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" xlink:to="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" xml:lang="en-US">Disclosure of fair values of the identifiable&#160;assets acquired and&#160;the&#160;liabilities assumed.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsAxis" xlink:label="loc_ifrs-full_BusinessCombinationsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BusinessCombinationsAxis" xml:lang="en-US">Business combinations [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BusinessCombinationsAxis" xml:lang="en-US">Business combinations [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BusinessCombinationsAxis" xlink:to="lab_ifrs-full_BusinessCombinationsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BusinessCombinationsDomain" xlink:label="loc_ifrs-full_BusinessCombinationsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BusinessCombinationsDomain" xml:lang="en-US">Business combinations [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BusinessCombinationsDomain" xml:lang="en-US">Business combinations [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BusinessCombinationsDomain" xlink:to="lab_ifrs-full_BusinessCombinationsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MobilArgentinaSaMember" xlink:label="loc_ypf_MobilArgentinaSaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MobilArgentinaSaMember" xml:lang="en-US">Mobil Argentina S.A. [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MobilArgentinaSaMember" xlink:to="lab_ypf_MobilArgentinaSaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OLCLPMember" xlink:label="loc_ypf_OLCLPMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OLCLPMember" xml:lang="en-US">OLCLP [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OLCLPMember" xml:lang="en-US">OLCLP [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OLCLPMember" xlink:to="lab_ypf_OLCLPMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OLCLPMember" xml:lang="en-US">OLCLP.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmiMember" xlink:label="loc_ypf_VmiMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VmiMember" xml:lang="en-US">VMI [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VmiMember" xlink:to="lab_ypf_VmiMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VmiMember" xml:lang="en-US">VMI.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xml:lang="en-US">Subsidiaries [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xml:lang="en-US">Subsidiaries [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesAxis" xlink:to="lab_ifrs-full_SignificantInvestmentsInSubsidiariesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xml:lang="en-US">Subsidiaries [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xml:lang="en-US">Subsidiaries [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SignificantInvestmentsInSubsidiariesDomain" xlink:to="lab_ifrs-full_SignificantInvestmentsInSubsidiariesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesAxis" xlink:label="loc_ifrs-full_JointVenturesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointVenturesAxis" xml:lang="en-US">Joint ventures [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointVenturesAxis" xml:lang="en-US">Joint ventures [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointVenturesAxis" xlink:to="lab_ifrs-full_JointVenturesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesDomain" xlink:label="loc_ifrs-full_JointVenturesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointVenturesDomain" xml:lang="en-US">Joint ventures [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointVenturesDomain" xml:lang="en-US">Joint ventures [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointVenturesDomain" xlink:to="lab_ifrs-full_JointVenturesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefinorMember" xlink:label="loc_ypf_RefinorMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RefinorMember" xml:lang="en-US">Refinor [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RefinorMember" xml:lang="en-US">Refinor [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RefinorMember" xlink:to="lab_ypf_RefinorMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RefinorMember" xml:lang="en-US">Refinor [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" xml:lang="en-US">Disclosure of nature and extent of risks arising from financial instruments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" xml:lang="en-US">Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" xml:lang="en-US">Disclosure of financial instruments by type of interest rate [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" xml:lang="en-US">Information About Financial Assets and Liabilities That Accrues Interest Considering Applicable Rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" xlink:label="loc_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" xml:lang="en-US">Disclosure Of Effect Of Changes In Basis Points Interest rates [table text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" xml:lang="en-US">Schedule of Estimated Impact on Consolidated Comprehensive Income that an Increase or Decrease of 100 Basis Points in Interest Rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" xlink:to="lab_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" xml:lang="en-US">Disclosure of effect of changes in basis points interest rates</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" xlink:label="loc_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" xml:lang="en-US">Disclosure Of Effect Of Variation In Prices Of Investments In Financial Instruments [table text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" xml:lang="en-US">Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" xlink:to="lab_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" xml:lang="en-US">Disclosure of effect of variation in prices of investments in financial instruments.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" xlink:label="loc_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" xml:lang="en-US">Disclosure of maturity analysis for non-derivative financial liabilities [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" xml:lang="en-US">Schedule of Maturity Dates of Financial Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" xlink:to="lab_ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExplanatory" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExplanatory" xml:lang="en-US">Disclosure of credit risk [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExplanatory" xml:lang="en-US">Summary of Maximum Exposure to Credit Risk</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExplanatory" xlink:to="lab_ifrs-full_DisclosureOfCreditRiskExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" xml:lang="en-US">Disclosure Of Detailed Information Of Financial Assets That Are Either Past Due Or Impaired Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" xml:lang="en-US">Summary of Breakdown of the Financial Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" xlink:to="lab_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" xml:lang="en-US">Disclosure of detailed information of financial assets that are either past due or impaired.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsExplanatory" xml:lang="en-US">Disclosure of operating segments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsExplanatory" xml:lang="en-US">Summary of Business Segment Information</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfOperatingSegmentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xml:lang="en-US">Disclosure of detailed information about financial instruments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xml:lang="en-US">Financial Assets and Liabilities by Category of Financial Instruments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" xml:lang="en-US">Disclosure of gain loss on financial instruments [text block] [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" xml:lang="en-US">Summary of Gains and Losses on Financial and non-financial Instruments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" xlink:to="lab_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" xml:lang="en-US">The disclosure of gain loss on financial and non-financial instruments.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" xml:lang="en-US">Disclosure of fair value of financial instruments [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" xml:lang="en-US">Summary of Company's Financial Assets Measured at Fair Value</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" xml:lang="en-US">Disclosure of reconciliation of changes in intangible assets and goodwill [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" xml:lang="en-US">Summary of Evolution of the Group's Intangible Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" xlink:to="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" xml:lang="en-US">Disclosure of detailed information about intangible assets [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" xml:lang="en-US">Schedule of Intangible Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Disclosure of detailed information about property, plant and equipment [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Summary of Property, Plant and Equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" xlink:to="lab_ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Disclosure of change in property plant and equipment [table text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Summary of Changes in Property, Plant and Equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" xlink:to="lab_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">The disclosure of change in property plant and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" xlink:label="loc_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" xml:lang="en-US">Disclosure of provision for obsolescence of materials and equipment [table text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" xml:lang="en-US">Summary of Provision for Obsolescence of Materials and Equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" xlink:to="lab_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" xml:lang="en-US">The disclosure of provision for obsolescence of materials and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" xlink:label="loc_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Disclosure Of Provision For Impairment of Property, Plant and Equipment [ Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Summary of Provision for Impairment of Property, Plant and Equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" xlink:to="lab_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" xml:lang="en-US">Disclosure of provision for impairment of property, plant and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" xlink:label="loc_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" xml:lang="en-US">Disclosure In Tabular Form Of Distribution Of Property Plant And Equipment By Geographic Area Explanatory [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" xml:lang="en-US">Summary of Property, Plant and Equipment by Geographic Area</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" xlink:to="lab_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" xml:lang="en-US">Disclosure in tabular form of distribution of property plant and equipment by geographic area.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" xml:lang="en-US">Disclosure of quantitative information about right-of-use assets [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" xml:lang="en-US">Summary of Evolution of the Group's Right-of-use Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" xml:lang="en-US">Disclosure of Investments in Associates and Joint Ventures Aggregate Level [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" xml:lang="en-US">Summary of Investments in Associates and Joint Ventures at an Aggregate Level</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" xlink:to="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" xml:lang="en-US">The disclosure of investments in associates and joint ventures aggregate level</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" xml:lang="en-US">Disclosure of Investments in Associates and Joint Ventures Main Movements During the Period Aggregate Level [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" xml:lang="en-US">Summary of Movements which Affected the Value of the Investments in Associates and Joint Ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" xlink:to="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" xml:lang="en-US">The disclosure of investments in associates and joint ventures main movements during the period aggregate level.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" xml:lang="en-US">Disclosure of Investments in Associates and Joint Venture Proportional Equity Value [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" xml:lang="en-US">Summary of the principal amounts of the results of the investments in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" xlink:to="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" xml:lang="en-US">The disclosure of investments in associates and joint venture proportional equity value.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" xlink:label="loc_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Disclosure Of Analysis Of Assets And Liabilities Of Significant Associates And Joint Ventures Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Summary of analysis of assets and liabilities of significant associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" xlink:to="lab_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Disclosure of analysis of assets and liabilities of significant associates and joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" xlink:label="loc_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" xml:lang="en-US">Disclosure Of Investment Associates And Joint Ventures Explanatory [Table Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" xml:lang="en-US">Summary of the investments in associates and joint ventures on a disaggregated basis</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" xlink:to="lab_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" xml:lang="en-US">Disclosure of investment associates and joint ventures explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" xlink:label="loc_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" xml:lang="en-US">Disclosure Of Assets Held For Sale And Associated Liabilities [Table Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" xml:lang="en-US">Summary of the Main Assets Held For Sale and Associated Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" xlink:to="lab_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" xml:lang="en-US">Disclosure of assets held for sale and associated liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" xml:lang="en-US">Disclosure Of Detailed Information Of Inventories [Text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" xml:lang="en-US">Summary of Inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" xlink:to="lab_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" xml:lang="en-US">Disclosure of detailed information of inventories.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherAccountsReceivableExplanatory" xlink:label="loc_ypf_DisclosureOfOtherAccountsReceivableExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfOtherAccountsReceivableExplanatory" xml:lang="en-US">Disclosure Of Other Accounts Receivable Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfOtherAccountsReceivableExplanatory" xml:lang="en-US">Summary of Other Receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfOtherAccountsReceivableExplanatory" xlink:to="lab_ypf_DisclosureOfOtherAccountsReceivableExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfOtherAccountsReceivableExplanatory" xml:lang="en-US">Disclosure of other accounts receivable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" xml:lang="en-US">Disclosure of detailed information of trade accounts receivables [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" xml:lang="en-US">Summary of Trade Receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" xlink:to="lab_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" xml:lang="en-US">Disclosure of detailed information of trade accounts receivables, net.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" xlink:label="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" xml:lang="en-US">Disclosure Of Information About Evolution Of The Provision For Doubtful Trade Receivables Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" xml:lang="en-US">Summary of Evolution of the Provision for Doubtful Trade Receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" xlink:to="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" xml:lang="en-US">Disclosure of information about changes in provision for doubtful trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsExplanatory" xml:lang="en-US">Disclosure of financial assets [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsExplanatory" xml:lang="en-US">Summary of Investments in Financial Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfFinancialAssetsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" xml:lang="en-US">Disclosure of Detailed Cash and Cash Equivalents [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" xml:lang="en-US">Summary of Cash and Cash Equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" xlink:to="lab_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" xml:lang="en-US">Disclosure of detailed cash and cash equivalents.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixExplanatory" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfProvisionMatrixExplanatory" xml:lang="en-US">Disclosure of provision matrix [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfProvisionMatrixExplanatory" xml:lang="en-US">Summary of Changes in Group's Provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixExplanatory" xlink:to="lab_ifrs-full_DisclosureOfProvisionMatrixExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" xml:lang="en-US">Disclosure of detailed information about income tax expense [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" xml:lang="en-US">Summary of Calculation of Income Tax Expense Accrued</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" xlink:to="lab_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" xml:lang="en-US">The disclosure of detailed information about income tax expense.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" xlink:label="loc_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" xml:lang="en-US">Disclosure Of Reconciliation Of Tax Expense [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" xml:lang="en-US">Summary of Reconciliation between the Charge to Net Income for Income Tax and the One that would Result from Applying the Prevailing Tax Rate on Net Income Before Income Tax Arising from the Consolidated Statements of Comprehensive Income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" xlink:to="lab_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" xml:lang="en-US">Disclosure of reconciliation of tax expense.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDeferredTaxesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDeferredTaxesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDeferredTaxesExplanatory" xml:lang="en-US">Disclosure of deferred taxes [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDeferredTaxesExplanatory" xml:lang="en-US">Summary of Breakdown of Deferred Tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDeferredTaxesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfDeferredTaxesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutTaxesPayable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutTaxesPayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutTaxesPayable" xml:lang="en-US">Disclosure of Detailed Information About Taxes Payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutTaxesPayable" xml:lang="en-US">Summary of taxes payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutTaxesPayable" xlink:to="lab_ypf_DisclosureOfDetailedInformationAboutTaxesPayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutTaxesPayable" xml:lang="en-US">Disclosure Of Detailed Information About Taxes Payable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" xml:lang="en-US">Disclosure Of Detailed Information About Salaries And Social Security [Table Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" xml:lang="en-US">Summary of detailed information about salaries and social security</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" xlink:to="lab_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" xml:lang="en-US">Disclosure of detailed information about salaries and social security.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" xlink:label="loc_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" xml:lang="en-US">Disclosure Of Lease Liabilities And Discount Rates [Table Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" xml:lang="en-US">Summary of lease liabilities and discount rates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" xlink:to="lab_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" xml:lang="en-US">Disclosure of lease liabilities and discount rates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" xlink:label="loc_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" xml:lang="en-US">Disclosure Of Lease Liabilities Activity [Table Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" xml:lang="en-US">Summary of lease liabilities activity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" xlink:to="lab_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" xml:lang="en-US">Disclosure of lease liabilities activity.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" xlink:label="loc_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" xml:lang="en-US">Description Of Detailed Information Lease Liabilities Explanatory [Table Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" xml:lang="en-US">Summary of lease liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" xlink:to="lab_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" xml:lang="en-US">Description Of Detailed Information Lease Liabilities Explanatory [Text Block]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" xml:lang="en-US">Disclosure of detailed information about borrowings [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" xml:lang="en-US">Schedule of Loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEvolutionLoansExplanatory" xlink:label="loc_ypf_DisclosureOfEvolutionLoansExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEvolutionLoansExplanatory" xml:lang="en-US">Disclosure Of Evolution Loans Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfEvolutionLoansExplanatory" xml:lang="en-US">Evolution of the Loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEvolutionLoansExplanatory" xlink:to="lab_ypf_DisclosureOfEvolutionLoansExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEvolutionLoansExplanatory" xml:lang="en-US">Disclosure of evolution loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfNegotiableObligationsExplanatory" xlink:label="loc_ypf_DisclosureOfNegotiableObligationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfNegotiableObligationsExplanatory" xml:lang="en-US">Disclosure Of Negotiable Obligations [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfNegotiableObligationsExplanatory" xml:lang="en-US">Detailed Information of Negotiable Obligations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfNegotiableObligationsExplanatory" xlink:to="lab_ypf_DisclosureOfNegotiableObligationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfNegotiableObligationsExplanatory" xml:lang="en-US">Disclosure of negotiable obligations</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" xlink:label="loc_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" xml:lang="en-US">Disclosure of other liabilities details [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" xml:lang="en-US">Details of Other Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" xlink:to="lab_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" xml:lang="en-US">The disclosure of other liabilities details.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" xlink:label="loc_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" xml:lang="en-US">Disclosure Of Detailed Information Accounts Payable [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" xml:lang="en-US">Detailed Information about Accounts Payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" xlink:to="lab_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" xml:lang="en-US">Disclosure of detailed information accounts payable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfNetRevenueExplanatory" xlink:label="loc_ypf_DisclosureOfNetRevenueExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfNetRevenueExplanatory" xml:lang="en-US">Disclosure Of Net Revenue [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfNetRevenueExplanatory" xml:lang="en-US">Detailed Information about Revenue</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfNetRevenueExplanatory" xlink:to="lab_ypf_DisclosureOfNetRevenueExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfNetRevenueExplanatory" xml:lang="en-US">The disclosure of net revenue.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" xlink:label="loc_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" xml:lang="en-US">Disclosure of Breakdown of revenues by Type of good or service explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" xml:lang="en-US">Summary of Breakdown of Revenues by Type of Good or Service</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" xlink:to="lab_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" xml:lang="en-US">Disclosure of Breakdown of revenues by Type of good or service.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" xlink:label="loc_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" xml:lang="en-US">Disclosure of Breakdown of revenues by Sales Channels explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" xml:lang="en-US">Summary of Breakdown of Revenues by Sales Channels</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" xlink:to="lab_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" xml:lang="en-US">Disclosure of Breakdown of revenues by Sales Channels explanatory</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" xlink:label="loc_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" xml:lang="en-US">Disclosure of redits, contract assets and contract liabilities explanatory [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" xml:lang="en-US">Summary of Credits, Contract Assets and Contract Liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" xlink:to="lab_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" xml:lang="en-US">Disclosure of redits, contract assets and contract liabilities explanatory [text block]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" xlink:label="loc_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" xml:lang="en-US">Disclosure In Tabular Form Of Distribution Of Revenues On A Geographical Basis [Text Block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" xml:lang="en-US">Summary of Revenue by Geographic Area</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" xlink:to="lab_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" xml:lang="en-US">Disclosure in tabular form of distribution of revenues on a geographical basis.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" xlink:label="loc_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" xml:lang="en-US">Disclosure of details of inventory costs [Text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" xml:lang="en-US">Detailed Information of Inventory Costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" xlink:to="lab_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" xml:lang="en-US">The disclosure of details of inventory costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" xlink:label="loc_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" xml:lang="en-US">Disclosure of details of expenses by nature [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" xml:lang="en-US">Detailed Information about Expenses by Nature</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" xlink:to="lab_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" xml:lang="en-US">The disclosure of details of expenses by nature.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherOperatingResultsNetExplanatory" xlink:label="loc_ypf_DisclosureOfOtherOperatingResultsNetExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfOtherOperatingResultsNetExplanatory" xml:lang="en-US">Disclosure Of Other Operating Results Net [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfOtherOperatingResultsNetExplanatory" xml:lang="en-US">Summary of Other Operating Results Net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetExplanatory" xlink:to="lab_ypf_DisclosureOfOtherOperatingResultsNetExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfOtherOperatingResultsNetExplanatory" xml:lang="en-US">Disclosure of other operating results net.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" xlink:label="loc_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" xml:lang="en-US">Disclosure Of Detail Information Financial Results Net [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" xml:lang="en-US">Detailed Information about Financial Results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" xlink:to="lab_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" xml:lang="en-US">Disclosure of detail information financial results net.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" xlink:label="loc_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" xml:lang="en-US">Disclosure of Information in Assets, Liabilities and expenses in Joint Operations [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" xml:lang="en-US">Information of Assets, Liabilities and Expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" xlink:to="lab_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" xml:lang="en-US">Disclosure of information in assets, liabilities and expenses in joint operations.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" xlink:label="loc_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" xml:lang="en-US">Disclosure Of Information About Exploration And Exploitation Of Joint Ventures And Other Agreements Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" xml:lang="en-US">Information about Exploration and Exploitation of Joint Ventures and Other Agreements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" xlink:to="lab_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" xml:lang="en-US">Disclosure of information about exploration and exploitation of Joint ventures and other agreements.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EarningsPerShareExplanatory" xlink:label="loc_ifrs-full_EarningsPerShareExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EarningsPerShareExplanatory" xml:lang="en-US">Earnings per share [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EarningsPerShareExplanatory" xml:lang="en-US">Summary of Earnings Per Share</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EarningsPerShareExplanatory" xlink:to="lab_ifrs-full_EarningsPerShareExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" xlink:label="loc_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Disclosure of related party transactions with associates and joint ventures [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Balances and Transactions with Associates and Joint Ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" xlink:to="lab_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" xml:lang="en-US">Disclosure of related party transactions with associates and joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" xlink:label="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" xml:lang="en-US">Disclosure of key management personnel compensation [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" xml:lang="en-US">Information about Public Sector Related Entities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" xlink:to="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" xml:lang="en-US">The disclosure of key management personnel compensation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" xlink:label="loc_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" xml:lang="en-US">Disclosure of Compensation of Key Management Personnel [Text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" xml:lang="en-US">Summary of Compensation of Key Management Personnel</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" xlink:to="lab_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" xml:lang="en-US">Disclosure of compensation of key management personnel explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:label="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDefinedBenefitPlansTable" xml:lang="en-US">Disclosure of defined benefit plans [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansTable" xlink:to="lab_ifrs-full_DisclosureOfDefinedBenefitPlansTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:label="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xml:lang="en-US">Disclosure of defined benefit plans [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" xlink:to="lab_ifrs-full_DisclosureOfDefinedBenefitPlansLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" xlink:label="loc_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" xml:lang="en-US">Disclosure of number and weighted average exercise prices of share options [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" xml:lang="en-US">Summary of Share Based Benefit Plan</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" xlink:to="lab_ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xml:lang="en-US">Types of share-based payment arrangements [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xml:lang="en-US">Types of share-based payment arrangements [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" xlink:to="lab_ifrs-full_TypesOfSharebasedPaymentArrangementsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:label="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xml:lang="en-US">Types of share-based payment arrangements [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xml:lang="en-US">Types of share-based payment arrangements [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" xlink:to="lab_ifrs-full_TypesOfSharebasedPaymentArrangementsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand Twenty To Two Thousand Twenty Three [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xml:lang="en-US">Plan 2020 - 2023 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" xml:lang="en-US">Share based benefit plan two thousand twenty to two thousand twenty three [member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand Twenty One To Two Thousand Twenty Four [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xml:lang="en-US">Plan 2021 - 2024 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" xml:lang="en-US">Share based benefit plan two thousand twenty one to two thousand twenty four.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand And Twenty Two to Twenty Five [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xml:lang="en-US">Plan 2022 - 2025 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" xml:lang="en-US">Share based benefit plan two thousand and twenty two to twenty five member.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand Twenty Three To Two Thousand Twenty Six [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xml:lang="en-US">Plan 2023 - 2026 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" xml:lang="en-US">Share based benefit plan two thousand and twenty three to two thousand and twenty six member.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand And Twenty Five To Twenty Eight [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xml:lang="en-US">Plan 2025 - 2028 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" xml:lang="en-US">Share based benefit plan two thousand and twenty five to twenty eight</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand And Twenty Four To Twenty Seven [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xml:lang="en-US">Plan 2024 - 2027 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" xml:lang="en-US">Share based benefit plan two thousand and twenty four to twenty seven</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xml:lang="en-US">Disclosure of information about consolidated structured entities [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xml:lang="en-US">Disclosure of information about consolidated structured entities [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xml:lang="en-US">Classes of property, plant and equipment [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xml:lang="en-US">Classes of property, plant and equipment [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" xlink:to="lab_ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:label="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xml:lang="en-US">Classes of property, plant and equipment [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xml:lang="en-US">Classes of property, plant and equipment [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" xlink:to="lab_ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasLiquidsMember" xlink:label="loc_ypf_NaturalGasLiquidsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NaturalGasLiquidsMember" xml:lang="en-US">Natural gas liquids [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NaturalGasLiquidsMember" xml:lang="en-US">Natural Gas Liquids [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NaturalGasLiquidsMember" xlink:to="lab_ypf_NaturalGasLiquidsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NaturalGasLiquidsMember" xml:lang="en-US">Natural gas liquids.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ReserveQuantitiesByTypeOfReserveAxis" xlink:label="loc_srt_ReserveQuantitiesByTypeOfReserveAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_ReserveQuantitiesByTypeOfReserveAxis" xml:lang="en-US">Petroleum Reserves [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_ReserveQuantitiesByTypeOfReserveAxis" xml:lang="en-US">Petroleum Reserves [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_ReserveQuantitiesByTypeOfReserveAxis" xlink:to="lab_srt_ReserveQuantitiesByTypeOfReserveAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_TypeOfReserveDomain" xlink:label="loc_srt_TypeOfReserveDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_TypeOfReserveDomain" xml:lang="en-US">Type of Reserve [Domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_TypeOfReserveDomain" xml:lang="en-US">Type of Reserve [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_TypeOfReserveDomain" xlink:to="lab_srt_TypeOfReserveDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_OilReservesMember" xlink:label="loc_srt_OilReservesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_OilReservesMember" xml:lang="en-US">Oil [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_OilReservesMember" xml:lang="en-US">Oil and Condensate [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_OilReservesMember" xlink:to="lab_srt_OilReservesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasMember" xlink:label="loc_ypf_NaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NaturalGasMember" xml:lang="en-US">Natural Gas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NaturalGasMember" xml:lang="en-US">Natural gas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NaturalGasMember" xlink:to="lab_ypf_NaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NaturalGasMember" xml:lang="en-US">Natural gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilEquivalentMember" xlink:label="loc_ypf_OilEquivalentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilEquivalentMember" xml:lang="en-US">Oil Equivalent [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OilEquivalentMember" xml:lang="en-US">Oil equivalent [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilEquivalentMember" xlink:to="lab_ypf_OilEquivalentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilEquivalentMember" xml:lang="en-US">Oil equivalent.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xml:lang="en-US">Disclosure of information about consolidated structured entities [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xml:lang="en-US">Disclosure of information about consolidated structured entities [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xml:lang="en-US">Disclosure of information about consolidated entities [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xml:lang="en-US">Disclosure of information about consolidated entities [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" xml:lang="en-US">Disclosure of information about consolidated structured entities [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" xml:lang="en-US">Summary of Changes in YPF's Net Proved Reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCapitalizedCostsExplanatory" xlink:label="loc_ypf_DisclosureOfCapitalizedCostsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfCapitalizedCostsExplanatory" xml:lang="en-US">Disclosure Of Capitalized Costs [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfCapitalizedCostsExplanatory" xml:lang="en-US">Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfCapitalizedCostsExplanatory" xlink:to="lab_ypf_DisclosureOfCapitalizedCostsExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfCapitalizedCostsExplanatory" xml:lang="en-US">The disclosure of capitalized costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xlink:label="loc_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xml:lang="en-US">Disclosure Of Cost Incurred In Oil And Gas Producing Activity [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xml:lang="en-US">Costs Incurred for Oil and Gas Producing Activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xlink:to="lab_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" xml:lang="en-US">The disclosure of cost incurred in oil and gas producing activity.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xlink:label="loc_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xml:lang="en-US">Disclosure Of Oil And Gas Producing Activities [text block]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xml:lang="en-US">Results of Operations from Oil and Gas Producing Activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xlink:to="lab_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" xml:lang="en-US">The disclosure of oil and gas producing activities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xml:lang="en-US">Disclosure Of Discounted Future Net Cash Flow From Oil And Gas Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xml:lang="en-US">Summary of Standardized Measure of Discounted Future Net Cash Flows</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xlink:to="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" xml:lang="en-US">Disclosure of discounted future net cash flow from oil and gas explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xlink:label="loc_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xml:lang="en-US">Disclosure Of Standardized Measure Of Future Net Cash Flow From Oil And Gas Explanatory</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xml:lang="en-US">Summary of Changes in the Standardized Measure of Discounted Future Net Cash Flows</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xlink:to="lab_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" xml:lang="en-US">Disclosure Of standardized measure of future net cash flow from oil and gas explanatory.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupAbstract" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SummaryOfMainCompaniesOfTheGroupAbstract" xml:lang="en-US">Summary of Main Companies of the Group [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupAbstract" xlink:to="lab_ypf_SummaryOfMainCompaniesOfTheGroupAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupTable" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SummaryOfMainCompaniesOfTheGroupTable" xml:lang="en-US">Summary of Main Companies of the Group [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupTable" xlink:to="lab_ypf_SummaryOfMainCompaniesOfTheGroupTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SummaryOfMainCompaniesOfTheGroupLineItems" xlink:label="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SummaryOfMainCompaniesOfTheGroupLineItems" xml:lang="en-US">Summary of Main Companies of the Group [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SummaryOfMainCompaniesOfTheGroupLineItems" xlink:to="lab_ypf_SummaryOfMainCompaniesOfTheGroupLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xlink:label="loc_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xml:lang="en-US">Description Of Nature Of Entitys Relationship With Subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xml:lang="en-US">Main business of subsidiary</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xlink:to="lab_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" xml:lang="en-US">The description of the nature of the entity's relationship with an subsidiary.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xml:lang="en-US">Proportion of ownership interest in subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/disclosureGuidance" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xml:lang="en-US">Percentage of ownership of capital stock in subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xml:lang="en-US">Proportion of ownership interest in subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xml:lang="en-US">Proportion of ownership interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" xlink:to="lab_ifrs-full_ProportionOfOwnershipInterestInSubsidiary" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfSubsidiary" xlink:label="loc_ifrs-full_NameOfSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NameOfSubsidiary" xml:lang="en-US">Name of subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NameOfSubsidiary" xml:lang="en-US">Name of subsidiary</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NameOfSubsidiary" xlink:to="lab_ifrs-full_NameOfSubsidiary" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" xlink:label="loc_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" xml:lang="en-US">Country of incorporation of subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" xml:lang="en-US">Country of subsidiary</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" xlink:to="lab_ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfAssociate" xlink:label="loc_ifrs-full_NameOfAssociate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NameOfAssociate" xml:lang="en-US">Name of associate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NameOfAssociate" xml:lang="en-US">Name of associate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NameOfAssociate" xlink:to="lab_ifrs-full_NameOfAssociate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" xlink:label="loc_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" xml:lang="en-US">Country of incorporation of associate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" xml:lang="en-US">Country of associate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" xlink:to="lab_ifrs-full_CountryOfIncorporationOrResidenceOfAssociate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" xml:lang="en-US">Description of nature of entity's relationship with associate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" xml:lang="en-US">Main business of associate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" xlink:to="lab_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInAssociate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInAssociate" xml:lang="en-US">Proportion of ownership interest in associate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInAssociate" xml:lang="en-US">Percentage of ownership of capital stock in associate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProportionOfOwnershipInterestInAssociate" xlink:to="lab_ifrs-full_ProportionOfOwnershipInterestInAssociate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NameOfJointVenture" xlink:label="loc_ifrs-full_NameOfJointVenture" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NameOfJointVenture" xml:lang="en-US">Name of joint venture</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NameOfJointVenture" xlink:to="lab_ifrs-full_NameOfJointVenture" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOfJointVenture" xlink:label="loc_ifrs-full_CountryOfIncorporationOfJointVenture" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CountryOfIncorporationOfJointVenture" xml:lang="en-US">Country of incorporation of joint venture</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CountryOfIncorporationOfJointVenture" xml:lang="en-US">Country of joint venture</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CountryOfIncorporationOfJointVenture" xlink:to="lab_ifrs-full_CountryOfIncorporationOfJointVenture" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" xlink:label="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" xml:lang="en-US">Description of nature of entity's relationship with joint venture</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" xml:lang="en-US">Main business of joint venture</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" xlink:to="lab_ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointVenture" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInJointVenture" xml:lang="en-US">Proportion of ownership interest in joint venture</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInJointVenture" xml:lang="en-US">Percentage of ownership of capital stock in joint venture</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProportionOfOwnershipInterestInJointVenture" xlink:to="lab_ifrs-full_ProportionOfOwnershipInterestInJointVenture" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EleranMember" xlink:label="loc_ypf_EleranMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EleranMember" xml:lang="en-US">Eleran [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EleranMember" xml:lang="en-US">Eleran [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EleranMember" xlink:to="lab_ypf_EleranMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OPESSAMember" xlink:label="loc_ypf_OPESSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OPESSAMember" xml:lang="en-US">OPESSA [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OPESSAMember" xml:lang="en-US">OPESSA [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OPESSAMember" xlink:to="lab_ypf_OPESSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OPESSAMember" xml:lang="en-US">OPESSA.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFChileMember" xlink:label="loc_ypf_YPFChileMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YPFChileMember" xml:lang="en-US">YPF Chile [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YPFChileMember" xml:lang="en-US">YPF Chile [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YPFChileMember" xlink:to="lab_ypf_YPFChileMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YPFChileMember" xml:lang="en-US">YPF Chile.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMember" xlink:label="loc_ypf_OTAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OTAMember" xml:lang="en-US">OTA [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OTAMember" xml:lang="en-US">OTA [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OTAMember" xlink:to="lab_ypf_OTAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OTAMember" xml:lang="en-US">OTA [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTCMember" xlink:label="loc_ypf_OTCMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OTCMember" xml:lang="en-US">OTC [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OTCMember" xml:lang="en-US">OTC [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OTCMember" xlink:to="lab_ypf_OTCMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OTCMember" xml:lang="en-US">OTC [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OldelvalMember" xlink:label="loc_ypf_OldelvalMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OldelvalMember" xml:lang="en-US">Oldelval [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OldelvalMember" xml:lang="en-US">Oldelval [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OldelvalMember" xlink:to="lab_ypf_OldelvalMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OldelvalMember" xml:lang="en-US">Oldelval [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VmosMember" xlink:label="loc_ypf_VmosMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VmosMember" xml:lang="en-US">VMOS [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_VmosMember" xml:lang="en-US">VMOS [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VmosMember" xlink:to="lab_ypf_VmosMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VmosMember" xml:lang="en-US">VMOS.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermapMember" xlink:label="loc_ypf_TermapMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TermapMember" xml:lang="en-US">Termap [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TermapMember" xml:lang="en-US">Termap [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TermapMember" xlink:to="lab_ypf_TermapMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TermapMember" xml:lang="en-US">Termap [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetrogasMember" xlink:label="loc_ypf_MetrogasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MetrogasMember" xml:lang="en-US">Metrogas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MetrogasMember" xml:lang="en-US">Metrogas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MetrogasMember" xlink:to="lab_ypf_MetrogasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MetrogasMember" xml:lang="en-US">Metrogas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MetroenergiaMember" xlink:label="loc_ypf_MetroenergiaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MetroenergiaMember" xml:lang="en-US">Metroenergia [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MetroenergiaMember" xml:lang="en-US">Metroenerg&#237;a [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MetroenergiaMember" xlink:to="lab_ypf_MetroenergiaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ArgentinaLngMember" xlink:label="loc_ypf_ArgentinaLngMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ArgentinaLngMember" xml:lang="en-US">Argentina LNG [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ArgentinaLngMember" xml:lang="en-US">Argentina LNG [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ArgentinaLngMember" xlink:to="lab_ypf_ArgentinaLngMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ArgentinaLngMember" xml:lang="en-US">Argentina LNG.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergeticasMember" xlink:label="loc_ypf_SurInversionesEnergeticasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SurInversionesEnergeticasMember" xml:lang="en-US">Sur Inversiones Energeticas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SurInversionesEnergeticasMember" xml:lang="en-US">Sur Inversiones Energ&#233;ticas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SurInversionesEnergeticasMember" xlink:to="lab_ypf_SurInversionesEnergeticasMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MEGAMember" xlink:label="loc_ypf_MEGAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MEGAMember" xml:lang="en-US">MEGA [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MEGAMember" xml:lang="en-US">MEGA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MEGAMember" xlink:to="lab_ypf_MEGAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MEGAMember" xml:lang="en-US">MEGA.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFEEMember" xlink:label="loc_ypf_YPFEEMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YPFEEMember" xml:lang="en-US">YPF EE [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YPFEEMember" xml:lang="en-US">YPF EE [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YPFEEMember" xlink:to="lab_ypf_YPFEEMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YPFEEMember" xml:lang="en-US">YPF EE.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CTBarraganMember" xlink:label="loc_ypf_CTBarraganMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CTBarraganMember" xml:lang="en-US">CT Barragan [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CTBarraganMember" xml:lang="en-US">CT Barrag&#225;n [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CTBarraganMember" xlink:to="lab_ypf_CTBarraganMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CTBarraganMember" xml:lang="en-US">CT Barragan.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CDSMember" xlink:label="loc_ypf_CDSMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CDSMember" xml:lang="en-US">CDS [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CDSMember" xml:lang="en-US">CDS [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CDSMember" xlink:to="lab_ypf_CDSMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CDSMember" xml:lang="en-US">CDS [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YPFGasMember" xlink:label="loc_ypf_YPFGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YPFGasMember" xml:lang="en-US">YPF Gas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YPFGasMember" xml:lang="en-US">YPF Gas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YPFGasMember" xlink:to="lab_ypf_YPFGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YPFGasMember" xml:lang="en-US">YPF Gas [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AESAMember" xlink:label="loc_ypf_AESAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AESAMember" xml:lang="en-US">AESA [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AESAMember" xml:lang="en-US">AESA [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AESAMember" xlink:to="lab_ypf_AESAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AESAMember" xml:lang="en-US">AESA.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YTECMember" xlink:label="loc_ypf_YTECMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YTECMember" xml:lang="en-US">Y T E C [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YTECMember" xml:lang="en-US">Y-TEC [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YTECMember" xlink:to="lab_ypf_YTECMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YTECMember" xml:lang="en-US">Y T E C [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfVenturesMember" xlink:label="loc_ypf_YpfVenturesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YpfVenturesMember" xml:lang="en-US">YPF Ventures [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YpfVenturesMember" xml:lang="en-US">YPF Ventures [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YpfVenturesMember" xlink:to="lab_ypf_YpfVenturesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YpfVenturesMember" xml:lang="en-US">YPF Ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScGasMember" xlink:label="loc_ypf_ScGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ScGasMember" xml:lang="en-US">SC Gas [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ScGasMember" xlink:to="lab_ypf_ScGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ScGasMember" xml:lang="en-US">SC Gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OTAMERICAMember" xlink:label="loc_ypf_OTAMERICAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OTAMERICAMember" xml:lang="en-US">OTAMERICA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OTAMERICAMember" xlink:to="lab_ypf_OTAMERICAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OTAMERICAMember" xml:lang="en-US">OTAMERICA.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfDigitalMember" xlink:label="loc_ypf_YpfDigitalMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YpfDigitalMember" xml:lang="en-US">YPF Digital [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YpfDigitalMember" xlink:to="lab_ypf_YpfDigitalMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YpfDigitalMember" xml:lang="en-US">YPF Digital.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupAxis" xlink:label="loc_ypf_EntityGroupAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EntityGroupAxis" xml:lang="en-US">Entity Group [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EntityGroupAxis" xlink:to="lab_ypf_EntityGroupAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EntityGroupDomain" xlink:label="loc_ypf_EntityGroupDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EntityGroupDomain" xml:lang="en-US">Entity Group [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EntityGroupDomain" xlink:to="lab_ypf_EntityGroupDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamMember" xlink:label="loc_ypf_UpstreamMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UpstreamMember" xml:lang="en-US">Upstream [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UpstreamMember" xml:lang="en-US">Upstream [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UpstreamMember" xlink:to="lab_ypf_UpstreamMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UpstreamMember" xml:lang="en-US">Upstream.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MidstreamAndDownstreamMember" xlink:label="loc_ypf_MidstreamAndDownstreamMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MidstreamAndDownstreamMember" xml:lang="en-US">Midstream and Downstream [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MidstreamAndDownstreamMember" xml:lang="en-US">Midstream and Downstream [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MidstreamAndDownstreamMember" xlink:to="lab_ypf_MidstreamAndDownstreamMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MidstreamAndDownstreamMember" xml:lang="en-US">Midstream and Downstream.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LNGandIntegratedGasMember" xlink:label="loc_ypf_LNGandIntegratedGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LNGandIntegratedGasMember" xml:lang="en-US">LNG and Integrated Gas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LNGandIntegratedGasMember" xml:lang="en-US">LNG and Integrated Gas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_LNGandIntegratedGasMember" xml:lang="en-US">Gas and power [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LNGandIntegratedGasMember" xlink:to="lab_ypf_LNGandIntegratedGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LNGandIntegratedGasMember" xml:lang="en-US">LNG&#160;and Integrated gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CentralAdministrationAndOthersMember" xlink:label="loc_ypf_CentralAdministrationAndOthersMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CentralAdministrationAndOthersMember" xml:lang="en-US">Central Administration And Others [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CentralAdministrationAndOthersMember" xml:lang="en-US">Central Administration and Others [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CentralAdministrationAndOthersMember" xlink:to="lab_ypf_CentralAdministrationAndOthersMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CentralAdministrationAndOthersMember" xml:lang="en-US">Central administration and others.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewEnergiesMember" xlink:label="loc_ypf_NewEnergiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NewEnergiesMember" xml:lang="en-US">New Energies [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NewEnergiesMember" xlink:to="lab_ypf_NewEnergiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NewEnergiesMember" xml:lang="en-US">New energies.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" xml:lang="en-US">Disclosure of assets and liabilities with significant risk of material adjustment [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" xml:lang="en-US">Disclosure of estimated useful life of the Property, plant and equipment [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" xlink:to="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xml:lang="en-US">Disclosure of assets and liabilities with significant risk of material adjustment [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xml:lang="en-US">Disclosure of estimated useful life of the Property, plant and equipment [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" xlink:to="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ConsolidatedStructuredEntitiesAxis" xml:lang="en-US">Consolidated structured entities [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ConsolidatedStructuredEntitiesAxis" xml:lang="en-US">Consolidated structured entities [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesAxis" xlink:to="lab_ifrs-full_ConsolidatedStructuredEntitiesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ConsolidatedStructuredEntitiesDomain" xml:lang="en-US">Consolidated structured entities [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ConsolidatedStructuredEntitiesDomain" xml:lang="en-US">Consolidated structured entities [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesDomain" xlink:to="lab_ifrs-full_ConsolidatedStructuredEntitiesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:label="loc_ifrs-full_ConsolidatedStructuredEntitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ConsolidatedStructuredEntitiesMember" xml:lang="en-US">Consolidated structured entities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ConsolidatedStructuredEntitiesMember" xml:lang="en-US">Consolidated entities [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ConsolidatedStructuredEntitiesMember" xlink:to="lab_ifrs-full_ConsolidatedStructuredEntitiesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" xml:lang="en-US">Disclosure of assets and liabilities with significant risk of material adjustment [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" xml:lang="en-US">Disclosure of estimated useful life of the Property, plant and equipment [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" xlink:to="lab_ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" xlink:label="loc_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" xml:lang="en-US">Reclassification Of Other Financial Results To Income Tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" xlink:to="lab_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" xml:lang="en-US">Reclassification of other financial results to income tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xml:lang="en-US">Individual assets or cash-generating units [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xml:lang="en-US">Individual assets or cash-generating units [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" xlink:to="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xml:lang="en-US">Individual assets or cash-generating units [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xml:lang="en-US">Individual assets or cash-generating units [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" xlink:to="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityAxis" xlink:label="loc_ifrs-full_MaturityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MaturityAxis" xml:lang="en-US">Maturity [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MaturityAxis" xml:lang="en-US">Maturity [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MaturityAxis" xlink:to="lab_ifrs-full_MaturityAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaturityDomain" xlink:label="loc_ifrs-full_MaturityDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MaturityDomain" xml:lang="en-US">Maturity [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MaturityDomain" xml:lang="en-US">Maturity [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MaturityDomain" xlink:to="lab_ifrs-full_MaturityDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xml:lang="en-US">Non-adjusting events after reporting period [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xml:lang="en-US">Non-adjusting events after reporting period [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" xlink:to="lab_ifrs-full_NonadjustingEventsAfterReportingPeriodAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:label="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xml:lang="en-US">Non-adjusting events after reporting period [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xml:lang="en-US">Non-adjusting events after reporting period [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" xlink:to="lab_ifrs-full_NonadjustingEventsAfterReportingPeriodDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesAxis" xlink:label="loc_ifrs-full_ProductsAndServicesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProductsAndServicesAxis" xml:lang="en-US">Products and services [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProductsAndServicesAxis" xml:lang="en-US">Products and services [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProductsAndServicesAxis" xlink:to="lab_ifrs-full_ProductsAndServicesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProductsAndServicesDomain" xlink:label="loc_ifrs-full_ProductsAndServicesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProductsAndServicesDomain" xml:lang="en-US">Products and services [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProductsAndServicesDomain" xml:lang="en-US">Products and services [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProductsAndServicesDomain" xlink:to="lab_ifrs-full_ProductsAndServicesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeAxis" xlink:label="loc_ifrs-full_RangeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RangeAxis" xml:lang="en-US">Range [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RangeAxis" xml:lang="en-US">Range [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RangeAxis" xlink:to="lab_ifrs-full_RangeAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RangeDomain" xlink:label="loc_ifrs-full_RangeDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RangeDomain" xml:lang="en-US">Range [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RangeDomain" xml:lang="en-US">Range [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RangeDomain" xlink:to="lab_ifrs-full_RangeDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsAxis" xlink:label="loc_ifrs-full_SegmentsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SegmentsAxis" xml:lang="en-US">Segments [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SegmentsAxis" xml:lang="en-US">Segments [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SegmentsAxis" xlink:to="lab_ifrs-full_SegmentsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentsDomain" xlink:label="loc_ifrs-full_SegmentsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SegmentsDomain" xml:lang="en-US">Segments [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SegmentsDomain" xml:lang="en-US">Segments [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SegmentsDomain" xlink:to="lab_ifrs-full_SegmentsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingAxis" xlink:label="loc_ypf_EventAfterReportingAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EventAfterReportingAxis" xml:lang="en-US">Event After Reporting [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EventAfterReportingAxis" xml:lang="en-US">Statement scenario [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EventAfterReportingAxis" xlink:to="lab_ypf_EventAfterReportingAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EventAfterReportingAxis" xml:lang="en-US">Event after reporting.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EventAfterReportingMember" xlink:label="loc_ypf_EventAfterReportingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EventAfterReportingMember" xml:lang="en-US">Event After Reporting [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EventAfterReportingMember" xml:lang="en-US">Statement scenario [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EventAfterReportingMember" xlink:to="lab_ypf_EventAfterReportingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EventAfterReportingMember" xml:lang="en-US">Event after reporting.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" xml:lang="en-US">Cash-generating units [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" xlink:to="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" xlink:label="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" xml:lang="en-US">Cash-generating units [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" xlink:to="lab_ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsAxis" xlink:label="loc_ifrs-full_NewIFRSsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NewIFRSsAxis" xml:lang="en-US">New IFRSs [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NewIFRSsAxis" xlink:to="lab_ifrs-full_NewIFRSsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NewIFRSsDomain" xlink:label="loc_ifrs-full_NewIFRSsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NewIFRSsDomain" xml:lang="en-US">New IFRSs [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NewIFRSsDomain" xlink:to="lab_ifrs-full_NewIFRSsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CategoriesOfFinancialAssetsAxis" xml:lang="en-US">Categories of financial assets [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CategoriesOfFinancialAssetsAxis" xml:lang="en-US">Categories of financial assets [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsAxis" xlink:to="lab_ifrs-full_CategoriesOfFinancialAssetsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_CategoriesOfFinancialAssetsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CategoriesOfFinancialAssetsDomain" xml:lang="en-US">Categories of financial assets [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CategoriesOfFinancialAssetsDomain" xml:lang="en-US">Categories of financial assets [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CategoriesOfFinancialAssetsDomain" xlink:to="lab_ifrs-full_CategoriesOfFinancialAssetsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasAxis" xlink:label="loc_ifrs-full_GeographicalAreasAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GeographicalAreasAxis" xml:lang="en-US">Geographical areas [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GeographicalAreasAxis" xml:lang="en-US">Geographical areas [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GeographicalAreasAxis" xlink:to="lab_ifrs-full_GeographicalAreasAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GeographicalAreasDomain" xlink:label="loc_ifrs-full_GeographicalAreasDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GeographicalAreasDomain" xml:lang="en-US">Geographical areas [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GeographicalAreasDomain" xml:lang="en-US">Geographical areas [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GeographicalAreasDomain" xlink:to="lab_ifrs-full_GeographicalAreasDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:label="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xml:lang="en-US">Retrospective application and retrospective restatement [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xml:lang="en-US">Retrospective application and retrospective restatement [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" xlink:to="lab_ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RestatedMember" xlink:label="loc_ifrs-full_RestatedMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RestatedMember" xml:lang="en-US">Currently stated [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RestatedMember" xml:lang="en-US">Currently stated [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RestatedMember" xlink:to="lab_ifrs-full_RestatedMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BuildingsMember" xlink:label="loc_ifrs-full_BuildingsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BuildingsMember" xml:lang="en-US">Buildings [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BuildingsMember" xml:lang="en-US">Buildings and other constructions [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BuildingsMember" xlink:to="lab_ifrs-full_BuildingsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MachineryMember" xlink:label="loc_ifrs-full_MachineryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MachineryMember" xml:lang="en-US">Machinery [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_MachineryMember" xml:lang="en-US">Refinery equipment and petrochemical plants [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MachineryMember" xml:lang="en-US">Machinery and equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MachineryMember" xlink:to="lab_ifrs-full_MachineryMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OilAndGasAssetsMember" xlink:label="loc_ifrs-full_OilAndGasAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OilAndGasAssetsMember" xml:lang="en-US">Oil and gas assets [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OilAndGasAssetsMember" xml:lang="en-US">Infrastructure for Natural Gas Distribution [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OilAndGasAssetsMember" xlink:to="lab_ifrs-full_OilAndGasAssetsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_VehiclesMember" xlink:label="loc_ifrs-full_VehiclesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_VehiclesMember" xml:lang="en-US">Vehicles [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_VehiclesMember" xml:lang="en-US">Transportation equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_VehiclesMember" xlink:to="lab_ifrs-full_VehiclesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixturesAndFittingsMember" xlink:label="loc_ifrs-full_FixturesAndFittingsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FixturesAndFittingsMember" xml:lang="en-US">Fixtures and fittings [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FixturesAndFittingsMember" xml:lang="en-US">Furniture, fixtures and installations [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FixturesAndFittingsMember" xlink:to="lab_ifrs-full_FixturesAndFittingsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OfficeEquipmentMember" xlink:label="loc_ifrs-full_OfficeEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OfficeEquipmentMember" xml:lang="en-US">Office equipment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OfficeEquipmentMember" xml:lang="en-US">Selling equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OfficeEquipmentMember" xlink:to="lab_ifrs-full_OfficeEquipmentMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherPropertyPlantAndEquipmentMember" xlink:label="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherPropertyPlantAndEquipmentMember" xml:lang="en-US">Other property, plant and equipment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherPropertyPlantAndEquipmentMember" xml:lang="en-US">Other Property [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherPropertyPlantAndEquipmentMember" xlink:to="lab_ifrs-full_OtherPropertyPlantAndEquipmentMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xml:lang="en-US">Disclosure of detailed information about property, plant and equipment [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xml:lang="en-US">Disclosure of estimated useful life of the Property, plant and equipment [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xml:lang="en-US">Disclosure of detailed information about property, plant and equipment [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" xlink:to="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xml:lang="en-US">Useful life measured as period of time, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xml:lang="en-US">Estimated useful life of the assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" xlink:to="lab_ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BottomOfRangeMember" xlink:label="loc_ifrs-full_BottomOfRangeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BottomOfRangeMember" xml:lang="en-US">Bottom of range [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BottomOfRangeMember" xml:lang="en-US">Bottom of range [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BottomOfRangeMember" xlink:to="lab_ifrs-full_BottomOfRangeMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TopOfRangeMember" xlink:label="loc_ifrs-full_TopOfRangeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TopOfRangeMember" xml:lang="en-US">Top of range [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TopOfRangeMember" xml:lang="en-US">Top of range [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_TopOfRangeMember" xml:lang="en-US">Top of range [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TopOfRangeMember" xlink:to="lab_ifrs-full_TopOfRangeMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:label="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xml:lang="en-US">Consideration transferred, acquisition-date fair value</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xml:lang="en-US">Total price of the transaction</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" xlink:to="lab_ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xlink:label="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xml:lang="en-US">Percentage Of Ownership Interest In The Subsidiary To Be Disposed Off</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xml:lang="en-US">Percentage of ownership in the subsidiary to be disposed off</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xlink:to="lab_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" xml:lang="en-US">Percentage of ownership interest in the subsidiary to be disposed off.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInOtherOperatingResults" xlink:label="loc_ypf_IncreaseInOtherOperatingResults" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseInOtherOperatingResults" xml:lang="en-US">Increase in other operating results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseInOtherOperatingResults" xlink:to="lab_ypf_IncreaseInOtherOperatingResults" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseInOtherOperatingResults" xml:lang="en-US">Increase in other operating results.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorkingInterestInUnconventionalExploitationConcessions" xlink:label="loc_ypf_WorkingInterestInUnconventionalExploitationConcessions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_WorkingInterestInUnconventionalExploitationConcessions" xml:lang="en-US">Working interest in unconventional exploitation concessions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_WorkingInterestInUnconventionalExploitationConcessions" xlink:to="lab_ypf_WorkingInterestInUnconventionalExploitationConcessions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_WorkingInterestInUnconventionalExploitationConcessions" xml:lang="en-US">Working interest in unconventional exploitation concessions.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:label="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PercentageOfVotingEquityInterestsAcquired" xml:lang="en-US">Percentage of voting equity interests acquired</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_PercentageOfVotingEquityInterestsAcquired" xml:lang="en-US">Proportion of maximum shares acquired by related party</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PercentageOfVotingEquityInterestsAcquired" xlink:to="lab_ifrs-full_PercentageOfVotingEquityInterestsAcquired" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" xlink:label="loc_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" xml:lang="en-US">Proportion of ownership interest in subsidiary prior to afore mentioned</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" xlink:to="lab_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" xml:lang="en-US">Proportion of ownership interest in subsidiary prior to afore mentioned</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashTransferred" xlink:label="loc_ifrs-full_CashTransferred" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashTransferred" xml:lang="en-US">Cash transferred</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashTransferred" xlink:to="lab_ifrs-full_CashTransferred" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" xlink:label="loc_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" xml:lang="en-US">Business combination consideration transferred by compensation with credits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" xlink:to="lab_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" xml:lang="en-US">Business combination consideration transferred by compensation with credits.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisposalOfSubsidiariesSalePrice" xlink:label="loc_ypf_DisposalOfSubsidiariesSalePrice" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisposalOfSubsidiariesSalePrice" xml:lang="en-US">Disposal of subsidiaries sale price</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisposalOfSubsidiariesSalePrice" xlink:to="lab_ypf_DisposalOfSubsidiariesSalePrice" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisposalOfSubsidiariesSalePrice" xml:lang="en-US">Disposal of subsidiaries sale price.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfOwnershipInterestDisposed" xlink:label="loc_ypf_PercentageOfOwnershipInterestDisposed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfOwnershipInterestDisposed" xml:lang="en-US">Percentage of ownership interest disposed</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfOwnershipInterestDisposed" xlink:to="lab_ypf_PercentageOfOwnershipInterestDisposed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfOwnershipInterestDisposed" xml:lang="en-US">Percentage of ownership interest disposed.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" xlink:label="loc_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" xml:lang="en-US">Receivable from disposal of subsidiaries pending payment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" xlink:to="lab_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" xml:lang="en-US">Receivable from disposal of subsidiaries pending payment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" xlink:label="loc_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" xml:lang="en-US">Business combinations consideration transferred by offsetting payment obligations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" xlink:to="lab_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" xml:lang="en-US">Business combinations consideration transferred by offsetting payment obligations.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsAxis" xlink:label="loc_ifrs-full_JointOperationsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointOperationsAxis" xml:lang="en-US">Joint operations [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointOperationsAxis" xml:lang="en-US">Joint operations [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointOperationsAxis" xlink:to="lab_ifrs-full_JointOperationsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsDomain" xlink:label="loc_ifrs-full_JointOperationsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointOperationsDomain" xml:lang="en-US">Joint operations [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointOperationsDomain" xml:lang="en-US">Joint operations [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointOperationsDomain" xlink:to="lab_ifrs-full_JointOperationsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SignificantInvestmentsInAssociatesAxis" xml:lang="en-US">Associates [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SignificantInvestmentsInAssociatesAxis" xml:lang="en-US">Associates [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesAxis" xlink:to="lab_ifrs-full_SignificantInvestmentsInAssociatesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:label="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SignificantInvestmentsInAssociatesDomain" xml:lang="en-US">Associates [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SignificantInvestmentsInAssociatesDomain" xml:lang="en-US">Associates [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SignificantInvestmentsInAssociatesDomain" xlink:to="lab_ifrs-full_SignificantInvestmentsInAssociatesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataMember" xlink:label="loc_ypf_SierraChataMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SierraChataMember" xml:lang="en-US">Sierra Chata [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SierraChataMember" xlink:to="lab_ypf_SierraChataMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xml:lang="en-US">Assets and liabilities classified as held for sale [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" xlink:to="lab_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xml:lang="en-US">Assets and liabilities not classified as held for sale [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" xlink:to="lab_ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesAxis" xlink:label="loc_ifrs-full_CounterpartiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CounterpartiesAxis" xml:lang="en-US">Counterparties [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CounterpartiesAxis" xml:lang="en-US">Counterparties [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CounterpartiesAxis" xlink:to="lab_ifrs-full_CounterpartiesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CounterpartiesDomain" xlink:label="loc_ifrs-full_CounterpartiesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CounterpartiesDomain" xml:lang="en-US">Counterparties [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CounterpartiesDomain" xml:lang="en-US">Counterparties [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CounterpartiesDomain" xlink:to="lab_ifrs-full_CounterpartiesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermAxis" xlink:label="loc_ypf_TypeOfTermAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TypeOfTermAxis" xml:lang="en-US">Type of Term [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TypeOfTermAxis" xml:lang="en-US">Type of Term [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TypeOfTermAxis" xlink:to="lab_ypf_TypeOfTermAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TypeOfTermAxis" xml:lang="en-US">Type of Term</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TypeOfTermMember" xlink:label="loc_ypf_TypeOfTermMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TypeOfTermMember" xml:lang="en-US">Type of Term [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TypeOfTermMember" xml:lang="en-US">Type of Term [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TypeOfTermMember" xlink:to="lab_ypf_TypeOfTermMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TypeOfTermMember" xml:lang="en-US">Type of Term</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProfertilMember" xlink:label="loc_ypf_ProfertilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProfertilMember" xml:lang="en-US">Profertil [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProfertilMember" xml:lang="en-US">Profertil [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProfertilMember" xlink:to="lab_ypf_ProfertilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProfertilMember" xml:lang="en-US">Profertil.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" xml:lang="en-US">Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" xlink:to="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" xml:lang="en-US">Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" xlink:to="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationAxis" xlink:label="loc_ypf_BusinessCombinationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BusinessCombinationAxis" xml:lang="en-US">Business Combinations [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BusinessCombinationAxis" xlink:to="lab_ypf_BusinessCombinationAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BusinessCombinationDomain" xlink:label="loc_ypf_BusinessCombinationDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BusinessCombinationDomain" xml:lang="en-US">Business Combinations [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BusinessCombinationDomain" xlink:to="lab_ypf_BusinessCombinationDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" xlink:label="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" xml:lang="en-US">Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" xlink:to="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" xml:lang="en-US">Disclosure of fair values of the identifiable&#160;assets acquired and&#160;the&#160;liabilities assumed.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Identifiable intangible assets recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xml:lang="en-US">Property, plant and equipment recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xml:lang="en-US">Property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Other receivables recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Other receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xlink:to="lab_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Other receivables recognised as of acquisition date.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Trade receivables recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Trade receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xlink:to="lab_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Trade receivables recognised as of acquisition date.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Cash and cash equivalents recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Cash and cash equivalents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionsRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_ProvisionsRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Provisions recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ProvisionsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionsRecognisedAsOfAcquisitionDate" xlink:to="lab_ypf_ProvisionsRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Provisions recognised as of acquisition date.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Deferred tax liabilities recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Deferred income tax liabilities, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Trade and other payables recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Accounts payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:label="loc_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xml:lang="en-US">Identifiable assets acquired (liabilities assumed)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" xlink:to="lab_ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Financial assets recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Investments in financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xml:lang="en-US">Income tax liability recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xml:lang="en-US">Income tax liability</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xlink:to="lab_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" xml:lang="en-US">Income tax liability recognised as of acquisition date.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xlink:label="loc_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Other liabilities recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Other liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xlink:to="lab_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" xml:lang="en-US">Other liabilities recognized as of acquisition date.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_InventoryRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xml:lang="en-US">Inventory recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xml:lang="en-US">Inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InventoryRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_InventoryRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:label="loc_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Borrowings recognised as of acquisition date</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xml:lang="en-US">Loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" xlink:to="lab_ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementAxis" xlink:label="loc_ifrs-full_MeasurementAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MeasurementAxis" xml:lang="en-US">Measurement [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MeasurementAxis" xml:lang="en-US">Measurement [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MeasurementAxis" xlink:to="lab_ifrs-full_MeasurementAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MeasurementDomain" xlink:label="loc_ifrs-full_MeasurementDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MeasurementDomain" xml:lang="en-US">Measurement [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MeasurementDomain" xml:lang="en-US">Measurement [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MeasurementDomain" xlink:to="lab_ifrs-full_MeasurementDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AtFairValueMember" xlink:label="loc_ifrs-full_AtFairValueMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AtFairValueMember" xml:lang="en-US">At fair value [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AtFairValueMember" xlink:to="lab_ifrs-full_AtFairValueMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xml:lang="en-US">Disclosure of nature and extent of risks arising from financial instruments [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" xlink:to="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xml:lang="en-US">Disclosure of nature and extent of risks arising from financial instruments [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xml:lang="en-US">Disclosure of nature and extent of risks arising from financial instruments [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" xlink:to="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CurrencyAxis" xlink:label="loc_srt_CurrencyAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_CurrencyAxis" xml:lang="en-US">Currency [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_CurrencyAxis" xml:lang="en-US">Currency [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_CurrencyAxis" xlink:to="lab_srt_CurrencyAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_AllCurrenciesDomain" xlink:label="loc_currency_AllCurrenciesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_currency_AllCurrenciesDomain" xml:lang="en-US">All Currencies [Domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_currency_AllCurrenciesDomain" xml:lang="en-US">All Currencies [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_currency_AllCurrenciesDomain" xlink:to="lab_currency_AllCurrenciesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_USD" xlink:label="loc_currency_USD" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_currency_USD" xml:lang="en-US">United States of America, Dollars</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_currency_USD" xml:lang="en-US">Peso against U.S. dollar [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_currency_USD" xlink:to="lab_currency_USD" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xml:lang="en-US">Disclosure of nature and extent of risks arising from financial instruments [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xml:lang="en-US">Disclosure of nature and extent of risks arising from financial instruments [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" xlink:to="lab_ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xlink:label="loc_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xml:lang="en-US">Percentage of appreciation or depreciation on exchange rate of foreign currency</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xml:lang="en-US">Appreciation (+) / depreciation (-) of exchange rate of peso against dollar</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xlink:to="lab_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" xml:lang="en-US">Percentage of appreciation or depreciation exchange rate of peso against us dollar.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" xml:lang="en-US">Foreign exchange gain (loss)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" xml:lang="en-US">Profit or loss before income tax for fiscal year ended December 31, 2025</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" xlink:to="lab_ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskAxis" xlink:label="loc_ypf_ForeignCurrencyRiskAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ForeignCurrencyRiskAxis" xml:lang="en-US">Foreign Currency Risk [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ForeignCurrencyRiskAxis" xml:lang="en-US">Exchange Rate Risk [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ForeignCurrencyRiskAxis" xlink:to="lab_ypf_ForeignCurrencyRiskAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ForeignCurrencyRiskAxis" xml:lang="en-US">Foreign currency risk.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignCurrencyRiskDomain" xlink:label="loc_ypf_ForeignCurrencyRiskDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ForeignCurrencyRiskDomain" xml:lang="en-US">Foreign Currency Risk [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ForeignCurrencyRiskDomain" xml:lang="en-US">Foreign Currency Risk [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ForeignCurrencyRiskDomain" xlink:to="lab_ypf_ForeignCurrencyRiskDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ForeignCurrencyRiskDomain" xml:lang="en-US">Foreign currency risk domain.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:label="loc_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xml:lang="en-US">Positive variation impact on net income corresponding to financial assets and liabilities [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xml:lang="en-US">Positive variation impact on net income corresponding to financial assets and liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:to="lab_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xml:lang="en-US">Positive variation impact on net income corresponding to financial assets and liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:label="loc_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xml:lang="en-US">Negative variation impact on net income corresponding to financial assets and liabilities [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xml:lang="en-US">Negative variation impact on net income corresponding to financial assets and liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xlink:to="lab_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" xml:lang="en-US">Negative variation impact on net income corresponding to financial assets and liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksAxis" xlink:label="loc_ifrs-full_TypesOfRisksAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfRisksAxis" xml:lang="en-US">Types of risks [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfRisksAxis" xml:lang="en-US">Types of risks [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfRisksAxis" xlink:to="lab_ifrs-full_TypesOfRisksAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRisksDomain" xlink:label="loc_ifrs-full_TypesOfRisksDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfRisksDomain" xml:lang="en-US">Types of risks [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfRisksDomain" xml:lang="en-US">Types of risks [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfRisksDomain" xlink:to="lab_ifrs-full_TypesOfRisksDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrencyRiskMember" xlink:label="loc_ifrs-full_CurrencyRiskMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrencyRiskMember" xml:lang="en-US">Currency risk [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrencyRiskMember" xml:lang="en-US">Exchange Rate Risk [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrencyRiskMember" xlink:to="lab_ifrs-full_CurrencyRiskMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract" xml:lang="en-US">Disclosure of financial instruments by type of interest rate [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" xml:lang="en-US">Disclosure of financial instruments by type of interest rate [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" xml:lang="en-US">Disclosure of financial instruments by type of interest rate [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" xml:lang="en-US">Disclosure of financial instruments by type of interest rate [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" xml:lang="en-US">Disclosure of financial instruments by type of interest rate [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssets" xlink:label="loc_ifrs-full_FinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialAssets" xml:lang="en-US">Financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinancialAssets" xml:lang="en-US">Financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_FinancialAssets" xml:lang="en-US">Subtotal Financial Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialAssets" xlink:to="lab_ifrs-full_FinancialAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilities" xlink:label="loc_ifrs-full_FinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialLiabilities" xml:lang="en-US">Financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinancialLiabilities" xml:lang="en-US">Financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_FinancialLiabilities" xml:lang="en-US">Financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_FinancialLiabilities" xml:lang="en-US">Subtotal financial liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialLiabilities" xlink:to="lab_ifrs-full_FinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesAxis" xlink:label="loc_ifrs-full_TypesOfInterestRatesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfInterestRatesAxis" xml:lang="en-US">Types of interest rates [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfInterestRatesAxis" xml:lang="en-US">Types of interest rates [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfInterestRatesAxis" xlink:to="lab_ifrs-full_TypesOfInterestRatesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfInterestRatesDomain" xlink:label="loc_ifrs-full_TypesOfInterestRatesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfInterestRatesDomain" xml:lang="en-US">Types of interest rates [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfInterestRatesDomain" xml:lang="en-US">Types of interest rates [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfInterestRatesDomain" xlink:to="lab_ifrs-full_TypesOfInterestRatesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FixedInterestRateMember" xlink:label="loc_ifrs-full_FixedInterestRateMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FixedInterestRateMember" xml:lang="en-US">Fixed interest rate [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FixedInterestRateMember" xml:lang="en-US">Fixed interest rate [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FixedInterestRateMember" xlink:to="lab_ifrs-full_FixedInterestRateMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FloatingInterestRateMember" xlink:label="loc_ifrs-full_FloatingInterestRateMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FloatingInterestRateMember" xml:lang="en-US">Floating interest rate [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FloatingInterestRateMember" xml:lang="en-US">Variable interest rate [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FloatingInterestRateMember" xlink:to="lab_ifrs-full_FloatingInterestRateMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRateRiskMember" xlink:label="loc_ifrs-full_InterestRateRiskMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestRateRiskMember" xml:lang="en-US">Interest rate risk [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InterestRateRiskMember" xml:lang="en-US">Interest rate risk [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestRateRiskMember" xlink:to="lab_ifrs-full_InterestRateRiskMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:label="loc_ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xml:lang="en-US">Borrowings, adjustment to interest rate basis</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xml:lang="en-US">Variable interest rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingsAdjustmentToInterestRateBasis" xlink:to="lab_ifrs-full_BorrowingsAdjustmentToInterestRateBasis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountAvailableForLiquidity" xlink:label="loc_ypf_AmountAvailableForLiquidity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountAvailableForLiquidity" xml:lang="en-US">Amount available for liquidity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AmountAvailableForLiquidity" xml:lang="en-US">Amount available for liquidity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountAvailableForLiquidity" xlink:to="lab_ypf_AmountAvailableForLiquidity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountAvailableForLiquidity" xml:lang="en-US">Amount available for liquidity.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Cash" xlink:label="loc_ifrs-full_Cash" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Cash" xml:lang="en-US">Cash</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Cash" xml:lang="en-US">Cash</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Cash" xlink:to="lab_ifrs-full_Cash" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCashAndCashEquivalents" xlink:label="loc_ifrs-full_OtherCashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherCashAndCashEquivalents" xml:lang="en-US">Other cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherCashAndCashEquivalents" xml:lang="en-US">Other liquid financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherCashAndCashEquivalents" xlink:to="lab_ifrs-full_OtherCashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MaximumExposureToCreditRisk" xlink:label="loc_ifrs-full_MaximumExposureToCreditRisk" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MaximumExposureToCreditRisk" xml:lang="en-US">Maximum exposure to credit risk</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_MaximumExposureToCreditRisk" xml:lang="en-US">Credit and investments with the National Government, direct agencies and companies with government participation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MaximumExposureToCreditRisk" xml:lang="en-US">Maximum exposure to credit risk</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MaximumExposureToCreditRisk" xlink:to="lab_ifrs-full_MaximumExposureToCreditRisk" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivables" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivables" xml:lang="en-US">Provision for Doubtful Trade Receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivables" xml:lang="en-US">Provision for doubtful trade receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForDoubtfulTradeReceivables" xlink:to="lab_ypf_ProvisionForDoubtfulTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivables" xml:lang="en-US">Provision for doubtful trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOtherDoubtfulReceivables" xlink:label="loc_ypf_ProvisionForOtherDoubtfulReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForOtherDoubtfulReceivables" xml:lang="en-US">Provision for other doubtful receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForOtherDoubtfulReceivables" xml:lang="en-US">Provision for other doubtful receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForOtherDoubtfulReceivables" xlink:to="lab_ypf_ProvisionForOtherDoubtfulReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForOtherDoubtfulReceivables" xml:lang="en-US">Provision for other doubtful receivables</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteesGrantedByThirdParties" xlink:label="loc_ypf_GuaranteesGrantedByThirdParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GuaranteesGrantedByThirdParties" xml:lang="en-US">Guarantees Granted by Third Parties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GuaranteesGrantedByThirdParties" xml:lang="en-US">Guarantees granted by third parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GuaranteesGrantedByThirdParties" xlink:to="lab_ypf_GuaranteesGrantedByThirdParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GuaranteesGrantedByThirdParties" xml:lang="en-US">Guarantees Granted by Third Parties</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ForeignExchangeRatePercentage" xlink:label="loc_ypf_ForeignExchangeRatePercentage" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ForeignExchangeRatePercentage" xml:lang="en-US">Foreign Exchange Rate Percentage</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ForeignExchangeRatePercentage" xml:lang="en-US">Exchange rate to convert pesos to U.S. dollars variation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ForeignExchangeRatePercentage" xlink:to="lab_ypf_ForeignExchangeRatePercentage" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ForeignExchangeRatePercentage" xml:lang="en-US">Foreign exchange rate percentage.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xlink:label="loc_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xml:lang="en-US">Percentage of Variable Rate Financial Loans to Total Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xml:lang="en-US">Percentage of variable rate financial loans to total liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xlink:to="lab_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" xml:lang="en-US">Percentage of variable rate financial loans to total liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherInvestmentsFreelyAvailable" xlink:label="loc_ypf_OtherInvestmentsFreelyAvailable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherInvestmentsFreelyAvailable" xml:lang="en-US">Other investments freely available</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherInvestmentsFreelyAvailable" xlink:to="lab_ypf_OtherInvestmentsFreelyAvailable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherInvestmentsFreelyAvailable" xml:lang="en-US">Other investments freely available.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" xlink:label="loc_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" xml:lang="en-US">Percentage of credit and investments with the National Government, direct agencies and companies with government participation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" xlink:to="lab_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" xml:lang="en-US">percentage of credit and investments with the National Government, direct agencies and companies with government participation</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorkingCapital" xlink:label="loc_ypf_WorkingCapital" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_WorkingCapital" xml:lang="en-US">WorkingCapital</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_WorkingCapital" xml:lang="en-US">Working capital</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_WorkingCapital" xlink:to="lab_ypf_WorkingCapital" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_WorkingCapital" xml:lang="en-US">Working capital.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesAxis" xlink:label="loc_ifrs-full_InternalCreditGradesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InternalCreditGradesAxis" xml:lang="en-US">Internal credit grades [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InternalCreditGradesAxis" xml:lang="en-US">Internal credit grades [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InternalCreditGradesAxis" xlink:to="lab_ifrs-full_InternalCreditGradesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InternalCreditGradesDomain" xlink:label="loc_ifrs-full_InternalCreditGradesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InternalCreditGradesDomain" xml:lang="en-US">Internal credit grades [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InternalCreditGradesDomain" xml:lang="en-US">Internal credit grades [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InternalCreditGradesDomain" xlink:to="lab_ifrs-full_InternalCreditGradesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xlink:label="loc_ypf_NationalGovernmentAndDirectAgenciesAccountsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xml:lang="en-US">National Government And Direct Agencies Accounts [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xml:lang="en-US">Credit risk other financial assets national government and direct agencies accounts [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xlink:to="lab_ypf_NationalGovernmentAndDirectAgenciesAccountsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NationalGovernmentAndDirectAgenciesAccountsMember" xml:lang="en-US">Credit risk other financial assets national government and direct agencies accounts.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SofrMember" xlink:label="loc_ypf_SofrMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SofrMember" xml:lang="en-US">SOFR [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SofrMember" xlink:to="lab_ypf_SofrMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SofrMember" xml:lang="en-US">SOFR</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LiquidityRiskMember" xlink:label="loc_ifrs-full_LiquidityRiskMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LiquidityRiskMember" xml:lang="en-US">Liquidity risk [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LiquidityRiskMember" xml:lang="en-US">Liquidity risk [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LiquidityRiskMember" xlink:to="lab_ifrs-full_LiquidityRiskMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xlink:label="loc_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xml:lang="en-US">Percentage Of Increase Or Decrease In Interest Rates Basis Points</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xml:lang="en-US">Increase (+) / decrease (-) in the interest rates (basis points)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xlink:to="lab_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" xml:lang="en-US">Percentage of increase or decrease in interest rates basis points.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xlink:label="loc_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xml:lang="en-US">Income Loss On Change In Value Of Interest Rate Basis Spreads Net Of Tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xml:lang="en-US">Profit or loss for the fiscal year December 31, 2025</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xlink:to="lab_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" xml:lang="en-US">Income loss on change in value of interest rate basis spreads net of tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnNetIncomeMember" xlink:label="loc_ypf_PositiveVariationImpactOnNetIncomeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PositiveVariationImpactOnNetIncomeMember" xml:lang="en-US">Positive Variation Impact on Net Income [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PositiveVariationImpactOnNetIncomeMember" xml:lang="en-US">Positive variation impact on net income [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PositiveVariationImpactOnNetIncomeMember" xlink:to="lab_ypf_PositiveVariationImpactOnNetIncomeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PositiveVariationImpactOnNetIncomeMember" xml:lang="en-US">Positive variation impact on net income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnNetIncomeMember" xlink:label="loc_ypf_NegativeVariationImpactOnNetIncomeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegativeVariationImpactOnNetIncomeMember" xml:lang="en-US">Negative Variation Impact on Net Income [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NegativeVariationImpactOnNetIncomeMember" xml:lang="en-US">Negative variation impact on net income [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegativeVariationImpactOnNetIncomeMember" xlink:to="lab_ypf_NegativeVariationImpactOnNetIncomeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegativeVariationImpactOnNetIncomeMember" xml:lang="en-US">Negative variation impact on net income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xlink:label="loc_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xml:lang="en-US">Percentage of increase (decrease) in prices of investments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xml:lang="en-US">Increase (+) / decrease (-) in the prices of investments in financial instruments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xlink:to="lab_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" xml:lang="en-US">Percentage of increase (decrease) in prices of investments</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Effect of change in prices of investment on gains (losses) on financial assets at fair value through profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Profit or loss before income tax for fiscal year ended December 31, 2025</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:to="lab_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Effect of change in prices of investment on gains (losses) on financial assets at fair value through profit or loss.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:label="loc_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xml:lang="en-US">Positive Variation Impact on Profit or Loss Before Income Tax [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xml:lang="en-US">Positive variation impact on profit or loss before income tax [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:to="lab_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xml:lang="en-US">Positive variation impact on profit or loss before income tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:label="loc_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xml:lang="en-US">Negative Variation Impact on Profit or Loss Before Income Tax [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xml:lang="en-US">Negative variation impact on profit or loss before income tax [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xlink:to="lab_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" xml:lang="en-US">Negative variation impact on profit or loss before income tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PriceRiskMember" xlink:label="loc_ypf_PriceRiskMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PriceRiskMember" xml:lang="en-US">Price Risk [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PriceRiskMember" xml:lang="en-US">Price Risk [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PriceRiskMember" xlink:to="lab_ypf_PriceRiskMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PriceRiskMember" xml:lang="en-US">Price Risk [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract" xml:lang="en-US">Disclosure of maturity analysis for non-derivative financial liabilities [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract" xlink:to="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" xml:lang="en-US">Disclosure of maturity analysis for non-derivative financial liabilities [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" xml:lang="en-US">Disclosure of maturity analysis for non-derivative financial liabilities [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" xlink:to="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" xml:lang="en-US">Disclosure of maturity analysis for non-derivative financial liabilities [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" xml:lang="en-US">Disclosure of maturity analysis for non-derivative financial liabilities [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" xlink:to="lab_ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LoansReceived" xlink:label="loc_ifrs-full_LoansReceived" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LoansReceived" xml:lang="en-US">Loans received</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LoansReceived" xml:lang="en-US">Loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LoansReceived" xlink:to="lab_ifrs-full_LoansReceived" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinancialLiabilities" xlink:label="loc_ifrs-full_OtherFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherFinancialLiabilities" xml:lang="en-US">Other financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherFinancialLiabilities" xml:lang="en-US">Other liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherFinancialLiabilities" xlink:to="lab_ifrs-full_OtherFinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherPayables" xlink:label="loc_ifrs-full_TradeAndOtherPayables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeAndOtherPayables" xml:lang="en-US">Trade and other payables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TradeAndOtherPayables" xml:lang="en-US">Accounts payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeAndOtherPayables" xlink:to="lab_ifrs-full_TradeAndOtherPayables" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossLeaseLiabilities" xlink:label="loc_ifrs-full_GrossLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GrossLeaseLiabilities" xml:lang="en-US">Gross lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GrossLeaseLiabilities" xml:lang="en-US">Lease liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GrossLeaseLiabilities" xlink:to="lab_ifrs-full_GrossLeaseLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanOneYearMember" xlink:label="loc_ifrs-full_NotLaterThanOneYearMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NotLaterThanOneYearMember" xml:lang="en-US">Not later than one year [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NotLaterThanOneYearMember" xml:lang="en-US">0 - 1 year [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NotLaterThanOneYearMember" xml:lang="en-US">0 to 1 year [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NotLaterThanOneYearMember" xlink:to="lab_ifrs-full_NotLaterThanOneYearMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:label="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xml:lang="en-US">Later than one year and not later than two years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xml:lang="en-US">1 - 2 years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xml:lang="en-US">1 to 2 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" xlink:to="lab_ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:label="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xml:lang="en-US">Later than two years and not later than three years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xml:lang="en-US">2 - 3 years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xml:lang="en-US">2 to 3 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" xlink:to="lab_ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:label="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xml:lang="en-US">Later than three years and not later than four years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xml:lang="en-US">3 - 4 years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xml:lang="en-US">3 to 4 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" xlink:to="lab_ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xml:lang="en-US">Later than four years and not later than five years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xml:lang="en-US">4 - 5 years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xml:lang="en-US">4 to 5 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" xlink:to="lab_ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanFiveYearsMember" xlink:label="loc_ifrs-full_LaterThanFiveYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LaterThanFiveYearsMember" xml:lang="en-US">Later than five years [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LaterThanFiveYearsMember" xml:lang="en-US">More than 5 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LaterThanFiveYearsMember" xlink:to="lab_ifrs-full_LaterThanFiveYearsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureAbstract" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExposureAbstract" xml:lang="en-US">Disclosure of credit risk exposure [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureAbstract" xlink:to="lab_ifrs-full_DisclosureOfCreditRiskExposureAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureTable" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExposureTable" xml:lang="en-US">Disclosure of credit risk exposure [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExposureTable" xml:lang="en-US">Disclosure of credit risk exposure [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureTable" xlink:to="lab_ifrs-full_DisclosureOfCreditRiskExposureTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfFinancialInstrumentsAxis" xml:lang="en-US">Classes of financial instruments [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfFinancialInstrumentsAxis" xml:lang="en-US">Classes of financial instruments [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsAxis" xlink:to="lab_ifrs-full_ClassesOfFinancialInstrumentsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfFinancialInstrumentsDomain" xml:lang="en-US">Classes of financial instruments [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfFinancialInstrumentsDomain" xml:lang="en-US">Classes of financial instruments [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfFinancialInstrumentsDomain" xlink:to="lab_ifrs-full_ClassesOfFinancialInstrumentsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentMember" xlink:label="loc_ypf_CashAndCashEquivalentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CashAndCashEquivalentMember" xml:lang="en-US">Cash and Cash Equivalent [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CashAndCashEquivalentMember" xml:lang="en-US">Cash and cash equivalents [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CashAndCashEquivalentMember" xlink:to="lab_ypf_CashAndCashEquivalentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CashAndCashEquivalentMember" xml:lang="en-US">Cash and cash equivalent.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialAssetMember" xlink:label="loc_ypf_OtherFinancialAssetMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherFinancialAssetMember" xml:lang="en-US">Other financial asset [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherFinancialAssetMember" xml:lang="en-US">Other financial assets [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherFinancialAssetMember" xlink:to="lab_ypf_OtherFinancialAssetMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherFinancialAssetMember" xml:lang="en-US">Other financial asset.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentInFinancialAssetsMember" xlink:label="loc_ypf_InvestmentInFinancialAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestmentInFinancialAssetsMember" xml:lang="en-US">Investment in financial assets [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InvestmentInFinancialAssetsMember" xml:lang="en-US">Investments in financial assets [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestmentInFinancialAssetsMember" xlink:to="lab_ypf_InvestmentInFinancialAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestmentInFinancialAssetsMember" xml:lang="en-US">Investment in financial assets</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfCreditRiskExposureLineItems" xlink:label="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExposureLineItems" xml:lang="en-US">Disclosure of credit risk exposure [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfCreditRiskExposureLineItems" xml:lang="en-US">Disclosure of credit risk exposure [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfCreditRiskExposureLineItems" xlink:to="lab_ifrs-full_DisclosureOfCreditRiskExposureLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract" xml:lang="en-US">Disclosure of financial assets that are either past due or impaired [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract" xlink:to="lab_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" xml:lang="en-US">Disclosure of financial assets that are either past due or impaired [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" xml:lang="en-US">Disclosure of financial assets that are either past due or impaired [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" xlink:to="lab_ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfFinancialAssetsAxis" xml:lang="en-US">Classes of financial assets [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfFinancialAssetsAxis" xml:lang="en-US">Classes of financial assets [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsAxis" xlink:to="lab_ifrs-full_ClassesOfFinancialAssetsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfFinancialAssetsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfFinancialAssetsDomain" xml:lang="en-US">Classes of financial assets [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfFinancialAssetsDomain" xml:lang="en-US">Classes of financial assets [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfFinancialAssetsDomain" xlink:to="lab_ifrs-full_ClassesOfFinancialAssetsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentTradeReceivableMember" xlink:label="loc_ypf_CurrentTradeReceivableMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentTradeReceivableMember" xml:lang="en-US">Current Trade Receivable [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CurrentTradeReceivableMember" xml:lang="en-US">Current Trade Receivable [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentTradeReceivableMember" xlink:to="lab_ypf_CurrentTradeReceivableMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentTradeReceivableMember" xml:lang="en-US">Current trade receivable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentReceivablesMember" xlink:label="loc_ypf_OtherCurrentReceivablesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherCurrentReceivablesMember" xml:lang="en-US">Other Current Receivables [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherCurrentReceivablesMember" xml:lang="en-US">Other Current Receivables [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherCurrentReceivablesMember" xlink:to="lab_ypf_OtherCurrentReceivablesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherCurrentReceivablesMember" xml:lang="en-US">Other current receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsLineItems" xml:lang="en-US">Disclosure of financial assets [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsLineItems" xlink:to="lab_ifrs-full_DisclosureOfFinancialAssetsLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusAxis" xlink:label="loc_ifrs-full_PastDueStatusAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PastDueStatusAxis" xml:lang="en-US">Past due status [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_PastDueStatusAxis" xml:lang="en-US">Past due status [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PastDueStatusAxis" xlink:to="lab_ifrs-full_PastDueStatusAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PastDueStatusDomain" xlink:label="loc_ifrs-full_PastDueStatusDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PastDueStatusDomain" xml:lang="en-US">Past due status [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_PastDueStatusDomain" xml:lang="en-US">Past due status [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PastDueStatusDomain" xlink:to="lab_ifrs-full_PastDueStatusDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotLaterThanThreeMonthsMember" xlink:label="loc_ifrs-full_NotLaterThanThreeMonthsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NotLaterThanThreeMonthsMember" xml:lang="en-US">Not later than three months [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NotLaterThanThreeMonthsMember" xml:lang="en-US">Less than three months past due [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NotLaterThanThreeMonthsMember" xlink:to="lab_ifrs-full_NotLaterThanThreeMonthsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BetweenThreeAndSixMonthsMember" xlink:label="loc_ypf_BetweenThreeAndSixMonthsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BetweenThreeAndSixMonthsMember" xml:lang="en-US">Between Three and Six Months [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BetweenThreeAndSixMonthsMember" xml:lang="en-US">Between three and six months past due [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BetweenThreeAndSixMonthsMember" xlink:to="lab_ypf_BetweenThreeAndSixMonthsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BetweenThreeAndSixMonthsMember" xml:lang="en-US">Between three and six months past due.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LaterThanSixMonthsMember" xlink:label="loc_ifrs-full_LaterThanSixMonthsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LaterThanSixMonthsMember" xml:lang="en-US">Later than six months [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LaterThanSixMonthsMember" xml:lang="en-US">More than six months past due [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LaterThanSixMonthsMember" xlink:to="lab_ifrs-full_LaterThanSixMonthsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsAbstract" xml:lang="en-US">Disclosure of operating segments [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsAbstract" xlink:to="lab_ifrs-full_DisclosureOfOperatingSegmentsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsTable" xml:lang="en-US">Disclosure of operating segments [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsTable" xml:lang="en-US">Disclosure of operating segments [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsTable" xlink:to="lab_ifrs-full_DisclosureOfOperatingSegmentsTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsLineItems" xml:lang="en-US">Disclosure of operating segments [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfOperatingSegmentsLineItems" xml:lang="en-US">Disclosure of operating segments [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOperatingSegmentsLineItems" xlink:to="lab_ifrs-full_DisclosureOfOperatingSegmentsLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfOilAndGasProducts" xlink:label="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueFromSaleOfOilAndGasProducts" xml:lang="en-US">Revenue from sale of oil and gas products</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RevenueFromSaleOfOilAndGasProducts" xml:lang="en-US">Revenues</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueFromSaleOfOilAndGasProducts" xlink:to="lab_ifrs-full_RevenueFromSaleOfOilAndGasProducts" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xml:lang="en-US">Revenue from sale of goods, related party transactions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xml:lang="en-US">Revenues from intersegment sales</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" xlink:to="lab_ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_DepreciationPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DepreciationPropertyPlantAndEquipment" xml:lang="en-US">Depreciation, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DepreciationPropertyPlantAndEquipment" xml:lang="en-US">Depreciation of property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DepreciationPropertyPlantAndEquipment" xml:lang="en-US">Depreciation of property plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_DepreciationPropertyPlantAndEquipment" xml:lang="en-US">Depreciation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DepreciationPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_DepreciationPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:label="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xml:lang="en-US">Impairment loss recognised in profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xml:lang="en-US">Impairment of property, plant and equipment and inventories write-down</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" xlink:to="lab_ifrs-full_ImpairmentLossRecognisedInProfitOrLoss" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Acquisitions through business combinations, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Acquisitions of property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Increases from business combinations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:label="loc_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xml:lang="en-US">Amortisation, intangible assets other than goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xml:lang="en-US">Amortization of intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" xlink:to="lab_ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Increasedecreasethroughbusinesscombinations" xlink:label="loc_ypf_Increasedecreasethroughbusinesscombinations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Increasedecreasethroughbusinesscombinations" xml:lang="en-US">IncreaseDecreaseThroughBusinessCombinations</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_Increasedecreasethroughbusinesscombinations" xml:lang="en-US">Increases from business combinations&#160;</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Increasedecreasethroughbusinesscombinations" xlink:to="lab_ypf_Increasedecreasethroughbusinesscombinations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Increasedecreasethroughbusinesscombinations" xml:lang="en-US">Increase decrease through business combinations.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsAxis" xlink:label="loc_ifrs-full_SegmentConsolidationItemsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SegmentConsolidationItemsAxis" xml:lang="en-US">Segment consolidation items [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SegmentConsolidationItemsAxis" xml:lang="en-US">Segment consolidation items [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SegmentConsolidationItemsAxis" xlink:to="lab_ifrs-full_SegmentConsolidationItemsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SegmentConsolidationItemsDomain" xlink:label="loc_ifrs-full_SegmentConsolidationItemsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SegmentConsolidationItemsDomain" xml:lang="en-US">Segment consolidation items [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SegmentConsolidationItemsDomain" xml:lang="en-US">Segment consolidation items [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SegmentConsolidationItemsDomain" xlink:to="lab_ifrs-full_SegmentConsolidationItemsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OperatingSegmentsMember" xlink:label="loc_ifrs-full_OperatingSegmentsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OperatingSegmentsMember" xml:lang="en-US">Operating segments [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OperatingSegmentsMember" xml:lang="en-US">Operating segments [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OperatingSegmentsMember" xlink:to="lab_ifrs-full_OperatingSegmentsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:label="loc_ifrs-full_EliminationOfIntersegmentAmountsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EliminationOfIntersegmentAmountsMember" xml:lang="en-US">Elimination of intersegment amounts [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EliminationOfIntersegmentAmountsMember" xml:lang="en-US">Consolidation Adjustments [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EliminationOfIntersegmentAmountsMember" xlink:to="lab_ifrs-full_EliminationOfIntersegmentAmountsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnproductiveExploratoryDrillings" xlink:label="loc_ypf_UnproductiveExploratoryDrillings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnproductiveExploratoryDrillings" xml:lang="en-US">Unproductive exploratory drillings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_UnproductiveExploratoryDrillings" xml:lang="en-US">Unproductive exploratory drillings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UnproductiveExploratoryDrillings" xml:lang="en-US">Unproductive exploratory drillings</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnproductiveExploratoryDrillings" xlink:to="lab_ypf_UnproductiveExploratoryDrillings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnproductiveExploratoryDrillings" xml:lang="en-US">Unproductive exploratory drillings.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsAbstract" xml:lang="en-US">Disclosure of detailed information about financial instruments [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsAbstract" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsTable" xml:lang="en-US">Disclosure of detailed information about financial instruments [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsTable" xml:lang="en-US">Disclosure of detailed information about financial instruments [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsTable" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherReceivablesMember" xlink:label="loc_ypf_OtherReceivablesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherReceivablesMember" xml:lang="en-US">Other Receivables [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherReceivablesMember" xml:lang="en-US">Other receivables [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherReceivablesMember" xlink:to="lab_ypf_OtherReceivablesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherReceivablesMember" xml:lang="en-US">Other receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivablesMember" xlink:label="loc_ifrs-full_TradeReceivablesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeReceivablesMember" xml:lang="en-US">Trade receivables [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TradeReceivablesMember" xml:lang="en-US">Trade receivables [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeReceivablesMember" xlink:to="lab_ifrs-full_TradeReceivablesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsAndFinancialAssetsMember" xlink:label="loc_ypf_InvestmentsAndFinancialAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestmentsAndFinancialAssetsMember" xml:lang="en-US">Investments and financial assets [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_InvestmentsAndFinancialAssetsMember" xml:lang="en-US">Investments in financial assets [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestmentsAndFinancialAssetsMember" xlink:to="lab_ypf_InvestmentsAndFinancialAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestmentsAndFinancialAssetsMember" xml:lang="en-US">Investments and financial assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfLiabilitiesAxis" xml:lang="en-US">Classes of liabilities [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfLiabilitiesAxis" xml:lang="en-US">Classes of liabilities [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesAxis" xlink:to="lab_ifrs-full_ClassesOfLiabilitiesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfLiabilitiesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfLiabilitiesDomain" xml:lang="en-US">Classes of liabilities [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfLiabilitiesDomain" xml:lang="en-US">Classes of liabilities [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfLiabilitiesDomain" xlink:to="lab_ifrs-full_ClassesOfLiabilitiesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Loans1Member" xlink:label="loc_ypf_Loans1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Loans1Member" xml:lang="en-US">Loans1 [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Loans1Member" xml:lang="en-US">Loans [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Loans1Member" xlink:to="lab_ypf_Loans1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Loans1Member" xml:lang="en-US">Loans1 [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialLiabilitiesOtherMember" xlink:label="loc_ypf_FinancialLiabilitiesOtherMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialLiabilitiesOtherMember" xml:lang="en-US">Financial Liabilities Other [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinancialLiabilitiesOtherMember" xml:lang="en-US">Other Liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialLiabilitiesOtherMember" xlink:to="lab_ypf_FinancialLiabilitiesOtherMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialLiabilitiesOtherMember" xml:lang="en-US">Financial liiabilities, other.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountsPayable1Member" xlink:label="loc_ypf_AccountsPayable1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccountsPayable1Member" xml:lang="en-US">Accounts Payable 1 [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccountsPayable1Member" xml:lang="en-US">Accounts payable [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccountsPayable1Member" xlink:to="lab_ypf_AccountsPayable1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccountsPayable1Member" xml:lang="en-US">Accounts payable.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilitiesMember" xlink:label="loc_ifrs-full_LeaseLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LeaseLiabilitiesMember" xml:lang="en-US">Lease liabilities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LeaseLiabilitiesMember" xml:lang="en-US">Lease liabilities [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LeaseLiabilitiesMember" xlink:to="lab_ifrs-full_LeaseLiabilitiesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:label="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xml:lang="en-US">Disclosure of detailed information about financial instruments [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xml:lang="en-US">Disclosure of detailed information about financial instruments [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialInstrumentsLineItems" xlink:to="lab_ifrs-full_DisclosureOfFinancialInstrumentsLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialAssetsAtAmortisedCost" xml:lang="en-US">Financial assets at amortised cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinancialAssetsAtAmortisedCost" xml:lang="en-US">Financial Assets at amortized cost</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialAssetsAtAmortisedCost" xlink:to="lab_ifrs-full_FinancialAssetsAtAmortisedCost" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Financial assets at fair value through profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Financial Assets at fair value through profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Financial Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" xlink:to="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNonfinancialAssets" xlink:label="loc_ifrs-full_OtherNonfinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherNonfinancialAssets" xml:lang="en-US">Other non-financial assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherNonfinancialAssets" xml:lang="en-US">Non-financial Assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherNonfinancialAssets" xlink:to="lab_ifrs-full_OtherNonfinancialAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssets" xlink:label="loc_ypf_FinancialAndNonFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialAndNonFinancialAssets" xml:lang="en-US">Financial And Non Financial Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_FinancialAndNonFinancialAssets" xml:lang="en-US">Total</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialAndNonFinancialAssets" xlink:to="lab_ypf_FinancialAndNonFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialAndNonFinancialAssets" xml:lang="en-US">Financial and non-financial assets</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilitiesAtAmortisedCost" xlink:label="loc_ifrs-full_FinancialLiabilitiesAtAmortisedCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialLiabilitiesAtAmortisedCost" xml:lang="en-US">Financial liabilities at amortised cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinancialLiabilitiesAtAmortisedCost" xml:lang="en-US">Financial liabilities at amortized cost</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialLiabilitiesAtAmortisedCost" xlink:to="lab_ifrs-full_FinancialLiabilitiesAtAmortisedCost" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" xml:lang="en-US">Financial liabilities at fair value through profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" xml:lang="en-US">Financial liabilities at fair value through profit or loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" xlink:to="lab_ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonFinancialLiabilities" xlink:label="loc_ypf_NonFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NonFinancialLiabilities" xml:lang="en-US">Non Financial Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NonFinancialLiabilities" xml:lang="en-US">Non-financial liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NonFinancialLiabilities" xlink:to="lab_ypf_NonFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NonFinancialLiabilities" xml:lang="en-US">Non-financial liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialLiabilities" xlink:label="loc_ypf_FinancialAndNonFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialAndNonFinancialLiabilities" xml:lang="en-US">Financial And Non Financial Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_FinancialAndNonFinancialLiabilities" xml:lang="en-US">Total</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialAndNonFinancialLiabilities" xlink:to="lab_ypf_FinancialAndNonFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialAndNonFinancialLiabilities" xml:lang="en-US">Financial and Non Financial Liabilities</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract" xlink:label="loc_ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract" xml:lang="en-US">Income, expense, gains or losses of financial instruments [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract" xlink:to="lab_ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xlink:label="loc_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xml:lang="en-US">Financial And Non Financial Assets Liabilities At Amortized Cost[member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xml:lang="en-US">Financial and non-financial assets / liabilities at amortized cost [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xlink:to="lab_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" xml:lang="en-US">Financial and non-financial assets / liabilities at amortized cost.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xlink:label="loc_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xml:lang="en-US">Financial Assets Liabilities At Fair Value Through Profit Or Loss [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xml:lang="en-US">Financial assets / liabilities at fair value through profit or loss [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xlink:to="lab_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" xml:lang="en-US">Financial Assets / Liabilities at fair value through profit or loss.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetForeignExchangeGainLoss" xlink:label="loc_ypf_NetForeignExchangeGainLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetForeignExchangeGainLoss" xml:lang="en-US">Net Foreign Exchange Gain Loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetForeignExchangeGainLoss" xml:lang="en-US">Net exchange differences</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetForeignExchangeGainLoss" xlink:to="lab_ypf_NetForeignExchangeGainLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetForeignExchangeGainLoss" xml:lang="en-US">Net foreign exchange gain (loss).</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:label="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Gains (losses) on financial assets at fair value through profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Results on financial assets at fair value with changes in profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Result on financial assets at fair value through profit or loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" xlink:to="lab_ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnDerivativeFinancialInstruments" xlink:label="loc_ypf_GainLossOnDerivativeFinancialInstruments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GainLossOnDerivativeFinancialInstruments" xml:lang="en-US">Gain (Loss) On Derivative Financial Instruments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_GainLossOnDerivativeFinancialInstruments" xml:lang="en-US">Result from derivative financial instruments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GainLossOnDerivativeFinancialInstruments" xml:lang="en-US">Result from derivative financial instruments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GainLossOnDerivativeFinancialInstruments" xlink:to="lab_ypf_GainLossOnDerivativeFinancialInstruments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GainLossOnDerivativeFinancialInstruments" xml:lang="en-US">Gain (loss) on derivative financial instruments.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromNetMonetaryPosition" xlink:label="loc_ypf_ResultFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResultFromNetMonetaryPosition" xml:lang="en-US">Result from net monetary position</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ResultFromNetMonetaryPosition" xml:lang="en-US">Result from net monetary position</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResultFromNetMonetaryPosition" xlink:to="lab_ypf_ResultFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ResultFromNetMonetaryPosition" xml:lang="en-US">Result from net monetary position.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xlink:label="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xml:lang="en-US">Gain (loss) of derecognised financial assets at date of transfer</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xml:lang="en-US">Result from transactions with financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" xlink:to="lab_ifrs-full_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgrammeOtherIncome" xlink:label="loc_ypf_ExportIncreaseProgrammeOtherIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportIncreaseProgrammeOtherIncome" xml:lang="en-US">Export Increase Programme Other Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportIncreaseProgrammeOtherIncome" xml:lang="en-US">Export Increase Program</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportIncreaseProgrammeOtherIncome" xlink:to="lab_ypf_ExportIncreaseProgrammeOtherIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportIncreaseProgrammeOtherIncome" xml:lang="en-US">Export increase programme other income.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract" xlink:label="loc_ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract" xml:lang="en-US">Fair value of transferred financial assets (associated financial liabilities) that are not derecognised in their entirety [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract" xlink:to="lab_ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsAxis" xlink:label="loc_ifrs-full_ClassesOfAssetsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfAssetsAxis" xml:lang="en-US">Classes of assets [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfAssetsAxis" xml:lang="en-US">Classes of assets [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfAssetsAxis" xlink:to="lab_ifrs-full_ClassesOfAssetsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfAssetsDomain" xlink:label="loc_ifrs-full_ClassesOfAssetsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfAssetsDomain" xml:lang="en-US">Classes of assets [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfAssetsDomain" xml:lang="en-US">Classes of assets [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfAssetsDomain" xlink:to="lab_ifrs-full_ClassesOfAssetsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInFinancialAssetsMember" xlink:label="loc_ypf_InvestmentsInFinancialAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestmentsInFinancialAssetsMember" xml:lang="en-US">Investments In Financial Assets [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_InvestmentsInFinancialAssetsMember" xml:lang="en-US">Investments in financial assets [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestmentsInFinancialAssetsMember" xlink:to="lab_ypf_InvestmentsInFinancialAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestmentsInFinancialAssetsMember" xml:lang="en-US">Investments in financial assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicSecuritiesMember" xlink:label="loc_ypf_PublicSecuritiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PublicSecuritiesMember" xml:lang="en-US">Public securities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PublicSecuritiesMember" xml:lang="en-US">Public securities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PublicSecuritiesMember" xlink:to="lab_ypf_PublicSecuritiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PublicSecuritiesMember" xml:lang="en-US">Public securities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MutualFundsMember" xlink:label="loc_ypf_MutualFundsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MutualFundsMember" xml:lang="en-US">Mutual funds [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MutualFundsMember" xml:lang="en-US">Mutual funds [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MutualFundsMember" xlink:to="lab_ypf_MutualFundsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MutualFundsMember" xml:lang="en-US">Mutual funds.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PrivateSecuritiesMember" xlink:label="loc_ypf_PrivateSecuritiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PrivateSecuritiesMember" xml:lang="en-US">Private Securities [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PrivateSecuritiesMember" xml:lang="en-US">Private securities - NO and stock market promissory notes [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PrivateSecuritiesMember" xlink:to="lab_ypf_PrivateSecuritiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PrivateSecuritiesMember" xml:lang="en-US">Private securities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LevelsOfFairValueHierarchyAxis" xml:lang="en-US">Levels of fair value hierarchy [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LevelsOfFairValueHierarchyAxis" xml:lang="en-US">Levels of fair value hierarchy [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyAxis" xlink:to="lab_ifrs-full_LevelsOfFairValueHierarchyAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:label="loc_ifrs-full_LevelsOfFairValueHierarchyDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LevelsOfFairValueHierarchyDomain" xml:lang="en-US">Levels of fair value hierarchy [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LevelsOfFairValueHierarchyDomain" xml:lang="en-US">Levels of fair value hierarchy [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LevelsOfFairValueHierarchyDomain" xlink:to="lab_ifrs-full_LevelsOfFairValueHierarchyDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level1OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level1OfFairValueHierarchyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Level1OfFairValueHierarchyMember" xml:lang="en-US">Level 1 of fair value hierarchy [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Level1OfFairValueHierarchyMember" xml:lang="en-US">Level 1 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Level1OfFairValueHierarchyMember" xlink:to="lab_ifrs-full_Level1OfFairValueHierarchyMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level2OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level2OfFairValueHierarchyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Level2OfFairValueHierarchyMember" xml:lang="en-US">Level 2 of fair value hierarchy [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Level2OfFairValueHierarchyMember" xml:lang="en-US">Level 2 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Level2OfFairValueHierarchyMember" xlink:to="lab_ifrs-full_Level2OfFairValueHierarchyMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Level3OfFairValueHierarchyMember" xlink:label="loc_ifrs-full_Level3OfFairValueHierarchyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Level3OfFairValueHierarchyMember" xml:lang="en-US">Level 3 of fair value hierarchy [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_Level3OfFairValueHierarchyMember" xml:lang="en-US">Level 3 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Level3OfFairValueHierarchyMember" xlink:to="lab_ifrs-full_Level3OfFairValueHierarchyMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedFairValueOfLoansMember" xlink:label="loc_ypf_EstimatedFairValueOfLoansMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedFairValueOfLoansMember" xml:lang="en-US">Estimated Fair Value Of Loans [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedFairValueOfLoansMember" xml:lang="en-US">Estimated Fair Value of Loans [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedFairValueOfLoansMember" xlink:to="lab_ypf_EstimatedFairValueOfLoansMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedFairValueOfLoansMember" xml:lang="en-US">Estimated Fair Value Of Loans [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedFairValueOfLoans" xlink:label="loc_ypf_EstimatedFairValueOfLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedFairValueOfLoans" xml:lang="en-US">Estimated Fair Value Of Loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedFairValueOfLoans" xml:lang="en-US">Estimated fair value of loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedFairValueOfLoans" xlink:to="lab_ypf_EstimatedFairValueOfLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedFairValueOfLoans" xml:lang="en-US">Estimated fair value of loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfIntangibleAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfIntangibleAssetsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfIntangibleAssetsAbstract" xml:lang="en-US">Disclosure of detailed information about intangible assets [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfIntangibleAssetsAbstract" xml:lang="en-US">Disclosure of detailed information about intangible assets [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfIntangibleAssetsAbstract" xlink:to="lab_ifrs-full_DisclosureOfIntangibleAssetsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IntangibleAssetsAndGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IntangibleAssetsAndGoodwill" xml:lang="en-US">Intangible assets and goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IntangibleAssetsAndGoodwill" xml:lang="en-US">Net book value of intangible assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_IntangibleAssetsAndGoodwill" xml:lang="en-US">Beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_IntangibleAssetsAndGoodwill" xml:lang="en-US">Ending balance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IntangibleAssetsAndGoodwill" xlink:to="lab_ifrs-full_IntangibleAssetsAndGoodwill" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfIntangibleAssets" xlink:label="loc_ypf_ProvisionForImpairmentOfIntangibleAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForImpairmentOfIntangibleAssets" xml:lang="en-US">Provision For Impairment Of Intangible Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForImpairmentOfIntangibleAssets" xml:lang="en-US">Provision for impairment of intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForImpairmentOfIntangibleAssets" xlink:to="lab_ypf_ProvisionForImpairmentOfIntangibleAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForImpairmentOfIntangibleAssets" xml:lang="en-US">Provision for impairment of intangible assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract" xml:lang="en-US">Disclosure of reconciliation of changes in intangible assets and goodwill [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract" xlink:to="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" xml:lang="en-US">Disclosure of reconciliation of changes in intangible assets and goodwill [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" xml:lang="en-US">Disclosure of reconciliation of changes in intangible assets and goodwill [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" xlink:to="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:label="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xml:lang="en-US">Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xml:lang="en-US">Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" xlink:to="lab_ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CarryingAmountMember" xlink:label="loc_ifrs-full_CarryingAmountMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CarryingAmountMember" xml:lang="en-US">Carrying amount [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CarryingAmountMember" xml:lang="en-US">Carrying amount [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CarryingAmountMember" xlink:to="lab_ifrs-full_CarryingAmountMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GrossCarryingAmountMember" xlink:label="loc_ifrs-full_GrossCarryingAmountMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GrossCarryingAmountMember" xml:lang="en-US">Gross carrying amount [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GrossCarryingAmountMember" xml:lang="en-US">Cost [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GrossCarryingAmountMember" xlink:to="lab_ifrs-full_GrossCarryingAmountMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" xml:lang="en-US">Accumulated depreciation, amortisation and impairment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" xml:lang="en-US">Accumulated amortization [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" xlink:to="lab_ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xml:lang="en-US">Classes of intangible assets and goodwill [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xml:lang="en-US">Classes of intangible assets and goodwill [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" xlink:to="lab_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:label="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xml:lang="en-US">Classes of intangible assets and goodwill [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xml:lang="en-US">Classes of intangible assets and goodwill [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" xlink:to="lab_ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServiceConcessionRightsMember" xlink:label="loc_ifrs-full_ServiceConcessionRightsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ServiceConcessionRightsMember" xml:lang="en-US">Service concession rights [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ServiceConcessionRightsMember" xml:lang="en-US">Service concessions [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ServiceConcessionRightsMember" xlink:to="lab_ifrs-full_ServiceConcessionRightsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MiningRightsMember" xlink:label="loc_ifrs-full_MiningRightsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MiningRightsMember" xml:lang="en-US">Mining rights [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MiningRightsMember" xml:lang="en-US">Exploration rights [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MiningRightsMember" xlink:to="lab_ifrs-full_MiningRightsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherIntangibleAssetsMember" xlink:label="loc_ifrs-full_OtherIntangibleAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherIntangibleAssetsMember" xml:lang="en-US">Other intangible assets [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherIntangibleAssetsMember" xml:lang="en-US">Other intangibles [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherIntangibleAssetsMember" xlink:to="lab_ifrs-full_OtherIntangibleAssetsMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" xlink:label="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" xml:lang="en-US">Disclosure of reconciliation of changes in intangible assets and goodwill [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" xml:lang="en-US">Disclosure of reconciliation of changes in intangible assets and goodwill [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" xlink:to="lab_ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" xml:lang="en-US">Increase (decrease) through transfers and other changes, intangible assets and goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" xml:lang="en-US">Increases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xml:lang="en-US">Increase (decrease) through net exchange differences, intangible assets and goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xml:lang="en-US">Translation effect</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xml:lang="en-US">Increase decrease through inflation adjustment intangible assets and goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xml:lang="en-US">Adjustment for inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xlink:to="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" xml:lang="en-US">Increase decrease through inflation adjustment intangible assets and goodwill.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xlink:label="loc_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xml:lang="en-US">Decrease And Reclassification Into Availableforsale Financial Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xml:lang="en-US">Decreases, reclassifications and other movements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xlink:to="lab_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" xml:lang="en-US">The amount of financial assets reclassified or (decrease) into the available-for-sale category.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xml:lang="en-US">Acquisitions through business combinations, intangible assets and goodwill</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xml:lang="en-US">Increases from business combinations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" xlink:to="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xml:lang="en-US">Disclosure of detailed information about property, plant and equipment [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" xlink:to="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBookValueOfPropertyPlantAndEquipment" xlink:label="loc_ypf_NetBookValueOfPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetBookValueOfPropertyPlantAndEquipment" xml:lang="en-US">Net book value of property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetBookValueOfPropertyPlantAndEquipment" xml:lang="en-US">Net carrying amount of property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetBookValueOfPropertyPlantAndEquipment" xlink:to="lab_ypf_NetBookValueOfPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetBookValueOfPropertyPlantAndEquipment" xml:lang="en-US">Net book value of property, plant and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xlink:label="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xml:lang="en-US">Provision for impairment of property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xml:lang="en-US">Provision for impairment of property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xlink:to="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" xml:lang="en-US">Provision for impairment of property, plant and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" xml:lang="en-US">Provision for obsolescence of materials and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" xml:lang="en-US">Provision for obsolescence of materials and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" xlink:to="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" xml:lang="en-US">Provision for obsolescence of materials and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:label="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xml:lang="en-US">Disclosure of detailed information about property, plant and equipment [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xml:lang="en-US">Disclosure of detailed information about property, plant and equipment [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" xlink:to="lab_ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:label="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AccumulatedDepreciationAndAmortisationMember" xml:lang="en-US">Accumulated depreciation and amortisation [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AccumulatedDepreciationAndAmortisationMember" xml:lang="en-US">Accumulated depreciation [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AccumulatedDepreciationAndAmortisationMember" xlink:to="lab_ifrs-full_AccumulatedDepreciationAndAmortisationMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xlink:label="loc_ypf_NetBookValueOfPropertyPlantAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xml:lang="en-US">Net book value of property, plant and equipment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xml:lang="en-US">Net book value of property, plant and equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xlink:to="lab_ypf_NetBookValueOfPropertyPlantAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetBookValueOfPropertyPlantAndEquipmentMember" xml:lang="en-US">Net book value of property, plant and equipment [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LandAndBuildingsMember" xlink:label="loc_ifrs-full_LandAndBuildingsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LandAndBuildingsMember" xml:lang="en-US">Land and buildings [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LandAndBuildingsMember" xml:lang="en-US">Land and buildings [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LandAndBuildingsMember" xlink:to="lab_ifrs-full_LandAndBuildingsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiningPropertyWellsAndRelatedEquipmentMember" xlink:label="loc_ypf_MiningPropertyWellsAndRelatedEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MiningPropertyWellsAndRelatedEquipmentMember" xml:lang="en-US">Mining Property, Wells and Related Equipment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MiningPropertyWellsAndRelatedEquipmentMember" xml:lang="en-US">Mining Property, Wells and Related Equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MiningPropertyWellsAndRelatedEquipmentMember" xlink:to="lab_ypf_MiningPropertyWellsAndRelatedEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MiningPropertyWellsAndRelatedEquipmentMember" xml:lang="en-US">Mining property, wells and related equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaterialsAndEquipmentInWarehouseMember" xlink:label="loc_ypf_MaterialsAndEquipmentInWarehouseMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MaterialsAndEquipmentInWarehouseMember" xml:lang="en-US">Materials and Equipment In Warehouse [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MaterialsAndEquipmentInWarehouseMember" xml:lang="en-US">Materials and equipment in warehouse [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MaterialsAndEquipmentInWarehouseMember" xlink:to="lab_ypf_MaterialsAndEquipmentInWarehouseMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MaterialsAndEquipmentInWarehouseMember" xml:lang="en-US">Materials and equipment in warehouse.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ConstructionInProgressMember" xlink:label="loc_ifrs-full_ConstructionInProgressMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ConstructionInProgressMember" xml:lang="en-US">Construction in progress [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ConstructionInProgressMember" xml:lang="en-US">Drilling and work in progress [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ConstructionInProgressMember" xlink:to="lab_ifrs-full_ConstructionInProgressMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingInProgressMember" xlink:label="loc_ypf_ExploratoryDrillingInProgressMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExploratoryDrillingInProgressMember" xml:lang="en-US">Exploratory Drilling in Progress [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExploratoryDrillingInProgressMember" xml:lang="en-US">Exploratory Drilling in Progress [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExploratoryDrillingInProgressMember" xlink:to="lab_ypf_ExploratoryDrillingInProgressMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExploratoryDrillingInProgressMember" xml:lang="en-US">Exploratory drilling in progress.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Increase (decrease) other than through business combinations, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Increases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:to="lab_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Increase (decrease) other than through business combinations, property, plant and equipment</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xml:lang="en-US">Increase (decrease) through net exchange differences, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xml:lang="en-US">Translation effect</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xml:lang="en-US">Translation effect</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xml:lang="en-US">Increase decrease through inflation adjustment property plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xml:lang="en-US">Adjustment for inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xlink:to="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" xml:lang="en-US">Increase decrease through inflation adjustment property plant and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreasesAndReclassifications" xlink:label="loc_ypf_DecreasesAndReclassifications" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreasesAndReclassifications" xml:lang="en-US">Decreases and reclassifications</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DecreasesAndReclassifications" xml:lang="en-US">Decreases, reclassifications and other movements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreasesAndReclassifications" xlink:to="lab_ypf_DecreasesAndReclassifications" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreasesAndReclassifications" xml:lang="en-US">(Decreases) and reclassifications.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentMember" xml:lang="en-US">Hydrocarbon Wells Abandonment [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentMember" xml:lang="en-US">Hydrocarbon Wells Abandonmnet [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_HydrocarbonWellsAbandonmentMember" xlink:to="lab_ypf_HydrocarbonWellsAbandonmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentMember" xml:lang="en-US">Hydrocarbon wells abandonment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralProperty" xlink:label="loc_ypf_MineralProperty" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MineralProperty" xml:lang="en-US">Mineral property</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MineralProperty" xml:lang="en-US">Mineral property</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MineralProperty" xlink:to="lab_ypf_MineralProperty" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MineralProperty" xml:lang="en-US">Mineral property.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingInProgress" xlink:label="loc_ypf_ExploratoryDrillingInProgress" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExploratoryDrillingInProgress" xml:lang="en-US">Exploratory Drilling in Progress</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExploratoryDrillingInProgress" xml:lang="en-US">Exploratory wells in progress</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExploratoryDrillingInProgress" xlink:to="lab_ypf_ExploratoryDrillingInProgress" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExploratoryDrillingInProgress" xml:lang="en-US">Exploratory drilling in progress.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingPropertyInProgress" xlink:label="loc_ypf_DrillingPropertyInProgress" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DrillingPropertyInProgress" xml:lang="en-US">Drilling property in progress</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DrillingPropertyInProgress" xml:lang="en-US">Drilled wells</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DrillingPropertyInProgress" xlink:to="lab_ypf_DrillingPropertyInProgress" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DrillingPropertyInProgress" xml:lang="en-US">Exploratory drilling in progress.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploratoryDrillingWells" xlink:label="loc_ypf_ExploratoryDrillingWells" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExploratoryDrillingWells" xml:lang="en-US">Exploratory Drilling Wells</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExploratoryDrillingWells" xml:lang="en-US">Charged to exploratory expense</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExploratoryDrillingWells" xlink:to="lab_ypf_ExploratoryDrillingWells" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExploratoryDrillingWells" xml:lang="en-US">Exploratory drilling wells.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransferredToProvedProperties" xlink:label="loc_ypf_TransferredToProvedProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TransferredToProvedProperties" xml:lang="en-US">Transferred to Proved Properties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TransferredToProvedProperties" xml:lang="en-US">Transferred to proved properties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TransferredToProvedProperties" xlink:to="lab_ypf_TransferredToProvedProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TransferredToProvedProperties" xml:lang="en-US">Transferred to Proved Properties</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" xml:lang="en-US">Increase (decrease) through other changes, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" xml:lang="en-US">Net book value charged to Property, plant and equipment provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xml:lang="en-US">Increase (decrease) through transfers and other changes, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xml:lang="en-US">Increase/(Decrease) of cost of Property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xml:lang="en-US">Abandonment of hydrocarbon wells cost</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:label="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Non-current assets or disposal groups classified as held for sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xml:lang="en-US">Reclassification of assets held for disposal</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" xlink:to="lab_ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" xlink:label="loc_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" xml:lang="en-US">Expense relating to short-term leases for which recognition exemption has been used</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" xml:lang="en-US">Cost increases of short-term leases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" xlink:to="lab_ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" xlink:label="loc_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" xml:lang="en-US">Expense relating to variable lease payments not included in measurement of lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" xml:lang="en-US">Cost increases of variable charge of leases related to the underlying asset return/use</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" xlink:to="lab_ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationOfAmortizationOfRightofuseAssets" xlink:label="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CapitalizationOfAmortizationOfRightofuseAssets" xml:lang="en-US">Capitalization Of Amortization Of RightOfUse Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_CapitalizationOfAmortizationOfRightofuseAssets" xml:lang="en-US">Capitalization of depreciation of right-of-use assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ypf_CapitalizationOfAmortizationOfRightofuseAssets" xml:lang="en-US">Capitalization of amortization of right-of-use assets in property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CapitalizationOfAmortizationOfRightofuseAssets" xlink:to="lab_ypf_CapitalizationOfAmortizationOfRightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CapitalizationOfAmortizationOfRightofuseAssets" xml:lang="en-US">Capitalization of amortization of right-of-use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChanarMember" xlink:label="loc_ypf_AguadaDelChanarMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaDelChanarMember" xml:lang="en-US">Aguada del Chanar [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaDelChanarMember" xlink:to="lab_ypf_AguadaDelChanarMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MatureFieldsProjectMember" xlink:label="loc_ypf_MatureFieldsProjectMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MatureFieldsProjectMember" xml:lang="en-US">Mature Fields Project [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MatureFieldsProjectMember" xlink:to="lab_ypf_MatureFieldsProjectMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OptimizationPlanMember" xlink:label="loc_ypf_OptimizationPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OptimizationPlanMember" xml:lang="en-US">Optimization plan [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OptimizationPlanMember" xlink:to="lab_ypf_OptimizationPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OptimizationPlanMember" xml:lang="en-US">Optimization plan</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" xlink:label="loc_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" xml:lang="en-US">Capitalisation rate of borrowing costs eligible for capitalisation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" xml:lang="en-US">Rate of capitalization</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" xlink:to="lab_ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingCostsCapitalised" xlink:label="loc_ifrs-full_BorrowingCostsCapitalised" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingCostsCapitalised" xml:lang="en-US">Borrowing costs capitalised</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BorrowingCostsCapitalised" xml:lang="en-US">Amount capitalized</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingCostsCapitalised" xlink:to="lab_ifrs-full_BorrowingCostsCapitalised" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" xml:lang="en-US">Impairment loss recognised in profit or loss, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" xml:lang="en-US">Impairment loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xlink:label="loc_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xml:lang="en-US">Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment Net of tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xml:lang="en-US">Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment,Net of tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xlink:to="lab_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" xml:lang="en-US">Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment, Net of tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" xlink:label="loc_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" xml:lang="en-US">Recoverable amount of asset or cash-generating unit</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" xml:lang="en-US">Book value of the net assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" xlink:to="lab_ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xlink:label="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xml:lang="en-US">Discount rate used in current estimate of value in use</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xml:lang="en-US">Discount rate after taxes of the CGU Gas - Neuquina</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xml:lang="en-US">Discount rate used in current estimate of value in use</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" xlink:to="lab_ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecoverableValueAfterTaxes" xlink:label="loc_ypf_RecoverableValueAfterTaxes" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RecoverableValueAfterTaxes" xml:lang="en-US">Recoverable value after taxes</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RecoverableValueAfterTaxes" xlink:to="lab_ypf_RecoverableValueAfterTaxes" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RecoverableValueAfterTaxes" xml:lang="en-US">Recoverable value after taxes.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetAssetsLiabilities" xlink:label="loc_ifrs-full_NetAssetsLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NetAssetsLiabilities" xml:lang="en-US">Assets (liabilities)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NetAssetsLiabilities" xml:lang="en-US">Net assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NetAssetsLiabilities" xlink:to="lab_ifrs-full_NetAssetsLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasNeuquinaBasinMember" xlink:label="loc_ypf_CguGasNeuquinaBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CguGasNeuquinaBasinMember" xml:lang="en-US">CGU Gas Neuquina Basin [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CguGasNeuquinaBasinMember" xlink:to="lab_ypf_CguGasNeuquinaBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CguGasNeuquinaBasinMember" xml:lang="en-US">CGU Gas Neuquina Basin [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasAustralBasinMember" xlink:label="loc_ypf_CguGasAustralBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CguGasAustralBasinMember" xml:lang="en-US">CGU Gas Austral Basin [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CguGasAustralBasinMember" xlink:to="lab_ypf_CguGasAustralBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CguGasAustralBasinMember" xml:lang="en-US">CGU Gas Austral Basin [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" xlink:label="loc_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" xml:lang="en-US">CGU Oil CGU Gas Austral Basin And CGU Gas Neuquina Basin [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" xlink:to="lab_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" xml:lang="en-US">CGU oil cgu gas austral basin and cgu gas neuquina basin.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasNorthwestBasinMember" xlink:label="loc_ypf_CguGasNorthwestBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CguGasNorthwestBasinMember" xml:lang="en-US">CGU Gas Northwest Basin [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CguGasNorthwestBasinMember" xlink:to="lab_ypf_CguGasNorthwestBasinMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasCuencaNeuquinaMember" xlink:label="loc_ypf_CguGasCuencaNeuquinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CguGasCuencaNeuquinaMember" xml:lang="en-US">CGU Gas Cuenca Neuquina [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CguGasCuencaNeuquinaMember" xlink:to="lab_ypf_CguGasCuencaNeuquinaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CguGasCuencaNoroesteMember" xlink:label="loc_ypf_CguGasCuencaNoroesteMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CguGasCuencaNoroesteMember" xml:lang="en-US">CGU Gas Cuenca Noroeste [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CguGasCuencaNoroesteMember" xlink:to="lab_ypf_CguGasCuencaNoroesteMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" xlink:label="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" xml:lang="en-US">Changes in property, plant and equipment [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" xlink:to="lab_ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xml:lang="en-US">Provision For Obsolescence Of Materials And Equipment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xml:lang="en-US">Provision for Obsolescence of Materials and Equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xlink:to="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" xml:lang="en-US">Provision For Obsolescence Of Materials And Equipment [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:label="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Additions other than through business combinations, property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Increases charged to profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xml:lang="en-US">Increases charged to profit or loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" xlink:to="lab_ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xlink:label="loc_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xml:lang="en-US">Decrease through Amounts incurred due to utilization property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xml:lang="en-US">Applications&#160;due to utilization</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xlink:to="lab_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" xml:lang="en-US">Decrease through amounts incurred due to utilization property plant and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xlink:label="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xml:lang="en-US">Revaluation increase (decrease), property, plant and equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xml:lang="en-US">Reclassifications</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" xlink:to="lab_ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xlink:label="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xml:lang="en-US">Decrease in Property Plant and Equipment Charged to Profit or Loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xml:lang="en-US">Decreases charged to profit or loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xlink:to="lab_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" xml:lang="en-US">Decrease in property plant and equipment charged to profit or loss.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xlink:label="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xml:lang="en-US">Provision For Impairment Of Property Plant And Equipment [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xml:lang="en-US">Provision for Impairment of Property Plant and Equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xlink:to="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" xml:lang="en-US">Provision For Impairment Of Property Plant And Equipment [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForImpairmentAssociatedWithAssets" xlink:label="loc_ypf_ProvisionForImpairmentAssociatedWithAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForImpairmentAssociatedWithAssets" xml:lang="en-US">Provision For Impairment Associated With Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForImpairmentAssociatedWithAssets" xml:lang="en-US">Provision for impairment associated with assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForImpairmentAssociatedWithAssets" xlink:to="lab_ypf_ProvisionForImpairmentAssociatedWithAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForImpairmentAssociatedWithAssets" xml:lang="en-US">Provision for impairment associated with assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasTable" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfGeographicalAreasTable" xml:lang="en-US">Disclosure of geographical areas [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasTable" xlink:to="lab_ifrs-full_DisclosureOfGeographicalAreasTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_AR" xlink:label="loc_country_AR" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_country_AR" xml:lang="en-US">ARGENTINA</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_country_AR" xml:lang="en-US">Argentina [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_country_AR" xlink:to="lab_country_AR" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MercosurAndAssociatesCountriesMember" xlink:label="loc_ypf_MercosurAndAssociatesCountriesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MercosurAndAssociatesCountriesMember" xml:lang="en-US">Mercosur And Associates Countries [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MercosurAndAssociatesCountriesMember" xml:lang="en-US">Mercosur and Associates Countries [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_MercosurAndAssociatesCountriesMember" xml:lang="en-US">Mercosur and associates countries [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MercosurAndAssociatesCountriesMember" xlink:to="lab_ypf_MercosurAndAssociatesCountriesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MercosurAndAssociatesCountriesMember" xml:lang="en-US">Mercosur and associates countries.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasLineItems" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfGeographicalAreasLineItems" xml:lang="en-US">Disclosure of geographical areas [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasLineItems" xlink:to="lab_ifrs-full_DisclosureOfGeographicalAreasLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" xml:lang="en-US">Disclosure of quantitative information about right-of-use assets [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" xlink:to="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xml:lang="en-US">Disclosure of quantitative information about right-of-use assets [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" xlink:to="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xlink:label="loc_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xml:lang="en-US">Equipment for Natural Gas Compression and Power Generation [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xml:lang="en-US">Equipment for natural gas compression and power generation [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xlink:to="lab_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" xml:lang="en-US">Equipment for natural gas compression and power generation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RegasificationAndGasLiquefactionEquipmentMember" xlink:label="loc_ypf_RegasificationAndGasLiquefactionEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RegasificationAndGasLiquefactionEquipmentMember" xml:lang="en-US">Regasification and gas liquefaction equipment [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RegasificationAndGasLiquefactionEquipmentMember" xlink:to="lab_ypf_RegasificationAndGasLiquefactionEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RegasificationAndGasLiquefactionEquipmentMember" xml:lang="en-US">Regasification and gas liquefaction equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VesselsAndBargesForHydrocarbonTransportationMember" xlink:label="loc_ypf_VesselsAndBargesForHydrocarbonTransportationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VesselsAndBargesForHydrocarbonTransportationMember" xml:lang="en-US">Vessels and barges for hydrocarbon transportation [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VesselsAndBargesForHydrocarbonTransportationMember" xlink:to="lab_ypf_VesselsAndBargesForHydrocarbonTransportationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VesselsAndBargesForHydrocarbonTransportationMember" xml:lang="en-US">Vessels and barges for hydrocarbon transportation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TruckFleetsMember" xlink:label="loc_ypf_TruckFleetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TruckFleetsMember" xml:lang="en-US">Truck fleets [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TruckFleetsMember" xlink:to="lab_ypf_TruckFleetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TruckFleetsMember" xml:lang="en-US">Truck fleets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" xlink:label="loc_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" xml:lang="en-US">Reservoirs and installations for the underground storage of natural gas [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" xlink:to="lab_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" xml:lang="en-US">Reservoirs and land necessary to mount surface installations for the underground storage of natural gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitsForTheUseOfPortsAndLandMember" xlink:label="loc_ypf_PermitsForTheUseOfPortsAndLandMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitsForTheUseOfPortsAndLandMember" xml:lang="en-US">Permits for the use of ports and land [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitsForTheUseOfPortsAndLandMember" xlink:to="lab_ypf_PermitsForTheUseOfPortsAndLandMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitsForTheUseOfPortsAndLandMember" xml:lang="en-US">Permits for the use of ports and land.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploitationEquipmentAndFacilitiesMember" xlink:label="loc_ypf_ExploitationEquipmentAndFacilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExploitationEquipmentAndFacilitiesMember" xml:lang="en-US">Exploitation Equipment and Facilities [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExploitationEquipmentAndFacilitiesMember" xml:lang="en-US">Exploitation equipment and facilities [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExploitationEquipmentAndFacilitiesMember" xlink:to="lab_ypf_ExploitationEquipmentAndFacilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExploitationEquipmentAndFacilitiesMember" xml:lang="en-US">Exploitation equipment and facilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasStationsMember" xlink:label="loc_ypf_GasStationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GasStationsMember" xml:lang="en-US">Gas Stations [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GasStationsMember" xml:lang="en-US">Gas stations [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_GasStationsMember" xml:lang="en-US">Gas Stations [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GasStationsMember" xlink:to="lab_ypf_GasStationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GasStationsMember" xml:lang="en-US">Gas Stations [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:label="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xml:lang="en-US">Disclosure of quantitative information about right-of-use assets [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" xlink:to="lab_ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AggregateLeaseTermLease" xlink:label="loc_ypf_AggregateLeaseTermLease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AggregateLeaseTermLease" xml:lang="en-US">Aggregate Lease Term Lease</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AggregateLeaseTermLease" xlink:to="lab_ypf_AggregateLeaseTermLease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AggregateLeaseTermLease" xml:lang="en-US">Aggregate lease term lease.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xml:lang="en-US">Increase Decrease Through Translation Differences Right of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xml:lang="en-US">Translation effect</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xlink:to="lab_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" xml:lang="en-US">Increase Decrease Through Translation Differences Right Of Use Assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xml:lang="en-US">Increase Decrease Through Inflation Adjustments Right of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xml:lang="en-US">Adjustment for inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xlink:to="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" xml:lang="en-US">Increase Decrease Through Inflation Adjustments Right Of Use Assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xml:lang="en-US">Increase Decrease Through Disposals And Reclassifications Right of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xml:lang="en-US">Decreases, reclassifications and other movements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xlink:to="lab_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" xml:lang="en-US">Increase Decrease Through Disposals And Reclassifications Right Of Use Assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInRightOfUseAssets" xlink:label="loc_ypf_IncreaseDecreaseInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInRightOfUseAssets" xml:lang="en-US">Increase Decrease In Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInRightOfUseAssets" xml:lang="en-US">Right of use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInRightOfUseAssets" xlink:to="lab_ypf_IncreaseDecreaseInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInRightOfUseAssets" xml:lang="en-US">Increase decrease in right of use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExploitationFacilitiesAndEquipmentMember" xlink:label="loc_ypf_ExploitationFacilitiesAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExploitationFacilitiesAndEquipmentMember" xml:lang="en-US">Exploitation Facilities and Equipment [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExploitationFacilitiesAndEquipmentMember" xml:lang="en-US">Exploitation Facilities and Equipment [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExploitationFacilitiesAndEquipmentMember" xlink:to="lab_ypf_ExploitationFacilitiesAndEquipmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExploitationFacilitiesAndEquipmentMember" xml:lang="en-US">Exploitation facilities and equipment [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xlink:label="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xml:lang="en-US">Investments In Associates And Joint Ventures [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xlink:to="lab_ypf_InvestmentsInAssociatesAndJointVenturesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestmentsInAssociatesAndJointVenturesAbstract" xml:lang="en-US">Investments In Associates And Joint Ventures [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInAssociates" xlink:label="loc_ifrs-full_InvestmentsInAssociates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentsInAssociates" xml:lang="en-US">Investments in associates</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InvestmentsInAssociates" xml:lang="en-US">Amount of investments in associates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentsInAssociates" xlink:to="lab_ifrs-full_InvestmentsInAssociates" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInJointVentures" xlink:label="loc_ifrs-full_InvestmentsInJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentsInJointVentures" xml:lang="en-US">Investments in joint ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InvestmentsInJointVentures" xml:lang="en-US">Amount of investments in joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentsInJointVentures" xlink:to="lab_ifrs-full_InvestmentsInJointVentures" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xml:lang="en-US">Investments in subsidiaries, joint ventures and associates reported in separate financial statements</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xml:lang="en-US">Total investments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xml:lang="en-US">Balance at the beginning of the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xml:lang="en-US">Balance at the end of the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" xlink:to="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionsAndContributions" xlink:label="loc_ypf_AcquisitionsAndContributions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AcquisitionsAndContributions" xml:lang="en-US">Acquisitions and Contributions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AcquisitionsAndContributions" xml:lang="en-US">Acquisitions and contributions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AcquisitionsAndContributions" xlink:to="lab_ypf_AcquisitionsAndContributions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AcquisitionsAndContributions" xml:lang="en-US">Acquisitions and contributions.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TranslationDifferencesOnInvestments" xlink:label="loc_ypf_TranslationDifferencesOnInvestments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TranslationDifferencesOnInvestments" xml:lang="en-US">Translation Differences On Investments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TranslationDifferencesOnInvestments" xml:lang="en-US">Translation differences</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TranslationDifferencesOnInvestments" xlink:to="lab_ypf_TranslationDifferencesOnInvestments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TranslationDifferencesOnInvestments" xml:lang="en-US">Translation Differences On Investments</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DividendsReceived" xlink:label="loc_ifrs-full_DividendsReceived" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DividendsReceived" xml:lang="en-US">Dividends received</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_DividendsReceived" xml:lang="en-US">Distributed dividends</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DividendsReceived" xlink:to="lab_ifrs-full_DividendsReceived" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InflationAdjustment" xlink:label="loc_ypf_InflationAdjustment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InflationAdjustment" xml:lang="en-US">Inflation Adjustment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InflationAdjustment" xml:lang="en-US">Adjustment for inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InflationAdjustment" xlink:to="lab_ypf_InflationAdjustment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InflationAdjustment" xml:lang="en-US">Inflation adjustment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMovements" xlink:label="loc_ypf_OtherMovements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherMovements" xml:lang="en-US">Other Movements</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_OtherMovements" xml:lang="en-US">Other movements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherMovements" xlink:to="lab_ypf_OtherMovements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherMovements" xml:lang="en-US">Other movements.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalizationInJointVentures" xlink:label="loc_ypf_CapitalizationInJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CapitalizationInJointVentures" xml:lang="en-US">Capitalization In Joint Ventures</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CapitalizationInJointVentures" xml:lang="en-US">Capitalization in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CapitalizationInJointVentures" xlink:to="lab_ypf_CapitalizationInJointVentures" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CapitalizationInJointVentures" xml:lang="en-US">Capitalization in&#160;joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreaseFromSaleOfCompanies" xlink:label="loc_ypf_DecreaseFromSaleOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreaseFromSaleOfCompanies" xml:lang="en-US">Decrease from sale of companies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreaseFromSaleOfCompanies" xlink:to="lab_ypf_DecreaseFromSaleOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreaseFromSaleOfCompanies" xml:lang="en-US">Decrease from sale of companies.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract" xlink:label="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract" xml:lang="en-US">Investments in subsidiaries, joint ventures and associates [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract" xlink:to="lab_ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xml:lang="en-US">Disclosure of Investments in Associates and Joint Ventures [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xml:lang="en-US">Disclosure of Investments in Associates and Joint Ventures [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xlink:to="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" xml:lang="en-US">Disclosure of Investments in Associates and Joint Ventures [table]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssociatesMember" xlink:label="loc_ifrs-full_AssociatesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AssociatesMember" xml:lang="en-US">Total for all associates [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AssociatesMember" xml:lang="en-US">Associates [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AssociatesMember" xlink:to="lab_ifrs-full_AssociatesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAssociatesAndJointVenturesLineItems" xlink:label="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfAssociatesAndJointVenturesLineItems" xml:lang="en-US">Disclosure of Associates and Joint Ventures [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfAssociatesAndJointVenturesLineItems" xlink:to="lab_ypf_DisclosureOfAssociatesAndJointVenturesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfAssociatesAndJointVenturesLineItems" xml:lang="en-US">Disclosure of Associates and Joint Ventures [Line Item].</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesMember" xlink:label="loc_ifrs-full_JointVenturesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointVenturesMember" xml:lang="en-US">Total for all joint ventures [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointVenturesMember" xml:lang="en-US">Joint Ventures [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointVenturesMember" xlink:to="lab_ifrs-full_JointVenturesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" xlink:label="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" xml:lang="en-US">Disclosure of summary of analysis of assets and liabilities on date control was lost [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" xlink:to="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" xml:lang="en-US">Disclosure of summary of analysis of assets and liabilities on date control was lost [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xlink:label="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xml:lang="en-US">Disclosure of summary of analysis of assets and liabilities on date control was lost [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xml:lang="en-US">Disclosure of summary of analysis of assets and liabilities on date control was lost [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xlink:to="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" xml:lang="en-US">Disclosure of summary of analysis of assets and liabilities on date control was lost [table]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureofYPFEELineItems" xlink:label="loc_ypf_DisclosureofYPFEELineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureofYPFEELineItems" xml:lang="en-US">Disclosure of YPF EE [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureofYPFEELineItems" xlink:to="lab_ypf_DisclosureofYPFEELineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureofYPFEELineItems" xml:lang="en-US">Disclosure of YPF EE [Line Item].</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentFinancialLiabilities" xlink:label="loc_ifrs-full_NoncurrentFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentFinancialLiabilities" xml:lang="en-US">Non-current financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentFinancialLiabilities" xml:lang="en-US">Financial liabilities (excluding "Accounts payable", "Provisions" and "Other liabilities"items)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentFinancialLiabilities" xlink:to="lab_ifrs-full_NoncurrentFinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherNoncurrentNonfinancialLiabilities" xlink:label="loc_ifrs-full_OtherNoncurrentNonfinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherNoncurrentNonfinancialLiabilities" xml:lang="en-US">Other non-current non-financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherNoncurrentNonfinancialLiabilities" xml:lang="en-US">Other non-current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherNoncurrentNonfinancialLiabilities" xlink:to="lab_ifrs-full_OtherNoncurrentNonfinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentNonfinancialLiabilities" xlink:label="loc_ifrs-full_OtherCurrentNonfinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherCurrentNonfinancialLiabilities" xml:lang="en-US">Other current non-financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherCurrentNonfinancialLiabilities" xml:lang="en-US">Other current liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherCurrentNonfinancialLiabilities" xlink:to="lab_ifrs-full_OtherCurrentNonfinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClosingForeignExchangeRate" xlink:label="loc_ifrs-full_ClosingForeignExchangeRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClosingForeignExchangeRate" xml:lang="en-US">Closing foreign exchange rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ClosingForeignExchangeRate" xml:lang="en-US">Closing exchange rates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClosingForeignExchangeRate" xlink:to="lab_ifrs-full_ClosingForeignExchangeRate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherCurrentAssets" xlink:label="loc_ifrs-full_OtherCurrentAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherCurrentAssets" xml:lang="en-US">Other current assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_OtherCurrentAssets" xml:lang="en-US">Other current assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherCurrentAssets" xlink:to="lab_ifrs-full_OtherCurrentAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentFinancialLiabilities" xlink:label="loc_ifrs-full_CurrentFinancialLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentFinancialLiabilities" xml:lang="en-US">Current financial liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentFinancialLiabilities" xml:lang="en-US">Financial liabilities (excluding "Accounts payable", "Provisions" and "Other liabilities "items)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentFinancialLiabilities" xlink:to="lab_ifrs-full_CurrentFinancialLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromInterest" xlink:label="loc_ifrs-full_RevenueFromInterest" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueFromInterest" xml:lang="en-US">Interest income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_RevenueFromInterest" xml:lang="en-US">Interest income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueFromInterest" xlink:to="lab_ifrs-full_RevenueFromInterest" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestExpense" xlink:label="loc_ifrs-full_InterestExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestExpense" xml:lang="en-US">Interest expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_InterestExpense" xml:lang="en-US">Interest loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestExpense" xlink:to="lab_ifrs-full_InterestExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DepreciationAndAmortisationExpense" xlink:label="loc_ifrs-full_DepreciationAndAmortisationExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DepreciationAndAmortisationExpense" xml:lang="en-US">Depreciation and amortisation expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_DepreciationAndAmortisationExpense" xml:lang="en-US">Depreciation and Amortization</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DepreciationAndAmortisationExpense" xlink:to="lab_ifrs-full_DepreciationAndAmortisationExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AverageForeignExchangeRate" xlink:label="loc_ifrs-full_AverageForeignExchangeRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AverageForeignExchangeRate" xml:lang="en-US">Average foreign exchange rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_AverageForeignExchangeRate" xml:lang="en-US">Average exchange rates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AverageForeignExchangeRate" xlink:to="lab_ifrs-full_AverageForeignExchangeRate" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" xlink:label="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" xml:lang="en-US">Disclosure of Investments in Associates and Joint Ventures [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" xlink:to="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" xml:lang="en-US">Disclosure of investments in associates and joint ventures.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCompaniesMember" xlink:label="loc_ypf_OtherCompaniesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherCompaniesMember" xml:lang="en-US">Other Companies [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherCompaniesMember" xlink:to="lab_ypf_OtherCompaniesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xml:lang="en-US">Assets Held For Sale And Associated Liabilities [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" xlink:to="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xlink:label="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xml:lang="en-US">Assets Held For Sale And Associated Liabilities [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" xlink:to="lab_ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Provisions" xlink:label="loc_ifrs-full_Provisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Provisions" xml:lang="en-US">Provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_Provisions" xml:lang="en-US">Provision</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_Provisions" xml:lang="en-US">Provisions beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_Provisions" xml:lang="en-US">Provisions ending balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Provisions" xml:lang="en-US">Provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Provisions" xlink:to="lab_ifrs-full_Provisions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xlink:label="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xml:lang="en-US">Assets and liabilities classified as held for sale [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" xlink:to="lab_ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YpfBrazilMember" xlink:label="loc_ypf_YpfBrazilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YpfBrazilMember" xml:lang="en-US">YPF Brazil [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YpfBrazilMember" xlink:to="lab_ypf_YpfBrazilMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xml:lang="en-US">Hydrocarbon Wells Abandonment Obligations Mature Fields Project [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xml:lang="en-US">Hydrocarbon Wells Abandonment Obligations - Mature Fields Project [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xlink:to="lab_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" xml:lang="en-US">Hydrocarbon wells abandonment obligations - mature fields project.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xlink:label="loc_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xml:lang="en-US">Environmental Liabilities Mature Fields Project [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xml:lang="en-US">Environmental Liabilities - Mature Fields Project [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xlink:to="lab_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" xml:lang="en-US">Environmental liabilities - mature fields project.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfTransferOfShares" xlink:label="loc_ypf_ProportionOfTransferOfShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProportionOfTransferOfShares" xml:lang="en-US">Proportion Of Transfer of Shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProportionOfTransferOfShares" xml:lang="en-US">Proportion of transfer of shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProportionOfTransferOfShares" xlink:to="lab_ypf_ProportionOfTransferOfShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProportionOfTransferOfShares" xml:lang="en-US">Proportion of transfer of shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfWorkingInterestInSubsidiary" xlink:label="loc_ypf_ProportionOfWorkingInterestInSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProportionOfWorkingInterestInSubsidiary" xml:lang="en-US">Proportion Of Working Interest In Subsidiary</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProportionOfWorkingInterestInSubsidiary" xml:lang="en-US">Proportion of working interest in subsidiary</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProportionOfWorkingInterestInSubsidiary" xlink:to="lab_ypf_ProportionOfWorkingInterestInSubsidiary" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProportionOfWorkingInterestInSubsidiary" xml:lang="en-US">Proportion of working interest in subsidiary.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EscalanteElTrebolMember" xlink:label="loc_ypf_EscalanteElTrebolMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EscalanteElTrebolMember" xml:lang="en-US">Escalante El Trebol [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EscalanteElTrebolMember" xlink:to="lab_ypf_EscalanteElTrebolMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LlancaneloAndLlancaneloRMember" xlink:label="loc_ypf_LlancaneloAndLlancaneloRMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LlancaneloAndLlancaneloRMember" xml:lang="en-US">Llancanelo and Llancanelo R [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LlancaneloAndLlancaneloRMember" xlink:to="lab_ypf_LlancaneloAndLlancaneloRMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstacionFernandezOroMember" xlink:label="loc_ypf_EstacionFernandezOroMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstacionFernandezOroMember" xml:lang="en-US">Estacion Fernandez Oro [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstacionFernandezOroMember" xlink:to="lab_ypf_EstacionFernandezOroMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstacionFernandezOroMember" xml:lang="en-US">Estacion Fernandez Oro.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CampamentoCentralCanadonPerdidoMember" xlink:label="loc_ypf_CampamentoCentralCanadonPerdidoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CampamentoCentralCanadonPerdidoMember" xml:lang="en-US">Campamento Central Canadon Perdido [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CampamentoCentralCanadonPerdidoMember" xlink:to="lab_ypf_CampamentoCentralCanadonPerdidoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CampamentoCentralCanadonPerdidoMember" xml:lang="en-US">Campamento Central Canadon Perdido.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" xlink:label="loc_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" xml:lang="en-US">Barrancas, Vizcacheras, La Ventana, Ceferino, Mesa Verde and Ro Tunuyn [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" xlink:to="lab_ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" xlink:label="loc_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" xml:lang="en-US">Seal Cerro Bayo Volcn Auca Mahuida Don Ruiz and Las Manadas [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" xlink:to="lab_ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AlNortedelaDorsalOctgonoandDadnMember" xlink:label="loc_ypf_AlNortedelaDorsalOctgonoandDadnMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AlNortedelaDorsalOctgonoandDadnMember" xml:lang="en-US">Al Norte de la Dorsal Octgono and Dadn [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AlNortedelaDorsalOctgonoandDadnMember" xlink:to="lab_ypf_AlNortedelaDorsalOctgonoandDadnMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" xlink:label="loc_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" xml:lang="en-US">Cerro Piedra Cerro Guadal Norte Barranca Yankowsky Los Monos El Guadal Lomas del Cuy Caadn Vasco Caadn Yatel Pico Truncado El Cordn Los Perales Las Mesetas Caadn Len Meseta Espinosa and Caadn de la Escondida Las Heras [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" xlink:to="lab_ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" xlink:label="loc_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" xml:lang="en-US">El Portn Mendoza Neuqun Chihuido de la Salina Altiplanicie del Payn Caadn Amarillo Chihuido de la Salina Sur and Confluencia Sur [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" xlink:to="lab_ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElTordilloPuestoQuirogaandLaTaperaMember" xlink:label="loc_ypf_ElTordilloPuestoQuirogaandLaTaperaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ElTordilloPuestoQuirogaandLaTaperaMember" xml:lang="en-US">El Tordillo Puesto Quiroga and La Tapera [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ElTordilloPuestoQuirogaandLaTaperaMember" xlink:to="lab_ypf_ElTordilloPuestoQuirogaandLaTaperaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" xlink:label="loc_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" xml:lang="en-US">Los Chorrillos Lago Fuego Tierra del Fuego Fraccin A Tierra del Fuego Fraccin B Tierra del Fuego Fraccin C Tierra del Fuego Fraccin D and Tierra del Fuego Fraccin E [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" xlink:to="lab_ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesAbstract" xlink:label="loc_ypf_DisclosureOfInventoriesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInventoriesAbstract" xml:lang="en-US">Disclosure of inventories [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInventoriesAbstract" xlink:to="lab_ypf_DisclosureOfInventoriesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInventoriesAbstract" xml:lang="en-US">Disclosure of inventories</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesTable" xlink:label="loc_ypf_DisclosureOfInventoriesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInventoriesTable" xml:lang="en-US">Disclosure of inventories [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInventoriesTable" xml:lang="en-US">Disclosure of inventories [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInventoriesTable" xlink:to="lab_ypf_DisclosureOfInventoriesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInventoriesTable" xml:lang="en-US">Disclosure of inventories.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOilAndCommercializedNaturalGasMember" xlink:label="loc_ypf_CrudeOilAndCommercializedNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CrudeOilAndCommercializedNaturalGasMember" xml:lang="en-US">Crude oil and commercialized natural gas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CrudeOilAndCommercializedNaturalGasMember" xml:lang="en-US">Crude oil and natural gas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CrudeOilAndCommercializedNaturalGasMember" xlink:to="lab_ypf_CrudeOilAndCommercializedNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CrudeOilAndCommercializedNaturalGasMember" xml:lang="en-US">Crude oil and commercialized natural gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductsInProcessMember" xlink:label="loc_ypf_ProductsInProcessMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProductsInProcessMember" xml:lang="en-US">Products in Process [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProductsInProcessMember" xml:lang="en-US">Products in process [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProductsInProcessMember" xlink:to="lab_ypf_ProductsInProcessMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProductsInProcessMember" xml:lang="en-US">Products in process.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RawMaterialsPackagingMaterialsAndOthersMember" xlink:label="loc_ypf_RawMaterialsPackagingMaterialsAndOthersMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RawMaterialsPackagingMaterialsAndOthersMember" xml:lang="en-US">Raw Materials Packaging Materials and Others [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RawMaterialsPackagingMaterialsAndOthersMember" xml:lang="en-US">Raw materials, packaging materials and others [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RawMaterialsPackagingMaterialsAndOthersMember" xlink:to="lab_ypf_RawMaterialsPackagingMaterialsAndOthersMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RawMaterialsPackagingMaterialsAndOthersMember" xml:lang="en-US">Raw materials packaging materials and others.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinishedGoodsMember" xlink:label="loc_ypf_FinishedGoodsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinishedGoodsMember" xml:lang="en-US">Finished Goods [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinishedGoodsMember" xml:lang="en-US">Finished goods [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinishedGoodsMember" xlink:to="lab_ypf_FinishedGoodsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinishedGoodsMember" xml:lang="en-US">Finished goods.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInventoriesLineItems" xlink:label="loc_ypf_DisclosureOfInventoriesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInventoriesLineItems" xml:lang="en-US">Disclosure of inventories [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfInventoriesLineItems" xml:lang="en-US">Disclosure of inventories [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInventoriesLineItems" xlink:to="lab_ypf_DisclosureOfInventoriesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInventoriesLineItems" xml:lang="en-US">Disclosure of inventories [line items]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionOfInventoriesWritedown" xlink:label="loc_ypf_ProvisionOfInventoriesWritedown" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionOfInventoriesWritedown" xml:lang="en-US">Provision of Inventories Writedown</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionOfInventoriesWritedown" xml:lang="en-US">Write-downs (reversals of write-downs) of inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionOfInventoriesWritedown" xlink:to="lab_ypf_ProvisionOfInventoriesWritedown" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionOfInventoriesWritedown" xml:lang="en-US">Provision of inventories write-down.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeAndOtherReceivablesAbstract" xlink:label="loc_ypf_DisclosureOfTradeAndOtherReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTradeAndOtherReceivablesAbstract" xml:lang="en-US">Disclosure of trade and other receivables [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTradeAndOtherReceivablesAbstract" xlink:to="lab_ypf_DisclosureOfTradeAndOtherReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTradeAndOtherReceivablesAbstract" xml:lang="en-US">Disclosure of trade and other receivables abstract .</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentReceivablesAbstract" xlink:label="loc_ypf_OtherCurrentReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherCurrentReceivablesAbstract" xml:lang="en-US">Other Current Receivables [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherCurrentReceivablesAbstract" xml:lang="en-US">Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherCurrentReceivablesAbstract" xlink:to="lab_ypf_OtherCurrentReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherCurrentReceivablesAbstract" xml:lang="en-US">Other Current Receivables [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherAccountsReceivableTradeCurrent" xlink:label="loc_ypf_OtherAccountsReceivableTradeCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherAccountsReceivableTradeCurrent" xml:lang="en-US">Other Accounts Receivable Trade Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherAccountsReceivableTradeCurrent" xml:lang="en-US">Receivables from services, sales of other assets and other advance payments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherAccountsReceivableTradeCurrent" xlink:to="lab_ypf_OtherAccountsReceivableTradeCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherAccountsReceivableTradeCurrent" xml:lang="en-US">Other accounts receivable trade current.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xml:lang="en-US">Current receivables from taxes other than income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xml:lang="en-US">Tax credit and export rebates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:to="lab_ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" xlink:label="loc_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" xml:lang="en-US">Current receivables due from related parties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" xml:lang="en-US">Loans and balances with related parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" xlink:to="lab_ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentCollateralDeposits" xlink:label="loc_ypf_CurrentCollateralDeposits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentCollateralDeposits" xml:lang="en-US">Current Collateral Deposits</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CurrentCollateralDeposits" xml:lang="en-US">Collateral deposits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentCollateralDeposits" xlink:to="lab_ypf_CurrentCollateralDeposits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentCollateralDeposits" xml:lang="en-US">Current collateral deposits.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentPrepaidExpenses" xlink:label="loc_ifrs-full_CurrentPrepaidExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentPrepaidExpenses" xml:lang="en-US">Current prepaid expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentPrepaidExpenses" xml:lang="en-US">Prepaid expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentPrepaidExpenses" xlink:to="lab_ifrs-full_CurrentPrepaidExpenses" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentAdvancesAndLoansToEmployees" xlink:label="loc_ypf_CurrentAdvancesAndLoansToEmployees" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentAdvancesAndLoansToEmployees" xml:lang="en-US">Current Advances And Loans To Employees</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CurrentAdvancesAndLoansToEmployees" xml:lang="en-US">Advances and loans to employees</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentAdvancesAndLoansToEmployees" xlink:to="lab_ypf_CurrentAdvancesAndLoansToEmployees" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentAdvancesAndLoansToEmployees" xml:lang="en-US">Current advances and loans to employees.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentAdvancesToSuppliers" xlink:label="loc_ifrs-full_CurrentAdvancesToSuppliers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentAdvancesToSuppliers" xml:lang="en-US">Current advances to suppliers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentAdvancesToSuppliers" xml:lang="en-US">Advances to suppliers and custom agents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentAdvancesToSuppliers" xlink:to="lab_ifrs-full_CurrentAdvancesToSuppliers" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:label="loc_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xml:lang="en-US">Current receivables with partners in JA and other agreements</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xml:lang="en-US">Receivables with partners in JO and Consortiums</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:to="lab_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" xml:lang="en-US">Current receivables with partners in JA and other agreements.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentInsuranceReceivables" xlink:label="loc_ypf_CurrentInsuranceReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentInsuranceReceivables" xml:lang="en-US">Current Insurance Receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CurrentInsuranceReceivables" xml:lang="en-US">Insurance receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentInsuranceReceivables" xlink:to="lab_ypf_CurrentInsuranceReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentInsuranceReceivables" xml:lang="en-US">Current insurance receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Miscellaneous" xlink:label="loc_ypf_Miscellaneous" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Miscellaneous" xml:lang="en-US">Miscellaneous</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Miscellaneous" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Miscellaneous" xlink:to="lab_ypf_Miscellaneous" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Miscellaneous" xml:lang="en-US">Miscellaneous.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:label="loc_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xml:lang="en-US">Trade And Other Current Receivables Other Than Provision</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xml:lang="en-US">Other current receivables before provision</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xlink:to="lab_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" xml:lang="en-US">Trade and other current receivables other than provision.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherNoncurrentReceivablesAbstract" xlink:label="loc_ypf_OtherNoncurrentReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherNoncurrentReceivablesAbstract" xml:lang="en-US">Other Noncurrent Receivables [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherNoncurrentReceivablesAbstract" xml:lang="en-US">Noncurrent</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherNoncurrentReceivablesAbstract" xlink:to="lab_ypf_OtherNoncurrentReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherNoncurrentReceivablesAbstract" xml:lang="en-US">Other Noncurrent Receivables [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherAccountsReceivableTradeNonCurrent" xlink:label="loc_ypf_OtherAccountsReceivableTradeNonCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherAccountsReceivableTradeNonCurrent" xml:lang="en-US">Other Accounts Receivable Trade Non Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherAccountsReceivableTradeNonCurrent" xml:lang="en-US">Receivables from services, sales of other assets and other advance payments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherAccountsReceivableTradeNonCurrent" xlink:to="lab_ypf_OtherAccountsReceivableTradeNonCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherAccountsReceivableTradeNonCurrent" xml:lang="en-US">Other accounts receivable trade non current.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:label="loc_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xml:lang="en-US">Non-current receivables from taxes other than income tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xml:lang="en-US">Tax credit and export rebates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" xlink:to="lab_ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesDueFromRelatedParties" xlink:label="loc_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" xml:lang="en-US">Non-current receivables due from related parties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" xml:lang="en-US">Loans and balances with related parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" xlink:to="lab_ifrs-full_NoncurrentReceivablesDueFromRelatedParties" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPrepayments" xlink:label="loc_ifrs-full_NoncurrentPrepayments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentPrepayments" xml:lang="en-US">Non-current prepayments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentPrepayments" xml:lang="en-US">Prepaid expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentPrepayments" xlink:to="lab_ifrs-full_NoncurrentPrepayments" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentAdvances" xlink:label="loc_ifrs-full_NoncurrentAdvances" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentAdvances" xml:lang="en-US">Non-current advances received</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentAdvances" xml:lang="en-US">Advances to suppliers and custom agents</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentAdvances" xlink:to="lab_ifrs-full_NoncurrentAdvances" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:label="loc_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xml:lang="en-US">Noncurrent receivables with partners in JA and other agreements</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xml:lang="en-US">Receivables with partners in JO and Consortiums</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xlink:to="lab_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" xml:lang="en-US">Noncurrent receivables with partners in JA and other agreements.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentMiscellaneous" xlink:label="loc_ypf_NoncurrentMiscellaneous" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NoncurrentMiscellaneous" xml:lang="en-US">Noncurrent Miscellaneous</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NoncurrentMiscellaneous" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NoncurrentMiscellaneous" xlink:to="lab_ypf_NoncurrentMiscellaneous" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NoncurrentMiscellaneous" xml:lang="en-US">Noncurrent miscellaneous.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentReceivablesOtherthanProvision" xlink:label="loc_ypf_NoncurrentReceivablesOtherthanProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NoncurrentReceivablesOtherthanProvision" xml:lang="en-US">Noncurrent Receivables OtherThan Provision</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_NoncurrentReceivablesOtherthanProvision" xml:lang="en-US">Other non current receivables before provision</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NoncurrentReceivablesOtherthanProvision" xlink:to="lab_ypf_NoncurrentReceivablesOtherthanProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NoncurrentReceivablesOtherthanProvision" xml:lang="en-US">Noncurrent receivables other than provision.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xlink:label="loc_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xml:lang="en-US">Provision For Other Doubtful Noncurrent Receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xml:lang="en-US">Provision for other doubtful receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xlink:to="lab_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" xml:lang="en-US">Provision for other doubtful noncurrent receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesAbstract" xlink:label="loc_ypf_TradeReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeReceivablesAbstract" xml:lang="en-US">Trade Receivables [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeReceivablesAbstract" xlink:to="lab_ypf_TradeReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeReceivablesAbstract" xml:lang="en-US">Trade Receivables [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesTable" xlink:label="loc_ypf_DisclosureOfTradeReceivablesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTradeReceivablesTable" xml:lang="en-US">Disclosure of Trade Receivables [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfTradeReceivablesTable" xml:lang="en-US">Disclosure of Trade Receivables [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTradeReceivablesTable" xlink:to="lab_ypf_DisclosureOfTradeReceivablesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTradeReceivablesTable" xml:lang="en-US">Disclosure of Trade Receivables [table]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountsReceivableAndRelatedPartiesMember" xlink:label="loc_ypf_AccountsReceivableAndRelatedPartiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccountsReceivableAndRelatedPartiesMember" xml:lang="en-US">Accounts Receivable And Related Parties [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccountsReceivableAndRelatedPartiesMember" xml:lang="en-US">Accounts Receivable and Related Parties [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccountsReceivableAndRelatedPartiesMember" xlink:to="lab_ypf_AccountsReceivableAndRelatedPartiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccountsReceivableAndRelatedPartiesMember" xml:lang="en-US">Accounts receivable and related parties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivableMember" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivableMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivableMember" xml:lang="en-US">Provision For Doubtful Trade Receivable [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivableMember" xml:lang="en-US">Provision for Doubtful Trade Receivable [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForDoubtfulTradeReceivableMember" xlink:to="lab_ypf_ProvisionForDoubtfulTradeReceivableMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivableMember" xml:lang="en-US">Provision for doubtful trade receivable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTradeReceivablesLineItems" xlink:label="loc_ypf_DisclosureOfTradeReceivablesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTradeReceivablesLineItems" xml:lang="en-US">Disclosure of Trade receivables [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfTradeReceivablesLineItems" xml:lang="en-US">Disclosure of Trade receivables [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTradeReceivablesLineItems" xlink:to="lab_ypf_DisclosureOfTradeReceivablesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTradeReceivablesLineItems" xml:lang="en-US">Disclosure of Trade receivables [line items]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentProvisionForDoubtfulTradeReceivable" xlink:label="loc_ypf_CurrentProvisionForDoubtfulTradeReceivable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentProvisionForDoubtfulTradeReceivable" xml:lang="en-US">Current Provision for Doubtful Trade Receivable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_CurrentProvisionForDoubtfulTradeReceivable" xml:lang="en-US">Current provision for doubtful trade receivable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentProvisionForDoubtfulTradeReceivable" xlink:to="lab_ypf_CurrentProvisionForDoubtfulTradeReceivable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentProvisionForDoubtfulTradeReceivable" xml:lang="en-US">Current provision for doubtful trade receivable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xlink:label="loc_ypf_NonCurrentProvisionForDoubtfulTradeReceivable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xml:lang="en-US">Non Current Provision for Doubtful Trade Receivable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xml:lang="en-US">Non-current provision for doubtful trade receivable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xlink:to="lab_ypf_NonCurrentProvisionForDoubtfulTradeReceivable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NonCurrentProvisionForDoubtfulTradeReceivable" xml:lang="en-US">Noncurrent provision for doubtful trade receivable.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" xlink:label="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" xml:lang="en-US">Disclosure of information about evolution of the provsion for doubtful trade receivables [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" xlink:to="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" xml:lang="en-US">Disclosure of information about evolution of the provision for doubtful trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xlink:label="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xml:lang="en-US">Disclosure Evolution Of The Provision For Doubtful Trade Receivables [Table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xml:lang="en-US">Disclosure Evolution of the Provision For Doubtful Trade Receivables [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xlink:to="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" xml:lang="en-US">Disclosure evolution of the provision for doubtful trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xlink:label="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xml:lang="en-US">Disclosure Evolution Of The Provision For Doubtful Trade Receivables [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xml:lang="en-US">Disclosure Evolution Of the Provision For Doubtful Trade Receivables [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xlink:to="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" xml:lang="en-US">Disclosure evolution of the provision for doubtful trade receivables line item.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeReceivables" xlink:label="loc_ifrs-full_TradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeReceivables" xml:lang="en-US">Trade receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_TradeReceivables" xml:lang="en-US">Balance at the beginning of the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_TradeReceivables" xml:lang="en-US">Balance at the end of the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeReceivables" xlink:to="lab_ifrs-full_TradeReceivables" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xlink:label="loc_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xml:lang="en-US">Increase Decrease Charged To Expenses In Trade Receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xml:lang="en-US">Increases charged to expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xlink:to="lab_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" xml:lang="en-US">Increase decrease charged to expenses in trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xlink:label="loc_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xml:lang="en-US">Increase Decrease Charged To Income In Trade Receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xml:lang="en-US">Decreases charged to income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xlink:to="lab_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" xml:lang="en-US">Increase decrease charged to income in trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:label="loc_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xml:lang="en-US">Trade Receivables Reclassification Adjustments On Exchange Differences On Translation Net Of Tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xml:lang="en-US">Net exchange and translation differences</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xlink:to="lab_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" xml:lang="en-US">Trade Receivables Reclassification Adjustments On Exchange Differences On Translation Net Of Tax</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesResultFromNetMonetaryPosition" xlink:label="loc_ypf_TradeReceivablesResultFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeReceivablesResultFromNetMonetaryPosition" xml:lang="en-US">Trade Receivables Result from net monetary position</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TradeReceivablesResultFromNetMonetaryPosition" xml:lang="en-US">Result from net monetary position</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeReceivablesResultFromNetMonetaryPosition" xlink:to="lab_ypf_TradeReceivablesResultFromNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeReceivablesResultFromNetMonetaryPosition" xml:lang="en-US">Trade Receivables Result from net monetary position.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesIncurredDueToUtilization" xlink:label="loc_ypf_TradeReceivablesIncurredDueToUtilization" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeReceivablesIncurredDueToUtilization" xml:lang="en-US">Trade Receivables Incurred Due to Utilization</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TradeReceivablesIncurredDueToUtilization" xml:lang="en-US">Applications due to utilization</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeReceivablesIncurredDueToUtilization" xlink:to="lab_ypf_TradeReceivablesIncurredDueToUtilization" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeReceivablesIncurredDueToUtilization" xml:lang="en-US">Trade receivables incurred due to utilization.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradeReceivablesReclassificationAdjustments" xlink:label="loc_ypf_TradeReceivablesReclassificationAdjustments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradeReceivablesReclassificationAdjustments" xml:lang="en-US">Trade Receivables Reclassification Adjustments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TradeReceivablesReclassificationAdjustments" xml:lang="en-US">Reclassifications</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradeReceivablesReclassificationAdjustments" xlink:to="lab_ypf_TradeReceivablesReclassificationAdjustments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradeReceivablesReclassificationAdjustments" xml:lang="en-US">Trade receivables reclassification adjustments.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionAxis" xlink:label="loc_ypf_ClassOfProvisionAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassOfProvisionAxis" xml:lang="en-US">Class Of Provision [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassOfProvisionAxis" xlink:to="lab_ypf_ClassOfProvisionAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfProvisionDomain" xlink:label="loc_ypf_ClassOfProvisionDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassOfProvisionDomain" xml:lang="en-US">Class Of Provision [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassOfProvisionDomain" xlink:to="lab_ypf_ClassOfProvisionDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentMember" xlink:label="loc_ypf_NonCurrentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NonCurrentMember" xml:lang="en-US">Non current [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NonCurrentMember" xml:lang="en-US">Non current [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NonCurrentMember" xlink:to="lab_ypf_NonCurrentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NonCurrentMember" xml:lang="en-US">Non current.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentMember" xlink:label="loc_ifrs-full_CurrentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentMember" xml:lang="en-US">Current [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentMember" xml:lang="en-US">Current [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentMember" xlink:to="lab_ifrs-full_CurrentMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsAbstract" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsAbstract" xml:lang="en-US">Disclosure of financial assets [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsAbstract" xlink:to="lab_ifrs-full_DisclosureOfFinancialAssetsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfFinancialAssetsTable" xlink:label="loc_ifrs-full_DisclosureOfFinancialAssetsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfFinancialAssetsTable" xml:lang="en-US">Disclosure of financial assets [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfFinancialAssetsTable" xlink:to="lab_ifrs-full_DisclosureOfFinancialAssetsTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermDepositsMember" xlink:label="loc_ypf_TermDepositsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TermDepositsMember" xml:lang="en-US">Term Deposits [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TermDepositsMember" xlink:to="lab_ypf_TermDepositsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TermDepositsMember" xml:lang="en-US">Term deposits.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:label="loc_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xml:lang="en-US">Financial assets at amortised cost, category [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xml:lang="en-US">Investments in financial assets at amortized cost, category [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" xlink:to="lab_ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:label="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xml:lang="en-US">Financial assets at fair value through profit or loss, category [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xml:lang="en-US">Investments in financial assets at fair value through profit or loss, category [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" xlink:to="lab_ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndCashEquivalentsAbstract" xlink:label="loc_ifrs-full_CashAndCashEquivalentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashAndCashEquivalentsAbstract" xml:lang="en-US">Cash and cash equivalents [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashAndCashEquivalentsAbstract" xlink:to="lab_ifrs-full_CashAndCashEquivalentsAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsTable" xlink:label="loc_ypf_CashAndCashEquivalentsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CashAndCashEquivalentsTable" xml:lang="en-US">Cash And Cash Equivalents [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CashAndCashEquivalentsTable" xml:lang="en-US">Cash And Cash Equivalents [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CashAndCashEquivalentsTable" xlink:to="lab_ypf_CashAndCashEquivalentsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CashAndCashEquivalentsTable" xml:lang="en-US">Cash and cash equivalents.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfCashAndCashEquivalentsLineItems" xlink:label="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfCashAndCashEquivalentsLineItems" xml:lang="en-US">Disclosure of cash and cash equivalents [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfCashAndCashEquivalentsLineItems" xml:lang="en-US">Disclosure of cash and cash equivalents [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfCashAndCashEquivalentsLineItems" xlink:to="lab_ypf_DisclosureOfCashAndCashEquivalentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfCashAndCashEquivalentsLineItems" xml:lang="en-US">Line items represents cash and cash equivalents.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashAndBankBalancesAtCentralBanks" xlink:label="loc_ifrs-full_CashAndBankBalancesAtCentralBanks" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashAndBankBalancesAtCentralBanks" xml:lang="en-US">Cash and bank balances at central banks</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CashAndBankBalancesAtCentralBanks" xml:lang="en-US">Cash and banks</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashAndBankBalancesAtCentralBanks" xlink:to="lab_ifrs-full_CashAndBankBalancesAtCentralBanks" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xml:lang="en-US">Short-term investments, classified as cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xml:lang="en-US">Short-term investments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" xlink:to="lab_ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xlink:label="loc_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Cash and cash equivalents at fair value through profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Financial assets at fair value through profit or loss</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xlink:to="lab_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" xml:lang="en-US">Cash and cash equivalents at fair value through profit or loss.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoNacionArgentinaMember" xlink:label="loc_ypf_BancoNacionArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BancoNacionArgentinaMember" xml:lang="en-US">Banco Nacion Argentina [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BancoNacionArgentinaMember" xml:lang="en-US">Banco Nacion Argentina [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BancoNacionArgentinaMember" xlink:to="lab_ypf_BancoNacionArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BancoNacionArgentinaMember" xml:lang="en-US">Banco Nacion Argentina.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BancoCentralDeLaRepublicaArgentinaMember" xlink:label="loc_ypf_BancoCentralDeLaRepublicaArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BancoCentralDeLaRepublicaArgentinaMember" xml:lang="en-US">Banco Central de la Republica Argentina [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BancoCentralDeLaRepublicaArgentinaMember" xlink:to="lab_ypf_BancoCentralDeLaRepublicaArgentinaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xlink:label="loc_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xml:lang="en-US">Term deposits and other investments , classified as cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xml:lang="en-US">Term deposits and other investments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xlink:to="lab_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" xml:lang="en-US">Term deposits and other investments , classified as cash equivalents.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixAbstract" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfProvisionMatrixAbstract" xml:lang="en-US">Disclosure of provision matrix [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixAbstract" xlink:to="lab_ifrs-full_DisclosureOfProvisionMatrixAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsTable" xlink:label="loc_ypf_DisclosureOfProvisionsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfProvisionsTable" xml:lang="en-US">Disclosure of Provisions [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfProvisionsTable" xml:lang="en-US">Disclosure of Provisions [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfProvisionsTable" xlink:to="lab_ypf_DisclosureOfProvisionsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfProvisionsTable" xml:lang="en-US">Disclosure of provisions.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfContingentLiabilitiesAxis" xml:lang="en-US">Classes of contingent liabilities [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfContingentLiabilitiesAxis" xml:lang="en-US">Classes of contingent liabilities [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesAxis" xlink:to="lab_ifrs-full_ClassesOfContingentLiabilitiesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:label="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfContingentLiabilitiesDomain" xml:lang="en-US">Classes of contingent liabilities [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfContingentLiabilitiesDomain" xlink:to="lab_ifrs-full_ClassesOfContingentLiabilitiesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LegalProceedingsContingentLiabilityMember" xlink:label="loc_ifrs-full_LegalProceedingsContingentLiabilityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LegalProceedingsContingentLiabilityMember" xml:lang="en-US">Legal proceedings contingent liability [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LegalProceedingsContingentLiabilityMember" xml:lang="en-US">Provision for lawsuits and contingencies [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LegalProceedingsContingentLiabilityMember" xlink:to="lab_ifrs-full_LegalProceedingsContingentLiabilityMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForEnvironmentalLiabilitiesMember" xlink:label="loc_ypf_ProvisionForEnvironmentalLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForEnvironmentalLiabilitiesMember" xml:lang="en-US">Provision for environmental liabilities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForEnvironmentalLiabilitiesMember" xml:lang="en-US">Provision for environmental liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForEnvironmentalLiabilitiesMember" xlink:to="lab_ypf_ProvisionForEnvironmentalLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForEnvironmentalLiabilitiesMember" xml:lang="en-US">Provision for environmental liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherContingentLiabilitiesMember" xlink:label="loc_ifrs-full_OtherContingentLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherContingentLiabilitiesMember" xml:lang="en-US">Other contingent liabilities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherContingentLiabilitiesMember" xml:lang="en-US">Provision for Hydrocarbon Wells Abandonment Obligations [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherContingentLiabilitiesMember" xlink:to="lab_ifrs-full_OtherContingentLiabilitiesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfProvisionsLineItems" xlink:label="loc_ypf_DisclosureOfProvisionsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfProvisionsLineItems" xml:lang="en-US">Disclosure of Provisions [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfProvisionsLineItems" xml:lang="en-US">Disclosure of provisions [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfProvisionsLineItems" xlink:to="lab_ypf_DisclosureOfProvisionsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfProvisionsLineItems" xml:lang="en-US">Disclosure of provisions.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesChargedToProvisionExpenses" xlink:label="loc_ypf_IncreasesChargedToProvisionExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreasesChargedToProvisionExpenses" xml:lang="en-US">Increases Charged to Provision Expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreasesChargedToProvisionExpenses" xml:lang="en-US">Increases charged to expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreasesChargedToProvisionExpenses" xlink:to="lab_ypf_IncreasesChargedToProvisionExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreasesChargedToProvisionExpenses" xml:lang="en-US">Increases charged to provision expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreasesChargedToProvisionIncome" xlink:label="loc_ypf_DecreasesChargedToProvisionIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreasesChargedToProvisionIncome" xml:lang="en-US">Decreases Charged To Provision Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_DecreasesChargedToProvisionIncome" xml:lang="en-US">Decreases charged to income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreasesChargedToProvisionIncome" xlink:to="lab_ypf_DecreasesChargedToProvisionIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreasesChargedToProvisionIncome" xml:lang="en-US">Decreases charged to provision expenses</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" xml:lang="en-US">Increase (decrease) through net exchange differences, other provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" xml:lang="en-US">Net exchange and translation differences</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" xlink:label="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" xml:lang="en-US">Acquisitions through business combinations, other provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" xml:lang="en-US">Increases from business combinations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" xlink:to="lab_ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xlink:label="loc_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xml:lang="en-US">Increase decrease through results from net monetary position other provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xml:lang="en-US">Result from net monetary position</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xlink:to="lab_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" xml:lang="en-US">Increase decrease through results from net monetary position other provisions.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" xlink:label="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" xml:lang="en-US">Increase (decrease) through transfers and other changes, other provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" xml:lang="en-US">Reclassifications and other movements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" xlink:to="lab_ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicationsDueToUtilization" xlink:label="loc_ypf_ApplicationsDueToUtilization" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ApplicationsDueToUtilization" xml:lang="en-US">Applications Due To Utilization</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ApplicationsDueToUtilization" xml:lang="en-US">Applications due to utilization</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ApplicationsDueToUtilization" xlink:to="lab_ypf_ApplicationsDueToUtilization" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ApplicationsDueToUtilization" xml:lang="en-US">Applications due to utilization.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentCostsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentCostsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentCostsMember" xml:lang="en-US">Hydrocarbon Wells Abandonment Costs [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentCostsMember" xml:lang="en-US">Hydrocarbon Wells Abandonmnet Cost [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_HydrocarbonWellsAbandonmentCostsMember" xlink:to="lab_ypf_HydrocarbonWellsAbandonmentCostsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentCostsMember" xml:lang="en-US">Hydrocarbon Wells Abandonment Costs [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransportadoraDeGasDelNorteSaMember" xlink:label="loc_ypf_TransportadoraDeGasDelNorteSaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TransportadoraDeGasDelNorteSaMember" xml:lang="en-US">Transportadora De Gas Del Norte SA [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TransportadoraDeGasDelNorteSaMember" xlink:to="lab_ypf_TransportadoraDeGasDelNorteSaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TransportadoraDeGasDelNorteSaMember" xml:lang="en-US">TGN.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherLiabilities" xlink:label="loc_ifrs-full_OtherLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherLiabilities" xml:lang="en-US">Other liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherLiabilities" xml:lang="en-US">Other liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherLiabilities" xlink:to="lab_ifrs-full_OtherLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xlink:label="loc_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xml:lang="en-US">Amount Reclassified As Current Provision Due To The Trust Settlement Agreement</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xml:lang="en-US">Amount reclassified as current provision due to the Trust Settlement Agreement</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xlink:to="lab_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" xml:lang="en-US">Amount reclassified as current provision due to the trust settlement agreement.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumAxis" xlink:label="loc_ypf_MoratoriumAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MoratoriumAxis" xml:lang="en-US">Moratorium [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MoratoriumAxis" xml:lang="en-US">Moratorium [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MoratoriumAxis" xlink:to="lab_ypf_MoratoriumAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MoratoriumAxis" xml:lang="en-US">Moratorium.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MoratoriumMember" xlink:label="loc_ypf_MoratoriumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MoratoriumMember" xml:lang="en-US">Moratorium [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MoratoriumMember" xml:lang="en-US">Moratorium [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MoratoriumMember" xlink:to="lab_ypf_MoratoriumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MoratoriumMember" xml:lang="en-US">Moratorium.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsAxis" xlink:label="loc_ypf_DetailsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DetailsAxis" xml:lang="en-US">Details [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DetailsAxis" xlink:to="lab_ypf_DetailsAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsDomain" xlink:label="loc_ypf_DetailsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DetailsDomain" xml:lang="en-US">Details [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DetailsDomain" xlink:to="lab_ypf_DetailsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfProvisionsAxis" xlink:label="loc_ifrs-full_ClassesOfProvisionsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfProvisionsAxis" xml:lang="en-US">Classes of other provisions [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfProvisionsAxis" xml:lang="en-US">Classes of other provisions [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfProvisionsAxis" xlink:to="lab_ifrs-full_ClassesOfProvisionsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfOtherProvisionsDomain" xlink:label="loc_ifrs-full_ClassesOfOtherProvisionsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfOtherProvisionsDomain" xml:lang="en-US">Classes of other provisions [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfOtherProvisionsDomain" xml:lang="en-US">Classes of other provisions [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfOtherProvisionsDomain" xlink:to="lab_ifrs-full_ClassesOfOtherProvisionsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementAxis" xlink:label="loc_ypf_AgreementAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AgreementAxis" xml:lang="en-US">Agreement [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AgreementAxis" xlink:to="lab_ypf_AgreementAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgreementDomain" xlink:label="loc_ypf_AgreementDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AgreementDomain" xml:lang="en-US">Agreement [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AgreementDomain" xlink:to="lab_ypf_AgreementDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AgreementDomain" xml:lang="en-US">Agreement.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TrustSettlementAgreementMember" xlink:label="loc_ypf_TrustSettlementAgreementMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TrustSettlementAgreementMember" xml:lang="en-US">Trust Settlement Agreement [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TrustSettlementAgreementMember" xlink:to="lab_ypf_TrustSettlementAgreementMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TrustSettlementAgreementMember" xml:lang="en-US">Trust settlement agreement.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellsAbandonmentObligationsMember" xlink:label="loc_ypf_HydrocarbonWellsAbandonmentObligationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_HydrocarbonWellsAbandonmentObligationsMember" xml:lang="en-US">Hydrocarbon wells abandonment obligations [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_HydrocarbonWellsAbandonmentObligationsMember" xlink:to="lab_ypf_HydrocarbonWellsAbandonmentObligationsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalLiabilitiesMember" xlink:label="loc_ypf_EnvironmentalLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EnvironmentalLiabilitiesMember" xml:lang="en-US">Environmental liabilities [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EnvironmentalLiabilitiesMember" xlink:to="lab_ypf_EnvironmentalLiabilitiesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfOtherProvisionsTable" xlink:label="loc_ifrs-full_DisclosureOfOtherProvisionsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfOtherProvisionsTable" xml:lang="en-US">Disclosure of other provisions [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfOtherProvisionsTable" xml:lang="en-US">Disclosure of Provisions [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfOtherProvisionsTable" xlink:to="lab_ifrs-full_DisclosureOfOtherProvisionsTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ParentMember" xlink:label="loc_ifrs-full_ParentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ParentMember" xml:lang="en-US">Parent [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ParentMember" xml:lang="en-US">YPF S.A. [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ParentMember" xlink:to="lab_ifrs-full_ParentMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xlink:label="loc_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xml:lang="en-US">Comision Nacional De La Defensa La Competencia [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xml:lang="en-US">CNDC [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xlink:to="lab_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" xml:lang="en-US">CNDC.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnvironmentalClaimsLaPlataMember" xlink:label="loc_ypf_EnvironmentalClaimsLaPlataMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EnvironmentalClaimsLaPlataMember" xml:lang="en-US">Environmental Claims La Plata [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EnvironmentalClaimsLaPlataMember" xml:lang="en-US">Environmental Claims La Plata [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EnvironmentalClaimsLaPlataMember" xlink:to="lab_ypf_EnvironmentalClaimsLaPlataMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EnvironmentalClaimsLaPlataMember" xml:lang="en-US">Environmental Claims La Plata.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfProvisionMatrixLineItems" xlink:label="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfProvisionMatrixLineItems" xml:lang="en-US">Disclosure of provision matrix [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_DisclosureOfProvisionMatrixLineItems" xml:lang="en-US">Disclosure of Provisions [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfProvisionMatrixLineItems" xlink:to="lab_ifrs-full_DisclosureOfProvisionMatrixLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" xlink:label="loc_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" xml:lang="en-US">Description of nature of obligation, contingent liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" xml:lang="en-US">Description of provision for lawsuits and contingencies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" xlink:to="lab_ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProceedsFromTransferActivity" xlink:label="loc_ifrs-full_ProceedsFromTransferActivity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProceedsFromTransferActivity" xml:lang="en-US">Proceeds from transfer activity during period representing greatest transfer activity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProceedsFromTransferActivity" xml:lang="en-US">Transfer amount and interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProceedsFromTransferActivity" xlink:to="lab_ifrs-full_ProceedsFromTransferActivity" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfRiskInEnvironmentalClaims" xlink:label="loc_ypf_DescriptionOfRiskInEnvironmentalClaims" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfRiskInEnvironmentalClaims" xml:lang="en-US">Description Of Risk In Environmental Claims</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfRiskInEnvironmentalClaims" xml:lang="en-US">Description of risk in environmental claims</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfRiskInEnvironmentalClaims" xlink:to="lab_ypf_DescriptionOfRiskInEnvironmentalClaims" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfRiskInEnvironmentalClaims" xml:lang="en-US">Description of risk in environmental claims.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtendedPeriodCoveredByFinancialStatements" xlink:label="loc_ypf_ExtendedPeriodCoveredByFinancialStatements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExtendedPeriodCoveredByFinancialStatements" xml:lang="en-US">Extended Period Covered By Financial Statements</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ExtendedPeriodCoveredByFinancialStatements" xml:lang="en-US">Agreement Extended Period</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExtendedPeriodCoveredByFinancialStatements" xlink:to="lab_ypf_ExtendedPeriodCoveredByFinancialStatements" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExtendedPeriodCoveredByFinancialStatements" xml:lang="en-US">Extended Period Covered By Financial Statements.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RefineryTermPeriod" xlink:label="loc_ypf_RefineryTermPeriod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RefineryTermPeriod" xml:lang="en-US">Refinery Term Period</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RefineryTermPeriod" xml:lang="en-US">Refinery term period</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RefineryTermPeriod" xlink:to="lab_ypf_RefineryTermPeriod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RefineryTermPeriod" xml:lang="en-US">Refinery term period.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfHydrocarbons" xlink:label="loc_ypf_PercentageOfHydrocarbons" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfHydrocarbons" xml:lang="en-US">Percentage of Hydrocarbons</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfHydrocarbons" xml:lang="en-US">Percentage of hydrocarbons</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfHydrocarbons" xlink:to="lab_ypf_PercentageOfHydrocarbons" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfHydrocarbons" xml:lang="en-US">Percentage of hydrocarbons.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LossContingentDamagesSought" xlink:label="loc_ypf_LossContingentDamagesSought" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LossContingentDamagesSought" xml:lang="en-US">Loss Contingent Damages Sought</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LossContingentDamagesSought" xml:lang="en-US">Loss contingency damages sought</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LossContingentDamagesSought" xlink:to="lab_ypf_LossContingentDamagesSought" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LossContingentDamagesSought" xml:lang="en-US">Loss contingent damages sought.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodAxis" xlink:label="loc_ypf_PeriodAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PeriodAxis" xml:lang="en-US">Period [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PeriodAxis" xlink:to="lab_ypf_PeriodAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodDomain" xlink:label="loc_ypf_PeriodDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PeriodDomain" xml:lang="en-US">Period [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PeriodDomain" xlink:to="lab_ypf_PeriodDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsAxis" xlink:label="loc_ypf_ClaimsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClaimsAxis" xml:lang="en-US">Claims [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClaimsAxis" xlink:to="lab_ypf_ClaimsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClaimsAxis" xml:lang="en-US">Claims.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClaimsMember" xlink:label="loc_ypf_ClaimsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClaimsMember" xml:lang="en-US">Claims [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClaimsMember" xlink:to="lab_ypf_ClaimsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClaimsMember" xml:lang="en-US">Claims.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" xlink:label="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" xml:lang="en-US">Calculation of the Income Tax Expense Accrued [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" xlink:to="lab_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" xml:lang="en-US">Calculation of the income tax expense accrued.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxExpenseIncome" xlink:label="loc_ifrs-full_CurrentTaxExpenseIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentTaxExpenseIncome" xml:lang="en-US">Current tax expense (income)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_CurrentTaxExpenseIncome" xml:lang="en-US">Current income tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentTaxExpenseIncome" xlink:to="lab_ifrs-full_CurrentTaxExpenseIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxExpenseIncome" xlink:label="loc_ifrs-full_DeferredTaxExpenseIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DeferredTaxExpenseIncome" xml:lang="en-US">Deferred tax expense (income)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_DeferredTaxExpenseIncome" xml:lang="en-US">Deferred income tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DeferredTaxExpenseIncome" xlink:to="lab_ifrs-full_DeferredTaxExpenseIncome" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustedIncomeTaxExpenseBenefit" xlink:label="loc_ypf_AdjustedIncomeTaxExpenseBenefit" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustedIncomeTaxExpenseBenefit" xml:lang="en-US">Adjusted Income Tax Expense Benefit</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTotalLabel" xlink:label="lab_ypf_AdjustedIncomeTaxExpenseBenefit" xml:lang="en-US">Income tax (expense)/ benefit</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustedIncomeTaxExpenseBenefit" xlink:to="lab_ypf_AdjustedIncomeTaxExpenseBenefit" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustedIncomeTaxExpenseBenefit" xml:lang="en-US">Income tax (expense)/ benefit.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xlink:label="loc_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xml:lang="en-US">Regularization Plan Associated With Tax Loss Carryforwards Amount</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xml:lang="en-US">Regularization plan associated with the calculation of tax loss carryforwards</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xlink:to="lab_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xml:lang="en-US">Regularization Plan Associated With Tax Loss Carryforwards Amount.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract" xlink:label="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract" xml:lang="en-US">Reconciliation of accounting profit multiplied by applicable tax rates [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract" xlink:to="lab_ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ApplicableTaxRate" xlink:label="loc_ifrs-full_ApplicableTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ApplicableTaxRate" xml:lang="en-US">Applicable tax rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveLabel" xlink:label="lab_ifrs-full_ApplicableTaxRate" xml:lang="en-US">Average tax rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ApplicableTaxRate" xml:lang="en-US">General tax rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ApplicableTaxRate" xlink:to="lab_ifrs-full_ApplicableTaxRate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" xlink:label="loc_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" xml:lang="en-US">Tax expense (income) at applicable tax rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" xml:lang="en-US">Average tax rate applied to net profit or loss before income tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" xlink:to="lab_ifrs-full_TaxExpenseIncomeAtApplicableTaxRate" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xlink:label="loc_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xml:lang="en-US">Effect Of The Valuation Of Property Plant And Equipment And Intangible Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xml:lang="en-US">Effect of the valuation of property, plant and equipment, intangible assets and assets held for sale, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xlink:to="lab_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" xml:lang="en-US">Effect of the valuation of property plant And equipment and Intangible assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferences" xlink:label="loc_ypf_ExchangeDifferences" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExchangeDifferences" xml:lang="en-US">Exchange differences</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExchangeDifferences" xml:lang="en-US">Effect of exchange differences and other results relating to the valuation of the currency, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExchangeDifferences" xlink:to="lab_ypf_ExchangeDifferences" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExchangeDifferences" xml:lang="en-US">Exchange differences</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTheValuationOfInventories" xlink:label="loc_ypf_EffectOfTheValuationOfInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EffectOfTheValuationOfInventories" xml:lang="en-US">Effect Of The Valuation Of Inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_EffectOfTheValuationOfInventories" xml:lang="en-US">Effect of the valuation of inventories</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EffectOfTheValuationOfInventories" xlink:to="lab_ypf_EffectOfTheValuationOfInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EffectOfTheValuationOfInventories" xml:lang="en-US">Effect of the valuation of inventories.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InvestmentIncome" xlink:label="loc_ifrs-full_InvestmentIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InvestmentIncome" xml:lang="en-US">Investment income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InvestmentIncome" xml:lang="en-US">Income on investments in associates and joint ventures</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InvestmentIncome" xlink:to="lab_ifrs-full_InvestmentIncome" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxEffectFromChangeInTaxRate" xlink:label="loc_ifrs-full_TaxEffectFromChangeInTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TaxEffectFromChangeInTaxRate" xml:lang="en-US">Tax effect from change in tax rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_TaxEffectFromChangeInTaxRate" xml:lang="en-US">Effect of tax rate change</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TaxEffectFromChangeInTaxRate" xlink:to="lab_ifrs-full_TaxEffectFromChangeInTaxRate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" xlink:label="loc_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" xml:lang="en-US">Other tax effects for reconciliation between accounting profit and tax expense (income)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" xml:lang="en-US">Effect of application of indexation mechanisms</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" xlink:to="lab_ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousOtherOperatingIncomeExpense" xlink:label="loc_ypf_MiscellaneousOtherOperatingIncomeExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MiscellaneousOtherOperatingIncomeExpense" xml:lang="en-US">Miscellaneous other operating income expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MiscellaneousOtherOperatingIncomeExpense" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MiscellaneousOtherOperatingIncomeExpense" xlink:to="lab_ypf_MiscellaneousOtherOperatingIncomeExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MiscellaneousOtherOperatingIncomeExpense" xml:lang="en-US">Miscellaneous other operating income expense</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xlink:label="loc_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xml:lang="en-US">Tax Effect Of Regularization Plan Associated With Tax Loss Carryforwards Amount</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xml:lang="en-US">Regularization plan associated with the calculation of tax loss carryforwards</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xlink:to="lab_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" xml:lang="en-US">Tax effect of regularization plan associated with tax loss carryforwards amount.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfIncomeTaxLiabilityAbstract" xlink:label="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BreakdownOfIncomeTaxLiabilityAbstract" xml:lang="en-US">Breakdown of Income Tax Liability [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BreakdownOfIncomeTaxLiabilityAbstract" xlink:to="lab_ypf_BreakdownOfIncomeTaxLiabilityAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BreakdownOfIncomeTaxLiabilityAbstract" xml:lang="en-US">Breakdown of income tax liability.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentTaxLiabilities" xlink:label="loc_ifrs-full_CurrentTaxLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentTaxLiabilities" xml:lang="en-US">Current tax liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_CurrentTaxLiabilities" xml:lang="en-US">Income tax liability, current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentTaxLiabilities" xml:lang="en-US">Tax liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentTaxLiabilities" xlink:to="lab_ifrs-full_CurrentTaxLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownofincometaxliabilityTable" xlink:label="loc_ypf_BreakdownofincometaxliabilityTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BreakdownofincometaxliabilityTable" xml:lang="en-US">BreakdownOfIncomeTaxLiability [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BreakdownofincometaxliabilityTable" xlink:to="lab_ypf_BreakdownofincometaxliabilityTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BreakdownofincometaxliabilityTable" xml:lang="en-US">Breakdown of income tax liability.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RemainingInstallmentsOfTheRegimesMember" xlink:label="loc_ypf_RemainingInstallmentsOfTheRegimesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RemainingInstallmentsOfTheRegimesMember" xml:lang="en-US">Remaining Installments of the Regimes [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RemainingInstallmentsOfTheRegimesMember" xlink:to="lab_ypf_RemainingInstallmentsOfTheRegimesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RemainingInstallmentsOfTheRegimesMember" xml:lang="en-US">Remaining installments of the regimes.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" xlink:label="loc_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" xml:lang="en-US">Installments of the Regularization Regimes Associated with the Dispute Over the Cost Deduction for Hydrocarbon Well Abandonment [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" xlink:to="lab_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" xml:lang="en-US">Installments of the regularization regimes associated with the dispute over the cost deduction for hydrocarbon well abandonment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneAxis" xlink:label="loc_ypf_DetailsOneAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DetailsOneAxis" xml:lang="en-US">Details One [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DetailsOneAxis" xlink:to="lab_ypf_DetailsOneAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DetailsOneDomain" xlink:label="loc_ypf_DetailsOneDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DetailsOneDomain" xml:lang="en-US">Details One [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DetailsOneDomain" xlink:to="lab_ypf_DetailsOneDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsAxis" xlink:label="loc_ypf_InstalmentsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InstalmentsAxis" xml:lang="en-US">Instalments [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InstalmentsAxis" xlink:to="lab_ypf_InstalmentsAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstalmentsDomain" xlink:label="loc_ypf_InstalmentsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InstalmentsDomain" xml:lang="en-US">Instalments [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InstalmentsDomain" xlink:to="lab_ypf_InstalmentsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwelveInstalmentsMember" xlink:label="loc_ypf_TwelveInstalmentsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwelveInstalmentsMember" xml:lang="en-US">Twelve Instalments [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwelveInstalmentsMember" xlink:to="lab_ypf_TwelveInstalmentsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakDownOfIncomeTaxLiabilityLineItems" xlink:label="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BreakDownOfIncomeTaxLiabilityLineItems" xml:lang="en-US">Break down of income tax liability [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BreakDownOfIncomeTaxLiabilityLineItems" xlink:to="lab_ypf_BreakDownOfIncomeTaxLiabilityLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" xlink:label="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" xml:lang="en-US">Deferred tax assets and liabilities [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" xlink:to="lab_ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xml:lang="en-US">Disclosure of temporary difference, unused tax losses and unused tax credits [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xml:lang="en-US">Disclosure of temporary difference, unused tax losses and unused tax credits [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" xlink:to="lab_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xlink:label="loc_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xml:lang="en-US">Provisions And Other Non Deductible Liabilities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xml:lang="en-US">Provisions and Other Non Deductible Liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xlink:to="lab_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" xml:lang="en-US">Provisions and other non deductible liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousDeferredTaxAssetsMember" xlink:label="loc_ypf_MiscellaneousDeferredTaxAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MiscellaneousDeferredTaxAssetsMember" xml:lang="en-US">Miscellaneous Deferred Tax Assets [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_MiscellaneousDeferredTaxAssetsMember" xml:lang="en-US">Miscellaneous [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MiscellaneousDeferredTaxAssetsMember" xlink:to="lab_ypf_MiscellaneousDeferredTaxAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MiscellaneousDeferredTaxAssetsMember" xml:lang="en-US">Miscellaneous deferred tax assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" xlink:label="loc_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" xml:lang="en-US">Property plant and equipment and Assets held for sale [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" xlink:to="lab_ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousDeferredTaxLiabilitiesMember" xlink:label="loc_ypf_MiscellaneousDeferredTaxLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MiscellaneousDeferredTaxLiabilitiesMember" xml:lang="en-US">Miscellaneous Deferred Tax Liabilities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MiscellaneousDeferredTaxLiabilitiesMember" xml:lang="en-US">Miscellaneous Deferred Tax Liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MiscellaneousDeferredTaxLiabilitiesMember" xlink:to="lab_ypf_MiscellaneousDeferredTaxLiabilitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MiscellaneousDeferredTaxLiabilitiesMember" xml:lang="en-US">Miscellaneous deferred tax liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BreakdownOfDeferredTaxLineItems" xlink:label="loc_ypf_BreakdownOfDeferredTaxLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BreakdownOfDeferredTaxLineItems" xml:lang="en-US">Breakdown of Deferred Tax [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BreakdownOfDeferredTaxLineItems" xml:lang="en-US">Breakdown of deferred tax [line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BreakdownOfDeferredTaxLineItems" xlink:to="lab_ypf_BreakdownOfDeferredTaxLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BreakdownOfDeferredTaxLineItems" xml:lang="en-US">Breakdown of deferred tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxAssets" xlink:label="loc_ifrs-full_NetDeferredTaxAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NetDeferredTaxAssets" xml:lang="en-US">Net deferred tax assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NetDeferredTaxAssets" xml:lang="en-US">Total deferred tax assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NetDeferredTaxAssets" xlink:to="lab_ifrs-full_NetDeferredTaxAssets" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NetDeferredTaxLiabilities" xlink:label="loc_ifrs-full_NetDeferredTaxLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NetDeferredTaxLiabilities" xml:lang="en-US">Net deferred tax liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_NetDeferredTaxLiabilities" xml:lang="en-US">Total deferred tax liabilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NetDeferredTaxLiabilities" xlink:to="lab_ifrs-full_NetDeferredTaxLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DeferredTaxLiabilityAsset" xlink:label="loc_ifrs-full_DeferredTaxLiabilityAsset" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DeferredTaxLiabilityAsset" xml:lang="en-US">Deferred tax liability (asset)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTotalLabel" xlink:label="lab_ifrs-full_DeferredTaxLiabilityAsset" xml:lang="en-US">Total Net deferred tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DeferredTaxLiabilityAsset" xlink:to="lab_ifrs-full_DeferredTaxLiabilityAsset" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" xml:lang="en-US">Temporary difference, unused tax losses and unused tax credits [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" xml:lang="en-US">Temporary difference, unused tax losses and unused tax credits [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" xlink:to="lab_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xlink:label="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xml:lang="en-US">Temporary difference, unused tax losses and unused tax credits [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xml:lang="en-US">Temporary difference, unused tax losses and unused tax credits [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" xlink:to="lab_ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xlink:label="loc_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xml:lang="en-US">Tax Losses Carryforward And Other Tax Credits [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xml:lang="en-US">Tax loss carryforwards [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xlink:to="lab_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" xml:lang="en-US">Tax losses carryforward and other tax credits.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForTaxInflationMember" xlink:label="loc_ypf_AdjustmentForTaxInflationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentForTaxInflationMember" xml:lang="en-US">Adjustment For Tax Inflation [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdjustmentForTaxInflationMember" xml:lang="en-US">Adjustment For Tax Inflation [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentForTaxInflationMember" xlink:to="lab_ypf_AdjustmentForTaxInflationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentForTaxInflationMember" xml:lang="en-US">Adjustment for tax inflation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xlink:label="loc_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xml:lang="en-US">Temporary Difference Relating To Lease Liabilites [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xml:lang="en-US">Lease liabilities [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xlink:to="lab_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" xml:lang="en-US">Temporary difference relating to lease liabilites.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xlink:label="loc_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xml:lang="en-US">Temporary Difference Relating To Right Of Use Assets [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xml:lang="en-US">Right-of-use assets [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xlink:to="lab_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" xml:lang="en-US">Temporary difference relating to right of use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" xlink:label="loc_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" xml:lang="en-US">Property, plant and equipment, Intangible assets and Inventories [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" xml:lang="en-US">Property, plant and equipment, Assets held for sale, Intangible assets and Inventories [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" xlink:to="lab_ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xlink:label="loc_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xml:lang="en-US">Adjustment For Inflation Of The Opening Deferred Tax Of Companies With The Peso As Functional Currency</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xml:lang="en-US">Adjustment for inflation of the opening deferred tax of companies with the peso as functional currency</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xlink:to="lab_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" xml:lang="en-US">Adjustment for inflation of the opening deferred tax of companies with the peso as functional currency.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xlink:label="loc_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xml:lang="en-US">Translation Effect of Deferred Income Tax For Companies With A Functional Currency Other Than The Dollar</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xml:lang="en-US">Translation effect of deferred income tax for companies with a functional currency other than the dollar</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xlink:to="lab_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" xml:lang="en-US">Translation effect of deferred income tax for companies with a functional currency other than the dollar.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsAxis" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ImpairmentOfFinancialAssetsAxis" xml:lang="en-US">Impairment of financial assets [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ImpairmentOfFinancialAssetsAxis" xml:lang="en-US">Impairment of financial assets [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ImpairmentOfFinancialAssetsAxis" xlink:to="lab_ifrs-full_ImpairmentOfFinancialAssetsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ImpairmentOfFinancialAssetsDomain" xlink:label="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ImpairmentOfFinancialAssetsDomain" xml:lang="en-US">Impairment of financial assets [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ImpairmentOfFinancialAssetsDomain" xlink:to="lab_ifrs-full_ImpairmentOfFinancialAssetsDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:label="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xml:lang="en-US">Disclosure of temporary difference, unused tax losses and unused tax credits [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xml:lang="en-US">Disclosure of temporary difference, unused tax losses and unused tax credits [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" xlink:to="lab_ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountsOfDeferredTaxAssetsNotRecognised" xlink:label="loc_ypf_AmountsOfDeferredTaxAssetsNotRecognised" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountsOfDeferredTaxAssetsNotRecognised" xml:lang="en-US">Amounts Of Deferred Tax Assets Not Recognised</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AmountsOfDeferredTaxAssetsNotRecognised" xml:lang="en-US">Amounts of deferred tax assets not recognised</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountsOfDeferredTaxAssetsNotRecognised" xlink:to="lab_ypf_AmountsOfDeferredTaxAssetsNotRecognised" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountsOfDeferredTaxAssetsNotRecognised" xml:lang="en-US">Amounts of deferred tax assets not recognised.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecognizedTaxLossesCarryforward" xlink:label="loc_ypf_RecognizedTaxLossesCarryforward" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RecognizedTaxLossesCarryforward" xml:lang="en-US">Recognized Tax Losses Carryforward</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RecognizedTaxLossesCarryforward" xml:lang="en-US">Recognized tax losses carryforward</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RecognizedTaxLossesCarryforward" xlink:to="lab_ypf_RecognizedTaxLossesCarryforward" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RecognizedTaxLossesCarryforward" xml:lang="en-US">Recognized tax losses carryforward.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanAxis" xlink:label="loc_ypf_NameOfPlanAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NameOfPlanAxis" xml:lang="en-US">Name Of Plan [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NameOfPlanAxis" xml:lang="en-US">Name of plan [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NameOfPlanAxis" xlink:to="lab_ypf_NameOfPlanAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NameOfPlanAxis" xml:lang="en-US">Name of plan.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NameOfPlanMember" xlink:label="loc_ypf_NameOfPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NameOfPlanMember" xml:lang="en-US">Name Of Plan [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NameOfPlanMember" xml:lang="en-US">Name of plan [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NameOfPlanMember" xlink:to="lab_ypf_NameOfPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NameOfPlanMember" xml:lang="en-US">Name of plan.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearAxis" xlink:label="loc_ypf_TaxYearAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxYearAxis" xml:lang="en-US">Tax Year [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxYearAxis" xlink:to="lab_ypf_TaxYearAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxYearAxis" xml:lang="en-US">Tax year.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxYearMember" xlink:label="loc_ypf_TaxYearMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxYearMember" xml:lang="en-US">Tax Year [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxYearMember" xlink:to="lab_ypf_TaxYearMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxYearMember" xml:lang="en-US">Tax year.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" xlink:label="loc_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" xml:lang="en-US">Year Two Thousand And Twenty Nine and Year Two Thousand And Thirty [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" xml:lang="en-US">2029 and 2030 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" xlink:to="lab_ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableAbstract" xlink:label="loc_ypf_DisclosureOfTaxesPayableAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTaxesPayableAbstract" xml:lang="en-US">Disclosure of Taxes Payable [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTaxesPayableAbstract" xlink:to="lab_ypf_DisclosureOfTaxesPayableAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTaxesPayableAbstract" xml:lang="en-US">Disclosure of taxes payable [Abstract].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableTable" xlink:label="loc_ypf_DisclosureOfTaxesPayableTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTaxesPayableTable" xml:lang="en-US">Disclosure of Taxes Payable [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTaxesPayableTable" xlink:to="lab_ypf_DisclosureOfTaxesPayableTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTaxesPayableTable" xml:lang="en-US">Disclosure of taxes Payable [Table].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeAxis" xlink:label="loc_ypf_TaxesByTypeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxesByTypeAxis" xml:lang="en-US">Taxes by Type [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxesByTypeAxis" xlink:to="lab_ypf_TaxesByTypeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxesByTypeAxis" xml:lang="en-US">Taxes by type (Axis).</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxesByTypeDomain" xlink:label="loc_ypf_TaxesByTypeDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxesByTypeDomain" xml:lang="en-US">Taxes by Type [Domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TaxesByTypeDomain" xml:lang="en-US">Taxes by Type [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxesByTypeDomain" xlink:to="lab_ypf_TaxesByTypeDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxesByTypeDomain" xml:lang="en-US">Taxes by type (Domin).</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IvaMember" xlink:label="loc_ypf_IvaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IvaMember" xml:lang="en-US">IVA [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IvaMember" xml:lang="en-US">VAT [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IvaMember" xlink:to="lab_ypf_IvaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IvaMember" xml:lang="en-US">IVA [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WithholdingsAndPerceptionsMember" xlink:label="loc_ypf_WithholdingsAndPerceptionsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_WithholdingsAndPerceptionsMember" xml:lang="en-US">Withholdings and Perceptions [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_WithholdingsAndPerceptionsMember" xml:lang="en-US">Withholdings and Perceptions [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_WithholdingsAndPerceptionsMember" xlink:to="lab_ypf_WithholdingsAndPerceptionsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_WithholdingsAndPerceptionsMember" xml:lang="en-US">Withholdings and perceptions [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RoyaltiesMember" xlink:label="loc_ypf_RoyaltiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RoyaltiesMember" xml:lang="en-US">Royalties [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RoyaltiesMember" xml:lang="en-US">Royalties [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RoyaltiesMember" xlink:to="lab_ypf_RoyaltiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RoyaltiesMember" xml:lang="en-US">Royalties [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FuelsTaxMember" xlink:label="loc_ypf_FuelsTaxMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FuelsTaxMember" xml:lang="en-US">Fuels Tax [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_FuelsTaxMember" xml:lang="en-US">Fuels tax [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FuelsTaxMember" xlink:to="lab_ypf_FuelsTaxMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FuelsTaxMember" xml:lang="en-US">Fuels tax [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousMember" xlink:label="loc_ypf_MiscellaneousMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MiscellaneousMember" xml:lang="en-US">Miscellaneous [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MiscellaneousMember" xml:lang="en-US">Miscellaneous [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MiscellaneousMember" xlink:to="lab_ypf_MiscellaneousMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MiscellaneousMember" xml:lang="en-US">Miscellaneous [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TurnoverTaxPayableMember" xlink:label="loc_ypf_TurnoverTaxPayableMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TurnoverTaxPayableMember" xml:lang="en-US">Turnover Tax Payable [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TurnoverTaxPayableMember" xml:lang="en-US">Turnover tax [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TurnoverTaxPayableMember" xlink:to="lab_ypf_TurnoverTaxPayableMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TurnoverTaxPayableMember" xml:lang="en-US">Turnover tax payable [Member].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfTaxesPayableLineItems" xlink:label="loc_ypf_DisclosureOfTaxesPayableLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfTaxesPayableLineItems" xml:lang="en-US">Disclosure of Taxes Payable [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfTaxesPayableLineItems" xlink:to="lab_ypf_DisclosureOfTaxesPayableLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfTaxesPayableLineItems" xml:lang="en-US">Disclosure of taxes payable [Line Items].</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityPayablesCurrent" xlink:label="loc_ypf_SalariesAndSocialSecurityPayablesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SalariesAndSocialSecurityPayablesCurrent" xml:lang="en-US">Salaries And Social Security Payables Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SalariesAndSocialSecurityPayablesCurrent" xml:lang="en-US">Salaries and social security current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SalariesAndSocialSecurityPayablesCurrent" xlink:to="lab_ypf_SalariesAndSocialSecurityPayablesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SalariesAndSocialSecurityPayablesCurrent" xml:lang="en-US">Salaries and social security, payables, current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BonusesAndIncentivesProvisionCurrent" xlink:label="loc_ypf_BonusesAndIncentivesProvisionCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BonusesAndIncentivesProvisionCurrent" xml:lang="en-US">Bonuses And Incentives Provision Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BonusesAndIncentivesProvisionCurrent" xml:lang="en-US">Bonuses and incentives provision current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BonusesAndIncentivesProvisionCurrent" xlink:to="lab_ypf_BonusesAndIncentivesProvisionCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BonusesAndIncentivesProvisionCurrent" xml:lang="en-US">Bonuses and incentives provision, current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VacationProvisionCurrent" xlink:label="loc_ypf_VacationProvisionCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VacationProvisionCurrent" xml:lang="en-US">Vacation Provision Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_VacationProvisionCurrent" xml:lang="en-US">Vacation provision current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VacationProvisionCurrent" xlink:to="lab_ypf_VacationProvisionCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VacationProvisionCurrent" xml:lang="en-US">Vacation provision, current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xlink:label="loc_ypf_NonCurrentCashSettledSharebasedPaymentsProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xml:lang="en-US">Non Current Cash Settled ShareBased Payments Provision</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xml:lang="en-US">Cash-settled share-based payments provision non current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xlink:to="lab_ypf_NonCurrentCashSettledSharebasedPaymentsProvision" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NonCurrentCashSettledSharebasedPaymentsProvision" xml:lang="en-US">non-current cash settled share-based payments provision.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForSeveranceIndemnitiesCurrent" xlink:label="loc_ypf_ProvisionForSeveranceIndemnitiesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForSeveranceIndemnitiesCurrent" xml:lang="en-US">Provision For Severance Indemnities Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForSeveranceIndemnitiesCurrent" xml:lang="en-US">Provision for severance indemnities current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForSeveranceIndemnitiesCurrent" xlink:to="lab_ypf_ProvisionForSeveranceIndemnitiesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForSeveranceIndemnitiesCurrent" xml:lang="en-US">provision for severance indemnities current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" xlink:label="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" xml:lang="en-US">Other Miscellaneous Salaries And Social Security Payables Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" xlink:to="lab_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" xml:lang="en-US">Other miscellaneous salaries and social security payables current</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" xlink:label="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" xml:lang="en-US">Other Miscellaneous Salaries And Social Security Payables Non Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" xlink:to="lab_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" xml:lang="en-US">Other miscellaneous salaries and social security payables non current</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xlink:label="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xml:lang="en-US">Disclosure Of Quantitative Information About Lease Liabilities [Table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xml:lang="en-US">Disclosure of quantitative information about lease liabilities [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xlink:to="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" xml:lang="en-US">Disclosure of quantitative information about lease liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xlink:label="loc_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xml:lang="en-US">Later Than Five Years And Not Later Than Nine Years [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xml:lang="en-US">5 to 9 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xlink:to="lab_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" xml:lang="en-US">Later than five years and not Later than nine years.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaterThanNineYearsMember" xlink:label="loc_ypf_LaterThanNineYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaterThanNineYearsMember" xml:lang="en-US">Later Than Nine Years [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaterThanNineYearsMember" xml:lang="en-US">More than 9 years [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaterThanNineYearsMember" xlink:to="lab_ypf_LaterThanNineYearsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LaterThanNineYearsMember" xml:lang="en-US">Later than nine years.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xlink:label="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xml:lang="en-US">Disclosure Of Quantitative Information About Lease Liabilities [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xml:lang="en-US">Disclosure of quantitative information about lease liabilities [line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xlink:to="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" xml:lang="en-US">Disclosure of quantitative information about lease liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:label="loc_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xml:lang="en-US">Weighted average lessee's incremental borrowing rate applied to lease liabilities recognised at date of initial application of IFRS 16</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xml:lang="en-US">Effective&#160;average&#160;monthly&#160;rate&#160;used</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" xlink:to="lab_ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LeaseLiabilities" xlink:label="loc_ifrs-full_LeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LeaseLiabilities" xml:lang="en-US">Lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LeaseLiabilities" xml:lang="en-US">Lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_LeaseLiabilities" xml:lang="en-US">Balance at the beginning of the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_LeaseLiabilities" xml:lang="en-US">Balance at the end of year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LeaseLiabilities" xlink:to="lab_ifrs-full_LeaseLiabilities" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xlink:label="loc_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xml:lang="en-US">Interest Expenses On Lease Liabilities Incurred</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xml:lang="en-US">Financial expenses resulting from lease contracts</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xml:lang="en-US">Financial accretions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xlink:to="lab_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InterestExpensesOnLeaseLiabilitiesIncurred" xml:lang="en-US">Interest expenses on lease liabilities incurred.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:label="loc_ifrs-full_InterestExpenseOnLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestExpenseOnLeaseLiabilities" xml:lang="en-US">Interest expense on lease liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InterestExpenseOnLeaseLiabilities" xml:lang="en-US">Financial expenses on leases included in Financial Accreation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestExpenseOnLeaseLiabilities" xlink:to="lab_ifrs-full_InterestExpenseOnLeaseLiabilities" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestCostsCapitalised" xlink:label="loc_ifrs-full_InterestCostsCapitalised" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestCostsCapitalised" xml:lang="en-US">Interest costs capitalised</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InterestCostsCapitalised" xml:lang="en-US">Financial expenses on leases capitalized in Property, plant and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestCostsCapitalised" xlink:to="lab_ifrs-full_InterestCostsCapitalised" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" xlink:label="loc_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" xml:lang="en-US">Total charges recorded in comprehensive income and capitalizations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" xlink:to="lab_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" xml:lang="en-US">Total charges recorded in comprehensive income and capitalizations.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionsToLeaseLiabilities" xlink:label="loc_ypf_AdditionsToLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdditionsToLeaseLiabilities" xml:lang="en-US">Additions To Lease Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdditionsToLeaseLiabilities" xml:lang="en-US">Increases of leases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdditionsToLeaseLiabilities" xlink:to="lab_ypf_AdditionsToLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdditionsToLeaseLiabilities" xml:lang="en-US">Additions to lease liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DeletionsToLeaseLiabilities" xlink:label="loc_ypf_DeletionsToLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DeletionsToLeaseLiabilities" xml:lang="en-US">Deletions To Lease Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_DeletionsToLeaseLiabilities" xml:lang="en-US">Decreases of leases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DeletionsToLeaseLiabilities" xlink:to="lab_ypf_DeletionsToLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DeletionsToLeaseLiabilities" xml:lang="en-US">Deletions to lease liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CashOutflowForLeases" xlink:label="loc_ifrs-full_CashOutflowForLeases" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CashOutflowForLeases" xml:lang="en-US">Cash outflow for leases</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_CashOutflowForLeases" xml:lang="en-US">Payments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CashOutflowForLeases" xlink:to="lab_ifrs-full_CashOutflowForLeases" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" xlink:label="loc_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" xml:lang="en-US">Increase Decrease Through Net Monetary Position Lease Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" xml:lang="en-US">Result from net monetary position</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" xlink:to="lab_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" xml:lang="en-US">Increase decrease through net monetary position, lease liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xml:lang="en-US">Disclosure of detailed information about loans [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xlink:to="lab_ypf_DisclosureOfDetailedInformationAboutLoansAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansAbstract" xml:lang="en-US">Disclosure of detailed information about loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xml:lang="en-US">Disclosure of detailed information about borrowings [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xml:lang="en-US">Disclosure of detailed information about borrowings [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" xlink:to="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameAxis" xlink:label="loc_ifrs-full_BorrowingsByNameAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingsByNameAxis" xml:lang="en-US">Borrowings by name [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BorrowingsByNameAxis" xml:lang="en-US">Borrowings by name [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingsByNameAxis" xlink:to="lab_ifrs-full_BorrowingsByNameAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsByNameDomain" xlink:label="loc_ifrs-full_BorrowingsByNameDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingsByNameDomain" xml:lang="en-US">Borrowings by name [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BorrowingsByNameDomain" xml:lang="en-US">Borrowings by name [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingsByNameDomain" xlink:to="lab_ifrs-full_BorrowingsByNameDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPreFinancingMember" xlink:label="loc_ypf_ExportPreFinancingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportPreFinancingMember" xml:lang="en-US">Export Pre financing [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ExportPreFinancingMember" xml:lang="en-US">Export pre-financing [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportPreFinancingMember" xml:lang="en-US">Export Pre financing [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportPreFinancingMember" xlink:to="lab_ypf_ExportPreFinancingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportPreFinancingMember" xml:lang="en-US">Export pre-financing.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsMember" xlink:label="loc_ypf_NegotiableObligationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegotiableObligationsMember" xml:lang="en-US">Negotiable Obligations [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NegotiableObligationsMember" xml:lang="en-US">Negotiable obligations [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegotiableObligationsMember" xlink:to="lab_ypf_NegotiableObligationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegotiableObligationsMember" xml:lang="en-US">Negotiable obligations.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccountOverdraftMember" xlink:label="loc_ypf_AccountOverdraftMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccountOverdraftMember" xml:lang="en-US">Account Overdraft [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccountOverdraftMember" xml:lang="en-US">Account Overdraft [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccountOverdraftMember" xlink:to="lab_ypf_AccountOverdraftMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccountOverdraftMember" xml:lang="en-US">Account overdraft.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportsFinancingMember" xlink:label="loc_ypf_ImportsFinancingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ImportsFinancingMember" xml:lang="en-US">Imports Financing [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ImportsFinancingMember" xml:lang="en-US">Imports Financing [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ImportsFinancingMember" xlink:to="lab_ypf_ImportsFinancingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ImportsFinancingMember" xml:lang="en-US">Imports financing.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialLoansMember" xlink:label="loc_ypf_FinancialLoansMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialLoansMember" xml:lang="en-US">Financial Loans [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinancialLoansMember" xml:lang="en-US">Financial loans [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialLoansMember" xlink:to="lab_ypf_FinancialLoansMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StockMarketPromissoryNotesMember" xlink:label="loc_ypf_StockMarketPromissoryNotesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StockMarketPromissoryNotesMember" xml:lang="en-US">Stock Market Promissory Notes [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_StockMarketPromissoryNotesMember" xml:lang="en-US">Stock market promissory notes [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StockMarketPromissoryNotesMember" xlink:to="lab_ypf_StockMarketPromissoryNotesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.sec.gov/currency/2025/currency-2025.xsd#currency_ARS" xlink:label="loc_currency_ARS" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_currency_ARS" xml:lang="en-US">Argentina, Pesos</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_currency_ARS" xml:lang="en-US">Argentine pesos [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_currency_ARS" xlink:to="lab_currency_ARS" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_OtherCurrencyMember" xlink:label="loc_srt_OtherCurrencyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_OtherCurrencyMember" xml:lang="en-US">Other Currency [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_OtherCurrencyMember" xml:lang="en-US">Currencies other than Argentine pesos [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_OtherCurrencyMember" xlink:to="lab_srt_OtherCurrencyMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:label="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xml:lang="en-US">Disclosure of detailed information about borrowings [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xml:lang="en-US">Disclosure of detailed information about borrowings [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" xlink:to="lab_ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsInterestRate" xlink:label="loc_ifrs-full_BorrowingsInterestRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingsInterestRate" xml:lang="en-US">Borrowings, interest rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BorrowingsInterestRate" xml:lang="en-US">Interest rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_BorrowingsInterestRate" xml:lang="en-US">Borrowings interest rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingsInterestRate" xlink:to="lab_ifrs-full_BorrowingsInterestRate" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_BorrowingsMaturity" xlink:label="loc_ifrs-full_BorrowingsMaturity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_BorrowingsMaturity" xml:lang="en-US">Borrowings, maturity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_BorrowingsMaturity" xml:lang="en-US">Maturity Year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_BorrowingsMaturity" xml:lang="en-US">Borrowings maturity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_BorrowingsMaturity" xlink:to="lab_ifrs-full_BorrowingsMaturity" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsRepurchased" xlink:label="loc_ypf_NegotiableObligationsRepurchased" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegotiableObligationsRepurchased" xml:lang="en-US">Negotiable Obligations Repurchased</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NegotiableObligationsRepurchased" xml:lang="en-US">Repurchase of negotiable obligations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegotiableObligationsRepurchased" xlink:to="lab_ypf_NegotiableObligationsRepurchased" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegotiableObligationsRepurchased" xml:lang="en-US">Negotiable obligations repurchased.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_Borrowings" xlink:label="loc_ifrs-full_Borrowings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_Borrowings" xml:lang="en-US">Borrowings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_Borrowings" xml:lang="en-US">Loans accrued</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_Borrowings" xml:lang="en-US">Balance at beginning of the year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_Borrowings" xml:lang="en-US">Balance at the end of the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_Borrowings" xlink:to="lab_ifrs-full_Borrowings" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableObligationsCancelled" xlink:label="loc_ypf_NegotiableObligationsCancelled" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegotiableObligationsCancelled" xml:lang="en-US">Negotiable Obligations Cancelled</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NegotiableObligationsCancelled" xml:lang="en-US">Cancellation of negotiable obligations in Argentine pesos</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegotiableObligationsCancelled" xlink:to="lab_ypf_NegotiableObligationsCancelled" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegotiableObligationsCancelled" xml:lang="en-US">Negotiable obligations cancelled.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansGranted" xlink:label="loc_ypf_LoansGranted" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LoansGranted" xml:lang="en-US">Loans Granted</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LoansGranted" xml:lang="en-US">Loans granted</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LoansGranted" xlink:to="lab_ypf_LoansGranted" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LoansGranted" xml:lang="en-US">Loans granted.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccruedInterestOnGroupLoans" xlink:label="loc_ypf_AccruedInterestOnGroupLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccruedInterestOnGroupLoans" xml:lang="en-US">Accrued Interest On Group Loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccruedInterestOnGroupLoans" xml:lang="en-US">Accrued interest</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccruedInterestOnGroupLoans" xlink:to="lab_ypf_AccruedInterestOnGroupLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccruedInterestOnGroupLoans" xml:lang="en-US">Accrued interest on group loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" xlink:label="loc_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" xml:lang="en-US">Exchange Differences And Translation On Group Loans Net Of Tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" xml:lang="en-US">Net exchange and translation differences</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" xlink:to="lab_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" xml:lang="en-US">Exchange differences and translation on group loans net of tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GainsLossesOnNetMonetaryPosition" xlink:label="loc_ifrs-full_GainsLossesOnNetMonetaryPosition" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GainsLossesOnNetMonetaryPosition" xml:lang="en-US">Gains (losses) on net monetary position</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GainsLossesOnNetMonetaryPosition" xml:lang="en-US">Result from net monetary position</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GainsLossesOnNetMonetaryPosition" xlink:to="lab_ifrs-full_GainsLossesOnNetMonetaryPosition" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BorrowingsReclassifications" xlink:label="loc_ypf_BorrowingsReclassifications" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BorrowingsReclassifications" xml:lang="en-US">Borrowings Reclassifications</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BorrowingsReclassifications" xml:lang="en-US">Reclassifications</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BorrowingsReclassifications" xlink:to="lab_ypf_BorrowingsReclassifications" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BorrowingsReclassifications" xml:lang="en-US">Borrowings reclassifications.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesOfBorrowingDueToBusinessCombination" xlink:label="loc_ypf_IncreasesOfBorrowingDueToBusinessCombination" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreasesOfBorrowingDueToBusinessCombination" xml:lang="en-US">Increases Of Borrowing Due To Business Combination</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreasesOfBorrowingDueToBusinessCombination" xml:lang="en-US">Increases from business combinations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreasesOfBorrowingDueToBusinessCombination" xlink:to="lab_ypf_IncreasesOfBorrowingDueToBusinessCombination" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreasesOfBorrowingDueToBusinessCombination" xml:lang="en-US">Increases of borrowing due to business combination</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansTable" xml:lang="en-US">Disclosure of detailed information about loans [Table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansTable" xml:lang="en-US">Disclosure of detailed information about loans [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansTable" xlink:to="lab_ypf_DisclosureOfDetailedInformationAboutLoansTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansTable" xml:lang="en-US">Disclosure of detailed information about loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirteenMember" xlink:label="loc_ypf_ClassThirteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirteenMember" xml:lang="en-US">Class Thirteen [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirteenMember" xml:lang="en-US">Class XIII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirteenMember" xlink:to="lab_ypf_ClassThirteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirteenMember" xml:lang="en-US">Class thirteen.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassSeventeenMember" xlink:label="loc_ypf_ClassSeventeenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassSeventeenMember" xml:lang="en-US">Class Seventeen [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassSeventeenMember" xml:lang="en-US">Class XVII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassSeventeenMember" xlink:to="lab_ypf_ClassSeventeenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassSeventeenMember" xml:lang="en-US">Class seventeen.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyMember" xlink:label="loc_ypf_ClassTwentyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyMember" xml:lang="en-US">Class Twenty [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyMember" xml:lang="en-US">Class XX [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyMember" xlink:to="lab_ypf_ClassTwentyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyMember" xml:lang="en-US">Class twenty.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyNineMember" xlink:label="loc_ypf_ClassTwentyNineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyNineMember" xml:lang="en-US">Class Twenty Nine [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyNineMember" xml:lang="en-US">Class XXIX [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyNineMember" xlink:to="lab_ypf_ClassTwentyNineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyNineMember" xml:lang="en-US">Class twenty nine.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyFourMember" xlink:label="loc_ypf_ClassThirtyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyFourMember" xml:lang="en-US">Class Thirty Four [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyFourMember" xml:lang="en-US">Class XXXIV [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyFourMember" xlink:to="lab_ypf_ClassThirtyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtyFourMember" xml:lang="en-US">Class thirty four.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyFiveMember" xlink:label="loc_ypf_ClassThirtyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyFiveMember" xml:lang="en-US">Class Thirty Five [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyFiveMember" xml:lang="en-US">Class XXXV [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyFiveMember" xlink:to="lab_ypf_ClassThirtyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtyFiveMember" xml:lang="en-US">Class thirty five.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtySixMember" xlink:label="loc_ypf_ClassThirtySixMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtySixMember" xml:lang="en-US">Class Thirty Six [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtySixMember" xml:lang="en-US">Class XXXVI [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtySixMember" xlink:to="lab_ypf_ClassThirtySixMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtySixMember" xml:lang="en-US">Class thirty six.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtySevenMember" xlink:label="loc_ypf_ClassThirtySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtySevenMember" xml:lang="en-US">Class Thirty Seven [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtySevenMember" xml:lang="en-US">Class XXXVII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtySevenMember" xlink:to="lab_ypf_ClassThirtySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtySevenMember" xml:lang="en-US">Class thirty seven.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyEightMember" xlink:label="loc_ypf_ClassThirtyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyEightMember" xml:lang="en-US">Class Thirty Eight [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyEightMember" xml:lang="en-US">Class XXXVIII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyEightMember" xlink:to="lab_ypf_ClassThirtyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtyEightMember" xml:lang="en-US">Class thirty eight.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyMember" xlink:label="loc_ypf_ClassFortyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassFortyMember" xml:lang="en-US">Class Forty [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassFortyMember" xml:lang="en-US">Class XL [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassFortyMember" xlink:to="lab_ypf_ClassFortyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassFortyMember" xml:lang="en-US">Class forty.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyOneMember" xlink:label="loc_ypf_ClassFortyOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassFortyOneMember" xml:lang="en-US">Class Forty One [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassFortyOneMember" xml:lang="en-US">Class XLI [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassFortyOneMember" xlink:to="lab_ypf_ClassFortyOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassFortyOneMember" xml:lang="en-US">Class forty one.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFortyTwoMember" xlink:label="loc_ypf_ClassFortyTwoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassFortyTwoMember" xml:lang="en-US">Class Forty Two [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassFortyTwoMember" xml:lang="en-US">Class XLII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassFortyTwoMember" xlink:to="lab_ypf_ClassFortyTwoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassFortyTwoMember" xml:lang="en-US">Class forty two.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassNineteenMember" xlink:label="loc_ypf_ClassNineteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassNineteenMember" xml:lang="en-US">Class Nineteen [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassNineteenMember" xml:lang="en-US">Class XIX [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassNineteenMember" xlink:to="lab_ypf_ClassNineteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassNineteenMember" xml:lang="en-US">Class nineteen.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyTwoMember" xlink:label="loc_ypf_ClassTwentyTwoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyTwoMember" xml:lang="en-US">Class Twenty Two [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyTwoMember" xml:lang="en-US">Class XXII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyTwoMember" xlink:to="lab_ypf_ClassTwentyTwoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyTwoMember" xml:lang="en-US">Class twenty two.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyFourMember" xlink:label="loc_ypf_ClassTwentyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyFourMember" xml:lang="en-US">Class Twenty Four [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyFourMember" xml:lang="en-US">Class XXIV [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyFourMember" xlink:to="lab_ypf_ClassTwentyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyFourMember" xml:lang="en-US">Class twenty four.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentySixMember" xlink:label="loc_ypf_ClassTwentySixMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentySixMember" xml:lang="en-US">Class Twenty Six[member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentySixMember" xml:lang="en-US">Class XXVI [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentySixMember" xlink:to="lab_ypf_ClassTwentySixMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentySixMember" xml:lang="en-US">Class twenty six.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyEightMember" xlink:label="loc_ypf_ClassTwentyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyEightMember" xml:lang="en-US">Class Twenty Eight [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyEightMember" xml:lang="en-US">Class XXVIII [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyEightMember" xlink:to="lab_ypf_ClassTwentyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyEightMember" xml:lang="en-US">Class twenty eight.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyThreeMember" xlink:label="loc_ypf_ClassThirtyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyThreeMember" xml:lang="en-US">Class Thirty Three [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyThreeMember" xml:lang="en-US">Class XXXIII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyThreeMember" xlink:to="lab_ypf_ClassThirtyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtyThreeMember" xml:lang="en-US">Class thirty three.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyNineMember" xlink:label="loc_ypf_ClassThirtyNineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyNineMember" xml:lang="en-US">Class Thirty Nine [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyNineMember" xml:lang="en-US">Class XXXIX [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyNineMember" xlink:to="lab_ypf_ClassThirtyNineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassThirtyNineMember" xml:lang="en-US">Class thirty nine.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFiftyThreeMember" xlink:label="loc_ypf_ClassFiftyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassFiftyThreeMember" xml:lang="en-US">Class fifty three [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassFiftyThreeMember" xml:lang="en-US">Class LIII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassFiftyThreeMember" xlink:to="lab_ypf_ClassFiftyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassFiftyThreeMember" xml:lang="en-US">Class fifty three [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassFiftyFourMember" xlink:label="loc_ypf_ClassFiftyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassFiftyFourMember" xml:lang="en-US">Class fifty four [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassFiftyFourMember" xml:lang="en-US">Class LIV [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassFiftyFourMember" xlink:to="lab_ypf_ClassFiftyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassFiftyFourMember" xml:lang="en-US">Class fifty four [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOneMember" xlink:label="loc_ypf_ClassOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassOneMember" xml:lang="en-US">Class One [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassOneMember" xml:lang="en-US">Class I [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassOneMember" xlink:to="lab_ypf_ClassOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassOneMember" xml:lang="en-US">Class One.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassEighteenMember" xlink:label="loc_ypf_ClassEighteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassEighteenMember" xml:lang="en-US">Class Eighteen [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassEighteenMember" xml:lang="en-US">Class XVIII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassEighteenMember" xlink:to="lab_ypf_ClassEighteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassEighteenMember" xml:lang="en-US">Class eighteen member.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassSixteenMember" xlink:label="loc_ypf_ClassSixteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassSixteenMember" xml:lang="en-US">Class Sixteen [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassSixteenMember" xml:lang="en-US">Class XVI [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassSixteenMember" xlink:to="lab_ypf_ClassSixteenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassSixteenMember" xml:lang="en-US">Class sixteen member.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyOneMember" xlink:label="loc_ypf_ClassTwentyOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyOneMember" xml:lang="en-US">Class Twenty One [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyOneMember" xml:lang="en-US">Class XXI [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyOneMember" xlink:to="lab_ypf_ClassTwentyOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyOneMember" xml:lang="en-US">Class twenty one.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyThreeMember" xlink:label="loc_ypf_ClassTwentyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyThreeMember" xml:lang="en-US">Class Twenty Three [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyThreeMember" xml:lang="en-US">Class XXIII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyThreeMember" xlink:to="lab_ypf_ClassTwentyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyThreeMember" xml:lang="en-US">Class twenty three.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentyFiveMember" xlink:label="loc_ypf_ClassTwentyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentyFiveMember" xml:lang="en-US">Class Twenty Five [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassTwentyFiveMember" xml:lang="en-US">Class XXV [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentyFiveMember" xlink:to="lab_ypf_ClassTwentyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentyFiveMember" xml:lang="en-US">Class twenty five.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassTwentySevenMember" xlink:label="loc_ypf_ClassTwentySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassTwentySevenMember" xml:lang="en-US">Class Twenty Seven [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ClassTwentySevenMember" xml:lang="en-US">Class XXVII [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassTwentySevenMember" xlink:to="lab_ypf_ClassTwentySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassTwentySevenMember" xml:lang="en-US">Class twenty seven.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyMember" xlink:label="loc_ypf_ClassThirtyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyMember" xml:lang="en-US">Class Thirty [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyMember" xml:lang="en-US">Class XXX [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyMember" xlink:to="lab_ypf_ClassThirtyMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyOneMember" xlink:label="loc_ypf_ClassThirtyOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyOneMember" xml:lang="en-US">Class Thirty One [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyOneMember" xml:lang="en-US">Class&#160;XXXI [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyOneMember" xlink:to="lab_ypf_ClassThirtyOneMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassThirtyTwoMember" xlink:label="loc_ypf_ClassThirtyTwoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassThirtyTwoMember" xml:lang="en-US">Class Thirty Two [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassThirtyTwoMember" xml:lang="en-US">Class XXXII [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassThirtyTwoMember" xlink:to="lab_ypf_ClassThirtyTwoMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xml:lang="en-US">Disclosure of detailed information about loans [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xml:lang="en-US">Disclosure of detailed information about loans [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xml:lang="en-US">Disclosure of detailed information about loans [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xlink:to="lab_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationAboutLoansLineItems" xml:lang="en-US">Disclosure of detailed information about loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Loans" xlink:label="loc_ypf_Loans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Loans" xml:lang="en-US">Loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_Loans" xml:lang="en-US">Principal value</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Loans" xlink:to="lab_ypf_Loans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Loans" xml:lang="en-US">The amount of outstanding funds that the entity is obligated to repay.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansInterestRate" xlink:label="loc_ypf_LoansInterestRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LoansInterestRate" xml:lang="en-US">Loans interest rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LoansInterestRate" xml:lang="en-US">Interest rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LoansInterestRate" xlink:to="lab_ypf_LoansInterestRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LoansInterestRate" xml:lang="en-US">The interest rate on loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LoansMaturity" xlink:label="loc_ypf_LoansMaturity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LoansMaturity" xml:lang="en-US">Loans Maturity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_LoansMaturity" xml:lang="en-US">Principal Maturity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LoansMaturity" xlink:to="lab_ypf_LoansMaturity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LoansMaturity" xml:lang="en-US">The maturity of loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoncurrentLoans" xlink:label="loc_ypf_NoncurrentLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NoncurrentLoans" xml:lang="en-US">Noncurrent loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/positiveTerseLabel" xlink:label="lab_ypf_NoncurrentLoans" xml:lang="en-US">Non-current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NoncurrentLoans" xlink:to="lab_ypf_NoncurrentLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NoncurrentLoans" xml:lang="en-US">The non-current portion of non-current loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CurrentLoans" xlink:label="loc_ypf_CurrentLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CurrentLoans" xml:lang="en-US">Current loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CurrentLoans" xml:lang="en-US">Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CurrentLoans" xlink:to="lab_ypf_CurrentLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CurrentLoans" xml:lang="en-US">The amount of current loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFourteenSeptemberMember" xlink:label="loc_ypf_TwoThousandFourteenSeptemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandFourteenSeptemberMember" xml:lang="en-US">Two Thousand Fourteen September [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandFourteenSeptemberMember" xml:lang="en-US">2014 September [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandFourteenSeptemberMember" xlink:to="lab_ypf_TwoThousandFourteenSeptemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandFourteenSeptemberMember" xml:lang="en-US">Two thousand fourteen September.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFifteenAprilMember" xlink:label="loc_ypf_TwoThousandFifteenAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandFifteenAprilMember" xml:lang="en-US">Two thousand fifteen April [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandFifteenAprilMember" xml:lang="en-US">2015 April [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandFifteenAprilMember" xlink:to="lab_ypf_TwoThousandFifteenAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandFifteenAprilMember" xml:lang="en-US">Two thousand fifteen April.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFifteenOctoberMember" xlink:label="loc_ypf_TwoThousandFifteenOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandFifteenOctoberMember" xml:lang="en-US">Two thousand fifteen October [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandFifteenOctoberMember" xml:lang="en-US">2015 October [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandFifteenOctoberMember" xlink:to="lab_ypf_TwoThousandFifteenOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandFifteenOctoberMember" xml:lang="en-US">Two thousand fifteen October.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandSeventeenDecemberMember" xlink:label="loc_ypf_TwoThousandSeventeenDecemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandSeventeenDecemberMember" xml:lang="en-US">Two Thousand Seventeen December [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandSeventeenDecemberMember" xml:lang="en-US">2017 December [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandSeventeenDecemberMember" xlink:to="lab_ypf_TwoThousandSeventeenDecemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandSeventeenDecemberMember" xml:lang="en-US">Two Thousand Seventeen December [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NineteenNinetyEightMember" xlink:label="loc_ypf_NineteenNinetyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NineteenNinetyEightMember" xml:lang="en-US">Nineteen Ninety Eight [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NineteenNinetyEightMember" xml:lang="en-US">1998 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NineteenNinetyEightMember" xlink:to="lab_ypf_NineteenNinetyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NineteenNinetyEightMember" xml:lang="en-US">Nineteen Ninety Eight [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xlink:label="loc_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xml:lang="en-US">Two Thousand Fourteen April Two Thousand Fifteen February And Two Thousan Sixteen October [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xml:lang="en-US">2014 April, 2015 February and 2016 October [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xlink:to="lab_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" xml:lang="en-US">Two thousand fourteen April two thousand fifteen February and two thousand sixteen October.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandSeventeenJulyAndDecemberMember" xlink:label="loc_ypf_TwoThousandSeventeenJulyAndDecemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandSeventeenJulyAndDecemberMember" xml:lang="en-US">Two Thousand Seventeen July And December [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandSeventeenJulyAndDecemberMember" xml:lang="en-US">2017 July and December [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandSeventeenJulyAndDecemberMember" xlink:to="lab_ypf_TwoThousandSeventeenJulyAndDecemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandSeventeenJulyAndDecemberMember" xml:lang="en-US">Two Thousand Seventeen July And December [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandNineteenJuneMember" xlink:label="loc_ypf_TwoThousandNineteenJuneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandNineteenJuneMember" xml:lang="en-US">Two Thousand Nineteen June [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandNineteenJuneMember" xml:lang="en-US">2019 June [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandNineteenJuneMember" xlink:to="lab_ypf_TwoThousandNineteenJuneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandNineteenJuneMember" xml:lang="en-US">Two Thousand Nineteen June.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyJulyMember" xlink:label="loc_ypf_TwoThousandTwentyJulyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyJulyMember" xml:lang="en-US">Two Thousand Twenty July [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyJulyMember" xml:lang="en-US">2020 July [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyJulyMember" xlink:to="lab_ypf_TwoThousandTwentyJulyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyJulyMember" xml:lang="en-US">Two Thousand Twenty July Member</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyOneFebruaryMember" xlink:label="loc_ypf_TwoThousandTwentyOneFebruaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyOneFebruaryMember" xml:lang="en-US">Two Thousand Twenty One February [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyOneFebruaryMember" xml:lang="en-US">2021 February [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyOneFebruaryMember" xlink:to="lab_ypf_TwoThousandTwentyOneFebruaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyOneFebruaryMember" xml:lang="en-US">Two thousand twenty one february.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyOneJulyMember" xlink:label="loc_ypf_TwoThousandTwentyOneJulyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyOneJulyMember" xml:lang="en-US">Two Thousand Twenty One July [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyOneJulyMember" xml:lang="en-US">2021 July [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyOneJulyMember" xlink:to="lab_ypf_TwoThousandTwentyOneJulyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyOneJulyMember" xml:lang="en-US">Two thousand twenty one july.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJanuaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyThreeJanuaryMember" xml:lang="en-US">Two Thousand Twenty Three January [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyThreeJanuaryMember" xml:lang="en-US">2023 January [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyThreeJanuaryMember" xlink:to="lab_ypf_TwoThousandTwentyThreeJanuaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyThreeJanuaryMember" xml:lang="en-US">Two thousand twenty three january.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xml:lang="en-US">Two Thousand Twenty Three January And Two Thousand Twenty Three April [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xml:lang="en-US">2023 January and 2023 April [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xlink:to="lab_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" xml:lang="en-US">Two thousand twenty three january and two thousand twenty three april.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeAprilMember" xlink:label="loc_ypf_TwoThousandTwentyThreeAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyThreeAprilMember" xml:lang="en-US">Two Thousand Twenty Three April [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyThreeAprilMember" xml:lang="en-US">2023 April [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyThreeAprilMember" xlink:to="lab_ypf_TwoThousandTwentyThreeAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyThreeAprilMember" xml:lang="en-US">Two thousand twenty three april.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeJuneMember" xlink:label="loc_ypf_TwoThousandTwentyThreeJuneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyThreeJuneMember" xml:lang="en-US">Two Thousand Twenty Three June [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyThreeJuneMember" xml:lang="en-US">2023 June [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyThreeJuneMember" xlink:to="lab_ypf_TwoThousandTwentyThreeJuneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyThreeJuneMember" xml:lang="en-US">Two thousand twenty three june.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeSeptemberMember" xlink:label="loc_ypf_TwoThousandTwentyThreeSeptemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyThreeSeptemberMember" xml:lang="en-US">Two Thousand Twenty Three September [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyThreeSeptemberMember" xml:lang="en-US">2023 September [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyThreeSeptemberMember" xlink:to="lab_ypf_TwoThousandTwentyThreeSeptemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyThreeSeptemberMember" xml:lang="en-US">Two thousand twenty three september.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyThreeOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyThreeOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyThreeOctoberMember" xml:lang="en-US">Two Thousand Twenty Three October [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyThreeOctoberMember" xml:lang="en-US">2023 October [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyThreeOctoberMember" xlink:to="lab_ypf_TwoThousandTwentyThreeOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandTwentyThreeOctoberMember" xml:lang="en-US">Two thousand twenty three october.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyFourJanuaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFourJanuaryMember" xml:lang="en-US">Two Thousand Twenty Four January [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFourJanuaryMember" xml:lang="en-US">2024 January [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFourJanuaryMember" xlink:to="lab_ypf_TwoThousandTwentyFourJanuaryMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourMayMember" xlink:label="loc_ypf_TwoThousandTwentyFourMayMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFourMayMember" xml:lang="en-US">Two Thousand Twenty Four May [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFourMayMember" xml:lang="en-US">2024 May [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFourMayMember" xlink:to="lab_ypf_TwoThousandTwentyFourMayMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourSeptemberMember" xlink:label="loc_ypf_TwoThousandTwentyFourSeptemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFourSeptemberMember" xml:lang="en-US">Two Thousand Twenty Four September [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFourSeptemberMember" xml:lang="en-US">2024 September [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFourSeptemberMember" xlink:to="lab_ypf_TwoThousandTwentyFourSeptemberMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyFourOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFourOctoberMember" xml:lang="en-US">Two Thousand Twenty Four October [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFourOctoberMember" xml:lang="en-US">2024 October [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFourOctoberMember" xlink:to="lab_ypf_TwoThousandTwentyFourOctoberMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJanuaryMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJanuaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveJanuaryMember" xml:lang="en-US">Two Thousand Twenty Five January [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveJanuaryMember" xml:lang="en-US">2025 January [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveJanuaryMember" xlink:to="lab_ypf_TwoThousandTwentyFiveJanuaryMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveFebruaryMember" xlink:label="loc_ypf_TwoThousandTwentyFiveFebruaryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveFebruaryMember" xml:lang="en-US">Two Thousand Twenty Five February [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveFebruaryMember" xml:lang="en-US">2025 February [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveFebruaryMember" xlink:to="lab_ypf_TwoThousandTwentyFiveFebruaryMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveMayMember" xlink:label="loc_ypf_TwoThousandTwentyFiveMayMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveMayMember" xml:lang="en-US">Two Thousand Twenty Five May [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveMayMember" xml:lang="en-US">2025 May [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveMayMember" xlink:to="lab_ypf_TwoThousandTwentyFiveMayMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJulyMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJulyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveJulyMember" xml:lang="en-US">Two Thousand Twenty Five July [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveJulyMember" xml:lang="en-US">2025 July [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveJulyMember" xlink:to="lab_ypf_TwoThousandTwentyFiveJulyMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveJulyAndAugustMember" xlink:label="loc_ypf_TwoThousandTwentyFiveJulyAndAugustMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveJulyAndAugustMember" xml:lang="en-US">Two Thousand Twenty Five July And August [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveJulyAndAugustMember" xml:lang="en-US">2025 July and August [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveJulyAndAugustMember" xlink:to="lab_ypf_TwoThousandTwentyFiveJulyAndAugustMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveAugustMember" xlink:label="loc_ypf_TwoThousandTwentyFiveAugustMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveAugustMember" xml:lang="en-US">Two Thousand Twenty Five August [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveAugustMember" xml:lang="en-US">2025 August [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveAugustMember" xlink:to="lab_ypf_TwoThousandTwentyFiveAugustMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveOctoberMember" xlink:label="loc_ypf_TwoThousandTwentyFiveOctoberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveOctoberMember" xml:lang="en-US">Two Thousand Twenty Five October [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveOctoberMember" xml:lang="en-US">2025 October [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveOctoberMember" xlink:to="lab_ypf_TwoThousandTwentyFiveOctoberMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFiveDecemberMember" xlink:label="loc_ypf_TwoThousandTwentyFiveDecemberMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFiveDecemberMember" xml:lang="en-US">Two Thousand Twenty Five December [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFiveDecemberMember" xml:lang="en-US">2025 December [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFiveDecemberMember" xlink:to="lab_ypf_TwoThousandTwentyFiveDecemberMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" xlink:label="loc_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" xml:lang="en-US">TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveApril [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" xml:lang="en-US">2024 July and 2025 April [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" xlink:to="lab_ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfRateregulatedActivitiesAxis" xml:lang="en-US">Types of rate-regulated activities [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfRateregulatedActivitiesAxis" xml:lang="en-US">Types of rate-regulated activities [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesAxis" xlink:to="lab_ifrs-full_TypesOfRateregulatedActivitiesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:label="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfRateregulatedActivitiesDomain" xml:lang="en-US">Types of rate-regulated activities [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TypesOfRateregulatedActivitiesDomain" xml:lang="en-US">Types of rate-regulated activities [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfRateregulatedActivitiesDomain" xlink:to="lab_ifrs-full_TypesOfRateregulatedActivitiesDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MediumTermNotes1Member" xlink:label="loc_ypf_MediumTermNotes1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MediumTermNotes1Member" xml:lang="en-US">Medium Term Notes 1 [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MediumTermNotes1Member" xml:lang="en-US">Medium Term Notes [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MediumTermNotes1Member" xlink:to="lab_ypf_MediumTermNotes1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MediumTermNotes1Member" xml:lang="en-US">Medium Term Notes 1 [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NegotiableAmount" xlink:label="loc_ypf_NegotiableAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NegotiableAmount" xml:lang="en-US">Negotiable Amount</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NegotiableAmount" xml:lang="en-US">Negotiable amount</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NegotiableAmount" xlink:to="lab_ypf_NegotiableAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NegotiableAmount" xml:lang="en-US">Negotiable amount.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NineteenNinetySevenMember" xlink:label="loc_ypf_NineteenNinetySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NineteenNinetySevenMember" xml:lang="en-US">Nineteen Ninety Seven [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NineteenNinetySevenMember" xml:lang="en-US">Nineteen Ninety Seven [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NineteenNinetySevenMember" xlink:to="lab_ypf_NineteenNinetySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NineteenNinetySevenMember" xml:lang="en-US">Nineteen ninety seven.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandEightMember" xlink:label="loc_ypf_TwoThousandEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandEightMember" xml:lang="en-US">Two Thousand Eight [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandEightMember" xml:lang="en-US">Two Thousand Eight [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandEightMember" xlink:to="lab_ypf_TwoThousandEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandEightMember" xml:lang="en-US">Two thousand eight.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherLiabilitiesAbstract" xlink:label="loc_ypf_DisclosureOfOtherLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfOtherLiabilitiesAbstract" xml:lang="en-US">Disclosure Of Other Liabilities [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfOtherLiabilitiesAbstract" xlink:to="lab_ypf_DisclosureOfOtherLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfOtherLiabilitiesAbstract" xml:lang="en-US">Disclosure Of Other Liabilities [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherCurrentLiabilitiesAbstract" xlink:label="loc_ypf_OtherCurrentLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherCurrentLiabilitiesAbstract" xml:lang="en-US">Other current liabilities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherCurrentLiabilitiesAbstract" xml:lang="en-US">Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherCurrentLiabilitiesAbstract" xlink:to="lab_ypf_OtherCurrentLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherCurrentLiabilitiesAbstract" xml:lang="en-US">Other current liabilities abstract.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForContractualClaimsCurrent" xlink:label="loc_ypf_LiabilitiesForContractualClaimsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiabilitiesForContractualClaimsCurrent" xml:lang="en-US">Liabilities for Contractual Claims, Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiabilitiesForContractualClaimsCurrent" xml:lang="en-US">Liabilities for contractual claims</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiabilitiesForContractualClaimsCurrent" xlink:to="lab_ypf_LiabilitiesForContractualClaimsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiabilitiesForContractualClaimsCurrent" xml:lang="en-US">Liabilities for contractual claims, current</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ShorttermMiscellaneousOtherProvisions" xlink:label="loc_ifrs-full_ShorttermMiscellaneousOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ShorttermMiscellaneousOtherProvisions" xml:lang="en-US">Current miscellaneous other provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ShorttermMiscellaneousOtherProvisions" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ShorttermMiscellaneousOtherProvisions" xlink:to="lab_ifrs-full_ShorttermMiscellaneousOtherProvisions" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForConcessionsCurrent" xlink:label="loc_ypf_LiabilitiesForConcessionsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiabilitiesForConcessionsCurrent" xml:lang="en-US">Liabilities For Concessions Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiabilitiesForConcessionsCurrent" xml:lang="en-US">Liabilities for concessions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiabilitiesForConcessionsCurrent" xlink:to="lab_ypf_LiabilitiesForConcessionsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiabilitiesForConcessionsCurrent" xml:lang="en-US">Liabilities for concessions, current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOperatingOptimizationsCurrent" xlink:label="loc_ypf_ProvisionForOperatingOptimizationsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForOperatingOptimizationsCurrent" xml:lang="en-US">Provision for operating optimizations Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForOperatingOptimizationsCurrent" xml:lang="en-US">Provision for operating optimizations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForOperatingOptimizationsCurrent" xlink:to="lab_ypf_ProvisionForOperatingOptimizationsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForOperatingOptimizationsCurrent" xml:lang="en-US">Provision for operating optimizations current</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForAgreementsCurrent" xlink:label="loc_ypf_LiabilitiesForAgreementsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiabilitiesForAgreementsCurrent" xml:lang="en-US">Liabilities For Agreements Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiabilitiesForAgreementsCurrent" xlink:to="lab_ypf_LiabilitiesForAgreementsCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiabilitiesForAgreementsCurrent" xml:lang="en-US">Liabilities for agreements current</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherNoncurrentLiabilitiesAbstract" xlink:label="loc_ypf_OtherNoncurrentLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherNoncurrentLiabilitiesAbstract" xml:lang="en-US">Other non-current liabilities [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherNoncurrentLiabilitiesAbstract" xml:lang="en-US">Noncurrent</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherNoncurrentLiabilitiesAbstract" xlink:to="lab_ypf_OtherNoncurrentLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherNoncurrentLiabilitiesAbstract" xml:lang="en-US">Other non-current liabilities [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForContractualClaimsNoncurrent" xlink:label="loc_ypf_LiabilitiesForContractualClaimsNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiabilitiesForContractualClaimsNoncurrent" xml:lang="en-US">Liabilities for Contractual Claims, Non-current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiabilitiesForContractualClaimsNoncurrent" xml:lang="en-US">Liabilities for contractual claims</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiabilitiesForContractualClaimsNoncurrent" xlink:to="lab_ypf_LiabilitiesForContractualClaimsNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiabilitiesForContractualClaimsNoncurrent" xml:lang="en-US">Liabilities for contractual claims, non-current</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherMiscellaneousLiabilitiesNoncurrent" xlink:label="loc_ypf_OtherMiscellaneousLiabilitiesNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherMiscellaneousLiabilitiesNoncurrent" xml:lang="en-US">Other miscellaneous liabilities Noncurrent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherMiscellaneousLiabilitiesNoncurrent" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherMiscellaneousLiabilitiesNoncurrent" xlink:to="lab_ypf_OtherMiscellaneousLiabilitiesNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherMiscellaneousLiabilitiesNoncurrent" xml:lang="en-US">Other miscellaneous liabilities Noncurrent.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForConcessionsNoncurrent" xlink:label="loc_ypf_LiabilitiesForConcessionsNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiabilitiesForConcessionsNoncurrent" xml:lang="en-US">Liabilities For Concessions Noncurrent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiabilitiesForConcessionsNoncurrent" xml:lang="en-US">Liabilities for concessions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiabilitiesForConcessionsNoncurrent" xlink:to="lab_ypf_LiabilitiesForConcessionsNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiabilitiesForConcessionsNoncurrent" xml:lang="en-US">Liabilities for concessions, non-current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiabilitiesForAgreementsNoncurrent" xlink:label="loc_ypf_LiabilitiesForAgreementsNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiabilitiesForAgreementsNoncurrent" xml:lang="en-US">Liabilities For Agreements Noncurrent</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiabilitiesForAgreementsNoncurrent" xlink:to="lab_ypf_LiabilitiesForAgreementsNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiabilitiesForAgreementsNoncurrent" xml:lang="en-US">Liabilities for agreements noncurrent</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfAccountsPayableAbstract" xlink:label="loc_ypf_DisclosureOfAccountsPayableAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfAccountsPayableAbstract" xml:lang="en-US">Disclosure Of Accounts Payable [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfAccountsPayableAbstract" xlink:to="lab_ypf_DisclosureOfAccountsPayableAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfAccountsPayableAbstract" xml:lang="en-US">Disclosure of accounts payable Abstract.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesAbstract" xlink:label="loc_ifrs-full_NoncurrentPayablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentPayablesAbstract" xml:lang="en-US">Trade and other non-current payables [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentPayablesAbstract" xml:lang="en-US">Noncurrent</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentPayablesAbstract" xlink:to="lab_ifrs-full_NoncurrentPayablesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentPayablesToTradeSuppliers" xlink:label="loc_ifrs-full_NoncurrentPayablesToTradeSuppliers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentPayablesToTradeSuppliers" xml:lang="en-US">Non-current trade payables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentPayablesToTradeSuppliers" xml:lang="en-US">Trade payable and related parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentPayablesToTradeSuppliers" xlink:to="lab_ifrs-full_NoncurrentPayablesToTradeSuppliers" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentDepositsFromCustomers" xlink:label="loc_ifrs-full_NoncurrentDepositsFromCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentDepositsFromCustomers" xml:lang="en-US">Non-current deposits from customers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentDepositsFromCustomers" xml:lang="en-US">Guarantee deposits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentDepositsFromCustomers" xlink:to="lab_ifrs-full_NoncurrentDepositsFromCustomers" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PayablesWithPartnersNoncurrent" xlink:label="loc_ypf_PayablesWithPartnersNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PayablesWithPartnersNoncurrent" xml:lang="en-US">Payables with partners, Non-current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PayablesWithPartnersNoncurrent" xml:lang="en-US">Payables with partners in JA and other agreements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PayablesWithPartnersNoncurrent" xlink:to="lab_ypf_PayablesWithPartnersNoncurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PayablesWithPartnersNoncurrent" xml:lang="en-US">Payables with partners, non-current.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_LongtermMiscellaneousOtherProvisions" xlink:label="loc_ifrs-full_LongtermMiscellaneousOtherProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_LongtermMiscellaneousOtherProvisions" xml:lang="en-US">Non-current miscellaneous other provisions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_LongtermMiscellaneousOtherProvisions" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_LongtermMiscellaneousOtherProvisions" xlink:to="lab_ifrs-full_LongtermMiscellaneousOtherProvisions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesAbstract" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayablesAbstract" xml:lang="en-US">Trade and other current payables [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayablesAbstract" xml:lang="en-US">Current</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesAbstract" xlink:to="lab_ifrs-full_TradeAndOtherCurrentPayablesAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:label="loc_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xml:lang="en-US">Current trade payables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xml:lang="en-US">Trade payable and related parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" xlink:to="lab_ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentDepositsFromCustomers" xlink:label="loc_ifrs-full_CurrentDepositsFromCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentDepositsFromCustomers" xml:lang="en-US">Current deposits from customers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentDepositsFromCustomers" xml:lang="en-US">Guarantee deposits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentDepositsFromCustomers" xlink:to="lab_ifrs-full_CurrentDepositsFromCustomers" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PayablesWithPartnersCurrent" xlink:label="loc_ypf_PayablesWithPartnersCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PayablesWithPartnersCurrent" xml:lang="en-US">Payables with partners, Current</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PayablesWithPartnersCurrent" xml:lang="en-US">Payables with partners in JA and other agreements</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PayablesWithPartnersCurrent" xlink:to="lab_ypf_PayablesWithPartnersCurrent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PayablesWithPartnersCurrent" xml:lang="en-US">Payables with partners, current.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherLiabilitiesCurrent1" xlink:label="loc_ypf_OtherLiabilitiesCurrent1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherLiabilitiesCurrent1" xml:lang="en-US">Other liabilities current 1</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherLiabilitiesCurrent1" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherLiabilitiesCurrent1" xlink:to="lab_ypf_OtherLiabilitiesCurrent1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherLiabilitiesCurrent1" xml:lang="en-US">Other liabilities current 1.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenuesAbstract" xlink:label="loc_ypf_DisclosureOfRevenuesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfRevenuesAbstract" xml:lang="en-US">Disclosure Of Revenues [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfRevenuesAbstract" xlink:to="lab_ypf_DisclosureOfRevenuesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfRevenuesAbstract" xml:lang="en-US">Disclosure Of Revenues.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueFromGovernmentIncentives" xlink:label="loc_ypf_RevenueFromGovernmentIncentives" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RevenueFromGovernmentIncentives" xml:lang="en-US">Revenue From Government incentives</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RevenueFromGovernmentIncentives" xml:lang="en-US">National Government incentives</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RevenueFromGovernmentIncentives" xlink:to="lab_ypf_RevenueFromGovernmentIncentives" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RevenueFromGovernmentIncentives" xml:lang="en-US">Revenue from government incentives.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenuesFromContractsWithCustomers" xlink:label="loc_ypf_RevenuesFromContractsWithCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RevenuesFromContractsWithCustomers" xml:lang="en-US">Revenues from contracts with customers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_RevenuesFromContractsWithCustomers" xml:lang="en-US">Revenue from contracts with customers</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RevenuesFromContractsWithCustomers" xlink:to="lab_ypf_RevenuesFromContractsWithCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RevenuesFromContractsWithCustomers" xml:lang="en-US">Revenues from contracts with customers.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueAbstract" xlink:label="loc_ypf_DisclosureOfRevenueAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfRevenueAbstract" xml:lang="en-US">Disclosure of revenue [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfRevenueAbstract" xlink:to="lab_ypf_DisclosureOfRevenueAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfRevenueAbstract" xml:lang="en-US">Disclosure of revenue [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueTable" xlink:label="loc_ypf_DisclosureOfRevenueTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfRevenueTable" xml:lang="en-US">Disclosure of Revenue [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfRevenueTable" xml:lang="en-US">Disclosure of Revenue [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfRevenueTable" xlink:to="lab_ypf_DisclosureOfRevenueTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfRevenueTable" xml:lang="en-US">Disclosure of revenue.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfRevenueLineItems" xlink:label="loc_ypf_DisclosureOfRevenueLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfRevenueLineItems" xml:lang="en-US">Disclosure of revenue [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfRevenueLineItems" xml:lang="en-US">Disclosure of revenue [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfRevenueLineItems" xlink:to="lab_ypf_DisclosureOfRevenueLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfRevenueLineItems" xml:lang="en-US">Disclosure of revenue [line items]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromContractsWithCustomers" xlink:label="loc_ifrs-full_RevenueFromContractsWithCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueFromContractsWithCustomers" xml:lang="en-US">Revenue from contracts with customers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_RevenueFromContractsWithCustomers" xml:lang="en-US">Revenue from contracts with customers</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueFromContractsWithCustomers" xlink:to="lab_ifrs-full_RevenueFromContractsWithCustomers" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersAxis" xlink:label="loc_ifrs-full_MarketsOfCustomersAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MarketsOfCustomersAxis" xml:lang="en-US">Markets of customers [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MarketsOfCustomersAxis" xml:lang="en-US">Markets of customers [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MarketsOfCustomersAxis" xlink:to="lab_ifrs-full_MarketsOfCustomersAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MarketsOfCustomersDomain" xlink:label="loc_ifrs-full_MarketsOfCustomersDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MarketsOfCustomersDomain" xml:lang="en-US">Markets of customers [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MarketsOfCustomersDomain" xml:lang="en-US">Markets of customers [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MarketsOfCustomersDomain" xlink:to="lab_ifrs-full_MarketsOfCustomersDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasolinesMember" xlink:label="loc_ypf_GasolinesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GasolinesMember" xml:lang="en-US">Gasolines [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GasolinesMember" xml:lang="en-US">Gasolines [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GasolinesMember" xlink:to="lab_ypf_GasolinesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GasolinesMember" xml:lang="en-US">Gasolines.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_CrudeOilMember" xlink:label="loc_srt_CrudeOilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_CrudeOilMember" xml:lang="en-US">Crude Oil [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_CrudeOilMember" xml:lang="en-US">Crude oil [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_CrudeOilMember" xlink:to="lab_srt_CrudeOilMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JetFuelMember" xlink:label="loc_ypf_JetFuelMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_JetFuelMember" xml:lang="en-US">Jet Fuel [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_JetFuelMember" xml:lang="en-US">Jet fuel [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_JetFuelMember" xlink:to="lab_ypf_JetFuelMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_JetFuelMember" xml:lang="en-US">Jet fuel.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LubricantsAndByproductsMember" xlink:label="loc_ypf_LubricantsAndByproductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LubricantsAndByproductsMember" xml:lang="en-US">Lubricants and by-products [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LubricantsAndByproductsMember" xml:lang="en-US">Lubricants and by-products [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LubricantsAndByproductsMember" xlink:to="lab_ypf_LubricantsAndByproductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LubricantsAndByproductsMember" xml:lang="en-US">Lubricants and by-products.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquefiedPetroleumGasMember" xlink:label="loc_ypf_LiquefiedPetroleumGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiquefiedPetroleumGasMember" xml:lang="en-US">Liquefied Petroleum Gas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiquefiedPetroleumGasMember" xml:lang="en-US">LPG [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiquefiedPetroleumGasMember" xlink:to="lab_ypf_LiquefiedPetroleumGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiquefiedPetroleumGasMember" xml:lang="en-US">Liquefied Petroleum Gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FuelOilMember" xlink:label="loc_ypf_FuelOilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FuelOilMember" xml:lang="en-US">Fuel oil [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FuelOilMember" xml:lang="en-US">Fuel oil [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FuelOilMember" xlink:to="lab_ypf_FuelOilMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FuelOilMember" xml:lang="en-US">Fuel oil.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetrochemicalsMember" xlink:label="loc_ypf_PetrochemicalsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PetrochemicalsMember" xml:lang="en-US">Petrochemicals [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PetrochemicalsMember" xml:lang="en-US">Petrochemicals [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PetrochemicalsMember" xlink:to="lab_ypf_PetrochemicalsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PetrochemicalsMember" xml:lang="en-US">Petrochemicals.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FertilizersAndCropProtectionProductsMember" xlink:label="loc_ypf_FertilizersAndCropProtectionProductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FertilizersAndCropProtectionProductsMember" xml:lang="en-US">Fertilizers and Crop Protection Products [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FertilizersAndCropProtectionProductsMember" xml:lang="en-US">Fertilizers and crop protection products [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FertilizersAndCropProtectionProductsMember" xlink:to="lab_ypf_FertilizersAndCropProtectionProductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FertilizersAndCropProtectionProductsMember" xml:lang="en-US">Fertilizers and crop protection products.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FloursOilsAndGrainsMember" xlink:label="loc_ypf_FloursOilsAndGrainsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FloursOilsAndGrainsMember" xml:lang="en-US">Flours, oils and grains [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FloursOilsAndGrainsMember" xml:lang="en-US">Flours, oils and grains [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FloursOilsAndGrainsMember" xlink:to="lab_ypf_FloursOilsAndGrainsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FloursOilsAndGrainsMember" xml:lang="en-US">Flours, oils and grains.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsphaltsMember" xlink:label="loc_ypf_AsphaltsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AsphaltsMember" xml:lang="en-US">Asphalts [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AsphaltsMember" xml:lang="en-US">Asphalts [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AsphaltsMember" xlink:to="lab_ypf_AsphaltsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AsphaltsMember" xml:lang="en-US">Asphalts.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GoodsForResaleAtGasStationsMember" xlink:label="loc_ypf_GoodsForResaleAtGasStationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GoodsForResaleAtGasStationsMember" xml:lang="en-US">Goods for resale at gas stations [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GoodsForResaleAtGasStationsMember" xml:lang="en-US">Goods for resale at gas stations [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GoodsForResaleAtGasStationsMember" xlink:to="lab_ypf_GoodsForResaleAtGasStationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GoodsForResaleAtGasStationsMember" xml:lang="en-US">Goods for resale at gas stations.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromServicesMember" xlink:label="loc_ypf_IncomeFromServicesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncomeFromServicesMember" xml:lang="en-US">Income from services [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncomeFromServicesMember" xml:lang="en-US">Income from services [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncomeFromServicesMember" xlink:to="lab_ypf_IncomeFromServicesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncomeFromServicesMember" xml:lang="en-US">Income from services.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromConstructionContractsMember" xlink:label="loc_ypf_IncomeFromConstructionContractsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncomeFromConstructionContractsMember" xml:lang="en-US">Income from construction contracts [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncomeFromConstructionContractsMember" xml:lang="en-US">Income from construction contracts [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncomeFromConstructionContractsMember" xlink:to="lab_ypf_IncomeFromConstructionContractsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncomeFromConstructionContractsMember" xml:lang="en-US">Income from construction contracts.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VirginNaphthaMember" xlink:label="loc_ypf_VirginNaphthaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VirginNaphthaMember" xml:lang="en-US">Virgin naphtha [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_VirginNaphthaMember" xml:lang="en-US">Virgin naphtha [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VirginNaphthaMember" xlink:to="lab_ypf_VirginNaphthaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VirginNaphthaMember" xml:lang="en-US">Virgin naphtha.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetroleumCokeMember" xlink:label="loc_ypf_PetroleumCokeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PetroleumCokeMember" xml:lang="en-US">Petroleum coke [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PetroleumCokeMember" xml:lang="en-US">Petroleum coke [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PetroleumCokeMember" xlink:to="lab_ypf_PetroleumCokeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PetroleumCokeMember" xml:lang="en-US">Petroleum coke.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquefiedNaturalGasRegasificationMember" xlink:label="loc_ypf_LiquefiedNaturalGasRegasificationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiquefiedNaturalGasRegasificationMember" xml:lang="en-US">Liquefied Natural Gas Regasification [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiquefiedNaturalGasRegasificationMember" xml:lang="en-US">LNG regasification [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiquefiedNaturalGasRegasificationMember" xlink:to="lab_ypf_LiquefiedNaturalGasRegasificationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiquefiedNaturalGasRegasificationMember" xml:lang="en-US">Liquefied natural gas regasification.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherGoodsAndServicesMember" xlink:label="loc_ypf_OtherGoodsAndServicesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherGoodsAndServicesMember" xml:lang="en-US">Other goods and services [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherGoodsAndServicesMember" xml:lang="en-US">Other goods and services [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherGoodsAndServicesMember" xlink:to="lab_ypf_OtherGoodsAndServicesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherGoodsAndServicesMember" xml:lang="en-US">Other goods and services.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DieselMember" xlink:label="loc_ypf_DieselMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DieselMember" xml:lang="en-US">Diesel [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DieselMember" xml:lang="en-US">Diesel [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DieselMember" xlink:to="lab_ypf_DieselMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DieselMember" xml:lang="en-US">Diesel.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfNaturalGas" xlink:label="loc_ifrs-full_RevenueFromSaleOfNaturalGas" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueFromSaleOfNaturalGas" xml:lang="en-US">Revenue from sale of natural gas</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RevenueFromSaleOfNaturalGas" xml:lang="en-US">Revenue from natural gas produced by the Company</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueFromSaleOfNaturalGas" xlink:to="lab_ifrs-full_RevenueFromSaleOfNaturalGas" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsAxis" xlink:label="loc_ifrs-full_SalesChannelsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SalesChannelsAxis" xml:lang="en-US">Sales channels [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SalesChannelsAxis" xml:lang="en-US">Sales channels [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SalesChannelsAxis" xlink:to="lab_ifrs-full_SalesChannelsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SalesChannelsDomain" xlink:label="loc_ifrs-full_SalesChannelsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SalesChannelsDomain" xml:lang="en-US">Sales channels [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SalesChannelsDomain" xml:lang="en-US">Sales channels [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SalesChannelsDomain" xlink:to="lab_ifrs-full_SalesChannelsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PowerPlantsMember" xlink:label="loc_ypf_PowerPlantsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PowerPlantsMember" xml:lang="en-US">Power plants [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PowerPlantsMember" xml:lang="en-US">Power plants [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PowerPlantsMember" xlink:to="lab_ypf_PowerPlantsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PowerPlantsMember" xml:lang="en-US">Power plants.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DistributionCompaniesMember" xlink:label="loc_ypf_DistributionCompaniesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DistributionCompaniesMember" xml:lang="en-US">Distribution Companies [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DistributionCompaniesMember" xml:lang="en-US">Distribution companies [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DistributionCompaniesMember" xlink:to="lab_ypf_DistributionCompaniesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DistributionCompaniesMember" xml:lang="en-US">Distribution companies.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RetailDistributionOfNaturalGasMember" xlink:label="loc_ypf_RetailDistributionOfNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RetailDistributionOfNaturalGasMember" xml:lang="en-US">Retail distribution of natural gas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RetailDistributionOfNaturalGasMember" xml:lang="en-US">Retail distribution of natural gas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RetailDistributionOfNaturalGasMember" xlink:to="lab_ypf_RetailDistributionOfNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RetailDistributionOfNaturalGasMember" xml:lang="en-US">Retail distribution of natural gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IndustriesTransportAndAviationMember" xlink:label="loc_ypf_IndustriesTransportAndAviationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IndustriesTransportAndAviationMember" xml:lang="en-US">Industries, transport and aviation [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IndustriesTransportAndAviationMember" xml:lang="en-US">Industries, transport and aviation [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IndustriesTransportAndAviationMember" xlink:to="lab_ypf_IndustriesTransportAndAviationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IndustriesTransportAndAviationMember" xml:lang="en-US">Industries, transport and aviation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgricultureMember" xlink:label="loc_ypf_AgricultureMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AgricultureMember" xml:lang="en-US">Agriculture [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AgricultureMember" xml:lang="en-US">Agriculture [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AgricultureMember" xlink:to="lab_ypf_AgricultureMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AgricultureMember" xml:lang="en-US">Agriculture.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetrochemicalIndustryMember" xlink:label="loc_ypf_PetrochemicalIndustryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PetrochemicalIndustryMember" xml:lang="en-US">Petrochemical industry [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PetrochemicalIndustryMember" xml:lang="en-US">Petrochemical industry [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PetrochemicalIndustryMember" xlink:to="lab_ypf_PetrochemicalIndustryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PetrochemicalIndustryMember" xml:lang="en-US">Petrochemical industry.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TradingMember" xlink:label="loc_ypf_TradingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TradingMember" xml:lang="en-US">Trading [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TradingMember" xml:lang="en-US">Trading [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TradingMember" xlink:to="lab_ypf_TradingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TradingMember" xml:lang="en-US">Trading.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilCompaniesMember" xlink:label="loc_ypf_OilCompaniesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilCompaniesMember" xml:lang="en-US">Oil Companies [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OilCompaniesMember" xml:lang="en-US">Oil companies [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilCompaniesMember" xlink:to="lab_ypf_OilCompaniesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilCompaniesMember" xml:lang="en-US">Oil companies.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CommercializationOfLiquefiedPetroleumGasMember" xlink:label="loc_ypf_CommercializationOfLiquefiedPetroleumGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CommercializationOfLiquefiedPetroleumGasMember" xml:lang="en-US">Commercialization of liquefied petroleum gas [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CommercializationOfLiquefiedPetroleumGasMember" xml:lang="en-US">Commercialization of LPG [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CommercializationOfLiquefiedPetroleumGasMember" xlink:to="lab_ypf_CommercializationOfLiquefiedPetroleumGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CommercializationOfLiquefiedPetroleumGasMember" xml:lang="en-US">Commercialization of liquefied petroleum gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherSalesChannelsMember" xlink:label="loc_ypf_OtherSalesChannelsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherSalesChannelsMember" xml:lang="en-US">Other sales channels [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherSalesChannelsMember" xml:lang="en-US">Other sales channels [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherSalesChannelsMember" xlink:to="lab_ypf_OtherSalesChannelsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherSalesChannelsMember" xml:lang="en-US">Other sales channels.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueAbstract" xlink:label="loc_ifrs-full_RevenueAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueAbstract" xml:lang="en-US">Revenue [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueAbstract" xlink:to="lab_ifrs-full_RevenueAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueByGeographicalAreaTable" xlink:label="loc_ypf_RevenueByGeographicalAreaTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RevenueByGeographicalAreaTable" xml:lang="en-US">Revenue By Geographical Area [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RevenueByGeographicalAreaTable" xlink:to="lab_ypf_RevenueByGeographicalAreaTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RevenueByGeographicalAreaTable" xml:lang="en-US">Revenue by geographical area.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ForeignCountriesMember" xlink:label="loc_ifrs-full_ForeignCountriesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ForeignCountriesMember" xml:lang="en-US">Foreign countries [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ForeignCountriesMember" xml:lang="en-US">Rest of the world [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ForeignCountriesMember" xlink:to="lab_ifrs-full_ForeignCountriesMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EuropeMember" xlink:label="loc_srt_EuropeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_EuropeMember" xml:lang="en-US">Europe [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_EuropeMember" xml:lang="en-US">Europe [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_EuropeMember" xlink:to="lab_srt_EuropeMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenueByGeographicalAreaLineItems" xlink:label="loc_ypf_RevenueByGeographicalAreaLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RevenueByGeographicalAreaLineItems" xml:lang="en-US">Revenue By Geographical Area [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RevenueByGeographicalAreaLineItems" xlink:to="lab_ypf_RevenueByGeographicalAreaLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RevenueByGeographicalAreaLineItems" xml:lang="en-US">Revenue by geographical area.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xlink:label="loc_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xml:lang="en-US">Number of external client accounted for ten percent or more of revenue</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xml:lang="en-US">Number of external client accounted for 10% or more of Group's revenue</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xlink:to="lab_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" xml:lang="en-US">Number of external client accounted for ten percent or more of revenue.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xlink:label="loc_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xml:lang="en-US">Revenues From Contracts With Customers Included In Contract Liabilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xml:lang="en-US">Revenues from contracts with customers which have been included in "Contract liabilities" line item in the statement of financial position at the beginning of each year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xlink:to="lab_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" xml:lang="en-US">Revenues from contracts with customers which have been included in "Contract liabilities" line item in the statement of financial position at the beginning of each year.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DomesticMarketMember" xlink:label="loc_ypf_DomesticMarketMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DomesticMarketMember" xml:lang="en-US">Domestic Market [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DomesticMarketMember" xml:lang="en-US">Domestic market [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DomesticMarketMember" xlink:to="lab_ypf_DomesticMarketMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DomesticMarketMember" xml:lang="en-US">Domestic Market [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InternationalMarketMember" xlink:label="loc_ypf_InternationalMarketMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InternationalMarketMember" xml:lang="en-US">International market [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InternationalMarketMember" xml:lang="en-US">International market [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InternationalMarketMember" xlink:to="lab_ypf_InternationalMarketMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InternationalMarketMember" xml:lang="en-US">International market [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CurrentReceivablesFromContractsWithCustomers" xlink:label="loc_ifrs-full_CurrentReceivablesFromContractsWithCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CurrentReceivablesFromContractsWithCustomers" xml:lang="en-US">Current receivables from contracts with customers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CurrentReceivablesFromContractsWithCustomers" xml:lang="en-US">Current Credits for contracts included in the item "Trade receivables"</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CurrentReceivablesFromContractsWithCustomers" xlink:to="lab_ifrs-full_CurrentReceivablesFromContractsWithCustomers" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" xlink:label="loc_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" xml:lang="en-US">Non-current receivables from contracts with customers</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" xml:lang="en-US">Noncurrent Credits for contracts included in the item "Trade receivables"</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" xlink:to="lab_ifrs-full_NoncurrentReceivablesFromContractsWithCustomers" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailsOfInventoryCostsAbstract" xlink:label="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailsOfInventoryCostsAbstract" xml:lang="en-US">Disclosure of details of inventory costs [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailsOfInventoryCostsAbstract" xlink:to="lab_ypf_DisclosureOfDetailsOfInventoryCostsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailsOfInventoryCostsAbstract" xml:lang="en-US">Disclosure of details of inventory costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryPurchases" xlink:label="loc_ypf_InventoryPurchases" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InventoryPurchases" xml:lang="en-US">Inventory Purchases</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InventoryPurchases" xml:lang="en-US">Purchases</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InventoryPurchases" xlink:to="lab_ypf_InventoryPurchases" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InventoryPurchases" xml:lang="en-US">Inventory purchases.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryProductionCosts" xlink:label="loc_ypf_InventoryProductionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InventoryProductionCosts" xml:lang="en-US">Inventory Production Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InventoryProductionCosts" xml:lang="en-US">Production costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InventoryProductionCosts" xlink:to="lab_ypf_InventoryProductionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InventoryProductionCosts" xml:lang="en-US">Inventory production costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryTranslationEffect" xlink:label="loc_ypf_InventoryTranslationEffect" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InventoryTranslationEffect" xml:lang="en-US">Inventory Translation Effect</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InventoryTranslationEffect" xml:lang="en-US">Translation effect</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InventoryTranslationEffect" xlink:to="lab_ypf_InventoryTranslationEffect" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InventoryTranslationEffect" xml:lang="en-US">Inventory translation effect.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InventoryInflationAdjustment" xlink:label="loc_ypf_InventoryInflationAdjustment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InventoryInflationAdjustment" xml:lang="en-US">Inventory inflation adjustment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InventoryInflationAdjustment" xml:lang="en-US">Adjustment for inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InventoryInflationAdjustment" xlink:to="lab_ypf_InventoryInflationAdjustment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InventoryInflationAdjustment" xml:lang="en-US">Inventory inflation adjustment.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WritedownsReversalsOfInventories" xlink:label="loc_ifrs-full_WritedownsReversalsOfInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_WritedownsReversalsOfInventories" xml:lang="en-US">Write-downs (reversals of write-downs) of inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_WritedownsReversalsOfInventories" xml:lang="en-US">Inventories write-down</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_WritedownsReversalsOfInventories" xlink:to="lab_ifrs-full_WritedownsReversalsOfInventories" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ReclassificationOfInventories" xlink:label="loc_ypf_ReclassificationOfInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ReclassificationOfInventories" xml:lang="en-US">Reclassification Of Inventories</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ReclassificationOfInventories" xml:lang="en-US">Reclassifications</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ReclassificationOfInventories" xlink:to="lab_ypf_ReclassificationOfInventories" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ReclassificationOfInventories" xml:lang="en-US">Reclassification of inventories.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreasesOfInventoriesFromBusinessCombinations" xlink:label="loc_ypf_IncreasesOfInventoriesFromBusinessCombinations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreasesOfInventoriesFromBusinessCombinations" xml:lang="en-US">Increases Of Inventories From Business Combinations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreasesOfInventoriesFromBusinessCombinations" xlink:to="lab_ypf_IncreasesOfInventoriesFromBusinessCombinations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreasesOfInventoriesFromBusinessCombinations" xml:lang="en-US">Increases of inventories from business combinations</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNatureAbstract" xlink:label="loc_ifrs-full_ExpenseByNatureAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseByNatureAbstract" xml:lang="en-US">Expenses by nature [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseByNatureAbstract" xlink:to="lab_ifrs-full_ExpenseByNatureAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfExpensesTable" xlink:label="loc_ypf_DisclosureOfExpensesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfExpensesTable" xml:lang="en-US">Disclosure of expenses [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfExpensesTable" xml:lang="en-US">Disclosure of expenses [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfExpensesTable" xlink:to="lab_ypf_DisclosureOfExpensesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfExpensesTable" xml:lang="en-US">Schedule of disclosure of expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfExpensesLineItems" xlink:label="loc_ypf_DisclosureOfExpensesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfExpensesLineItems" xml:lang="en-US">Disclosure of expenses [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfExpensesLineItems" xml:lang="en-US">Disclosure of expenses [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfExpensesLineItems" xlink:to="lab_ypf_DisclosureOfExpensesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfExpensesLineItems" xml:lang="en-US">Line item represents disclosure of expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalariesAndSocialSecurityTaxes" xlink:label="loc_ypf_SalariesAndSocialSecurityTaxes" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SalariesAndSocialSecurityTaxes" xml:lang="en-US">Salaries and Social Security Taxes</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SalariesAndSocialSecurityTaxes" xml:lang="en-US">Salaries and social security taxes</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SalariesAndSocialSecurityTaxes" xlink:to="lab_ypf_SalariesAndSocialSecurityTaxes" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SalariesAndSocialSecurityTaxes" xml:lang="en-US">Salaries and social security taxes.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ServicesExpense" xlink:label="loc_ifrs-full_ServicesExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ServicesExpense" xml:lang="en-US">Services expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ServicesExpense" xml:lang="en-US">Fees and compensation for services</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ServicesExpense" xlink:to="lab_ifrs-full_ServicesExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherExpenseByNature" xlink:label="loc_ifrs-full_OtherExpenseByNature" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherExpenseByNature" xml:lang="en-US">Other expenses, by nature</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OtherExpenseByNature" xml:lang="en-US">Other personnel expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherExpenseByNature" xlink:to="lab_ifrs-full_OtherExpenseByNature" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xlink:label="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xml:lang="en-US">Tax expense other than income tax expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xml:lang="en-US">Taxes, charges and contributions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" xlink:to="lab_ifrs-full_TaxExpenseOtherThanIncomeTaxExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RoyaltyExpense" xlink:label="loc_ifrs-full_RoyaltyExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RoyaltyExpense" xml:lang="en-US">Royalty expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RoyaltyExpense" xml:lang="en-US">Royalties, easements and fees</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RoyaltyExpense" xlink:to="lab_ifrs-full_RoyaltyExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InsuranceExpense" xlink:label="loc_ifrs-full_InsuranceExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InsuranceExpense" xml:lang="en-US">Insurance expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InsuranceExpense" xml:lang="en-US">Insurance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InsuranceExpense" xlink:to="lab_ifrs-full_InsuranceExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RentalExpense" xlink:label="loc_ifrs-full_RentalExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RentalExpense" xml:lang="en-US">Rental expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RentalExpense" xml:lang="en-US">Rental of real estate and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RentalExpense" xlink:to="lab_ifrs-full_RentalExpense" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurveyExpenses" xlink:label="loc_ypf_SurveyExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SurveyExpenses" xml:lang="en-US">Survey Expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SurveyExpenses" xml:lang="en-US">Survey expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SurveyExpenses" xlink:to="lab_ypf_SurveyExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SurveyExpenses" xml:lang="en-US">Survey expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AmortisationExpense" xlink:label="loc_ifrs-full_AmortisationExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AmortisationExpense" xml:lang="en-US">Amortisation expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AmortisationExpense" xml:lang="en-US">Amortization of intangible assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AmortisationExpense" xlink:to="lab_ifrs-full_AmortisationExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RawMaterialsAndConsumablesUsed" xlink:label="loc_ifrs-full_RawMaterialsAndConsumablesUsed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RawMaterialsAndConsumablesUsed" xml:lang="en-US">Raw materials and consumables used</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RawMaterialsAndConsumablesUsed" xml:lang="en-US">Industrial inputs, consumable materials and supplies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RawMaterialsAndConsumablesUsed" xlink:to="lab_ifrs-full_RawMaterialsAndConsumablesUsed" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OperationServicesAndOtherServiceContracts" xlink:label="loc_ypf_OperationServicesAndOtherServiceContracts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OperationServicesAndOtherServiceContracts" xml:lang="en-US">Operation services and other service contracts</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OperationServicesAndOtherServiceContracts" xml:lang="en-US">Operation services and other service contracts</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OperationServicesAndOtherServiceContracts" xlink:to="lab_ypf_OperationServicesAndOtherServiceContracts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OperationServicesAndOtherServiceContracts" xml:lang="en-US">Operation services and other service contracts.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RepairsAndMaintenanceExpense" xlink:label="loc_ifrs-full_RepairsAndMaintenanceExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RepairsAndMaintenanceExpense" xml:lang="en-US">Repairs and maintenance expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_RepairsAndMaintenanceExpense" xml:lang="en-US">Preservation, repair and maintenance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RepairsAndMaintenanceExpense" xlink:to="lab_ifrs-full_RepairsAndMaintenanceExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TransportationExpense" xlink:label="loc_ifrs-full_TransportationExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TransportationExpense" xml:lang="en-US">Transportation expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_TransportationExpense" xml:lang="en-US">Transportation, products and charges</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TransportationExpense" xlink:to="lab_ifrs-full_TransportationExpense" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xlink:label="loc_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xml:lang="en-US">Provision for doubtful trade receivables recognised in profit or loss</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xml:lang="en-US">Provision for doubtful trade receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xlink:to="lab_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" xml:lang="en-US">Provision for doubtful trade receivables recognised in profit or loss.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdvertisingExpenses" xlink:label="loc_ypf_AdvertisingExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdvertisingExpenses" xml:lang="en-US">Advertising Expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdvertisingExpenses" xml:lang="en-US">Publicity and advertising expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdvertisingExpenses" xlink:to="lab_ypf_AdvertisingExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdvertisingExpenses" xml:lang="en-US">Advertising Expenses</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_FuelAndEnergyExpense" xlink:label="loc_ifrs-full_FuelAndEnergyExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_FuelAndEnergyExpense" xml:lang="en-US">Fuel and energy expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_FuelAndEnergyExpense" xml:lang="en-US">Fuel, gas, energy and miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_FuelAndEnergyExpense" xlink:to="lab_ifrs-full_FuelAndEnergyExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseByNature" xlink:label="loc_ifrs-full_ExpenseByNature" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseByNature" xml:lang="en-US">Expenses, by nature</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_ExpenseByNature" xml:lang="en-US">Total</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseByNature" xlink:to="lab_ifrs-full_ExpenseByNature" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xml:lang="en-US">Statement of comprehensive income, profit or loss location [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xml:lang="en-US">Statement of comprehensive income, profit or loss location [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xlink:to="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" xml:lang="en-US">Statement of comprehensive income, profit or loss location.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xlink:label="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xml:lang="en-US">Statement of comprehensive income, profit or loss location [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xml:lang="en-US">Statement of comprehensive income, profit or loss location [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xlink:to="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" xml:lang="en-US">Statement of comprehensive income, profit or loss location 1.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCostsMember" xlink:label="loc_ypf_ProductionCostsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProductionCostsMember" xml:lang="en-US">Production Costs [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProductionCostsMember" xml:lang="en-US">Production costs [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProductionCostsMember" xlink:to="lab_ypf_ProductionCostsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProductionCostsMember" xml:lang="en-US">Production costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdministrativeExpensesMember" xlink:label="loc_ypf_AdministrativeExpensesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdministrativeExpensesMember" xml:lang="en-US">Administrative Expenses [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdministrativeExpensesMember" xml:lang="en-US">Administrative expenses [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdministrativeExpensesMember" xlink:to="lab_ypf_AdministrativeExpensesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdministrativeExpensesMember" xml:lang="en-US">Administrative expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SellingExpensesMember" xlink:label="loc_ypf_SellingExpensesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SellingExpensesMember" xml:lang="en-US">Selling Expenses [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SellingExpensesMember" xml:lang="en-US">Selling expenses [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SellingExpensesMember" xlink:to="lab_ypf_SellingExpensesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SellingExpensesMember" xml:lang="en-US">Selling expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationExpensesMember" xlink:label="loc_ypf_ExplorationExpensesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExplorationExpensesMember" xml:lang="en-US">Exploration Expenses [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExplorationExpensesMember" xml:lang="en-US">Exploration expenses [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExplorationExpensesMember" xlink:to="lab_ypf_ExplorationExpensesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExplorationExpensesMember" xml:lang="en-US">Exploration expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseByNatureTable" xlink:label="loc_ypf_ExpenseByNatureTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExpenseByNatureTable" xml:lang="en-US">Expense By Nature [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExpenseByNatureTable" xlink:to="lab_ypf_ExpenseByNatureTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseByNatureLineItems" xlink:label="loc_ypf_ExpenseByNatureLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExpenseByNatureLineItems" xml:lang="en-US">Expense By Nature [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExpenseByNatureLineItems" xlink:to="lab_ypf_ExpenseByNatureLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportWithholdings" xlink:label="loc_ypf_ExportWithholdings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportWithholdings" xml:lang="en-US">Export Withholdings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportWithholdings" xml:lang="en-US">Export withholdings</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportWithholdings" xlink:to="lab_ypf_ExportWithholdings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportWithholdings" xml:lang="en-US">Export withholdings.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ResearchAndDevelopmentExpense" xlink:label="loc_ifrs-full_ResearchAndDevelopmentExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ResearchAndDevelopmentExpense" xml:lang="en-US">Research and development expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ResearchAndDevelopmentExpense" xml:lang="en-US">Research and development expense</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ResearchAndDevelopmentExpense" xlink:to="lab_ifrs-full_ResearchAndDevelopmentExpense" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseRelatingToShortTermLease" xlink:label="loc_ypf_ExpenseRelatingToShortTermLease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExpenseRelatingToShortTermLease" xml:lang="en-US">Expense Relating To Short Term Lease</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ExpenseRelatingToShortTermLease" xml:lang="en-US">Expense relating to short term lease</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExpenseRelatingToShortTermLease" xlink:to="lab_ypf_ExpenseRelatingToShortTermLease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExpenseRelatingToShortTermLease" xml:lang="en-US">Expense relating to short term lease.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExpenseRelatingToLeaseUnderlyingAsset" xlink:label="loc_ypf_ExpenseRelatingToLeaseUnderlyingAsset" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExpenseRelatingToLeaseUnderlyingAsset" xml:lang="en-US">Expense relating to lease underlying asset</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExpenseRelatingToLeaseUnderlyingAsset" xml:lang="en-US">Expense relating to lease underlying asset</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExpenseRelatingToLeaseUnderlyingAsset" xlink:to="lab_ypf_ExpenseRelatingToLeaseUnderlyingAsset" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExpenseRelatingToLeaseUnderlyingAsset" xml:lang="en-US">Expense relating to lease underlying asset.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TurnoverTax" xlink:label="loc_ypf_TurnoverTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TurnoverTax" xml:lang="en-US">Turnover Tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TurnoverTax" xml:lang="en-US">Turnover tax</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TurnoverTax" xlink:to="lab_ypf_TurnoverTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TurnoverTax" xml:lang="en-US">Turnover tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="loc_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xml:lang="en-US">Expense from cash-settled share-based payment transactions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xml:lang="en-US">Expense from cash-settled share-based payment transactions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:to="lab_ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfOtherOperatingResultsNetAbstract" xlink:label="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfOtherOperatingResultsNetAbstract" xml:lang="en-US">Disclosure of Other Operating Results Net [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfOtherOperatingResultsNetAbstract" xlink:to="lab_ypf_DisclosureOfOtherOperatingResultsNetAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfOtherOperatingResultsNetAbstract" xml:lang="en-US">Disclosure of Other Operating Results Net [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LawsuitsOtherOperatingExpense" xlink:label="loc_ypf_LawsuitsOtherOperatingExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LawsuitsOtherOperatingExpense" xml:lang="en-US">Lawsuits Other Operating Expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_LawsuitsOtherOperatingExpense" xml:lang="en-US">Lawsuits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LawsuitsOtherOperatingExpense" xlink:to="lab_ypf_LawsuitsOtherOperatingExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LawsuitsOtherOperatingExpense" xml:lang="en-US">Lawsuits other operating expense.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InsuranceOtherOperatingIncome" xlink:label="loc_ypf_InsuranceOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InsuranceOtherOperatingIncome" xml:lang="en-US">Insurance Other Operating Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InsuranceOtherOperatingIncome" xml:lang="en-US">Insurance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InsuranceOtherOperatingIncome" xlink:to="lab_ypf_InsuranceOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InsuranceOtherOperatingIncome" xml:lang="en-US">Insurance other operating income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MiscellaneousandOtherOperatingIncomeExpense" xlink:label="loc_ypf_MiscellaneousandOtherOperatingIncomeExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MiscellaneousandOtherOperatingIncomeExpense" xml:lang="en-US">Miscellaneous and Other Operating IncomeExpense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MiscellaneousandOtherOperatingIncomeExpense" xml:lang="en-US">Miscellaneous</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MiscellaneousandOtherOperatingIncomeExpense" xlink:to="lab_ypf_MiscellaneousandOtherOperatingIncomeExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MiscellaneousandOtherOperatingIncomeExpense" xml:lang="en-US">Miscellaneous and other operating income/expense.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromSaleOfAssets" xlink:label="loc_ypf_ResultFromSaleOfAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResultFromSaleOfAssets" xml:lang="en-US">Result from Sale of Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ResultFromSaleOfAssets" xml:lang="en-US">Result from sale of assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResultFromSaleOfAssets" xlink:to="lab_ypf_ResultFromSaleOfAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ResultFromSaleOfAssets" xml:lang="en-US">Result from sale of assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportIncreaseProgramOtherOperatingIncome" xlink:label="loc_ypf_ExportIncreaseProgramOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportIncreaseProgramOtherOperatingIncome" xml:lang="en-US">Export Increase Program Other Operating Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportIncreaseProgramOtherOperatingIncome" xml:lang="en-US">Export Increase Program</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportIncreaseProgramOtherOperatingIncome" xlink:to="lab_ypf_ExportIncreaseProgramOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportIncreaseProgramOtherOperatingIncome" xml:lang="en-US">Export increase program other operating income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xlink:label="loc_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xml:lang="en-US">Provision For Severance Indemnities Other Operating Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xml:lang="en-US">Provision for severance indemnities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xlink:to="lab_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" xml:lang="en-US">Provision for severance indemnities other operating income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xlink:label="loc_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xml:lang="en-US">Gain Loss On Change In Fair Value Of Asset Held For Sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xml:lang="en-US">Result from changes in fair value of assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xlink:to="lab_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" xml:lang="en-US">Gain loss on change in fair value of asset held for sale.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xlink:label="loc_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xml:lang="en-US">Provision For Operating Optimizations Other Operating Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xml:lang="en-US">Provision for operating optimizations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xlink:to="lab_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" xml:lang="en-US">Provision for operating optimizations other operating income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromSaleOfCompanies" xlink:label="loc_ypf_ResultFromSaleOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResultFromSaleOfCompanies" xml:lang="en-US">Result from sale of companies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResultFromSaleOfCompanies" xlink:to="lab_ypf_ResultFromSaleOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ResultFromSaleOfCompanies" xml:lang="en-US">Result from sale of companies.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultFromRevaluationOfCompanies" xlink:label="loc_ypf_ResultFromRevaluationOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResultFromRevaluationOfCompanies" xml:lang="en-US">Result from revaluation of companies</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResultFromRevaluationOfCompanies" xlink:to="lab_ypf_ResultFromRevaluationOfCompanies" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ResultFromRevaluationOfCompanies" xml:lang="en-US">Result from revaluation of companies.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionForObsolescenceOfMaterialAndEquipment" xlink:label="loc_ypf_ProvisionForObsolescenceOfMaterialAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialAndEquipment" xml:lang="en-US">Provision For Obsolescence Of Material And Equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialAndEquipment" xml:lang="en-US">Provision for obsolescence of materials and equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionForObsolescenceOfMaterialAndEquipment" xlink:to="lab_ypf_ProvisionForObsolescenceOfMaterialAndEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionForObsolescenceOfMaterialAndEquipment" xml:lang="en-US">Provision for obsolescence of materials and equipment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFinancialResultsNetAbstract" xlink:label="loc_ypf_DisclosureOfFinancialResultsNetAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFinancialResultsNetAbstract" xml:lang="en-US">Disclosure of Financial Results Net [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFinancialResultsNetAbstract" xlink:to="lab_ypf_DisclosureOfFinancialResultsNetAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfFinancialResultsNetAbstract" xml:lang="en-US">Disclosure of financial results net.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialIncomeAbstract" xlink:label="loc_ypf_FinancialIncomeAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialIncomeAbstract" xml:lang="en-US">Financial Income [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinancialIncomeAbstract" xml:lang="en-US">Financial income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialIncomeAbstract" xlink:to="lab_ypf_FinancialIncomeAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialIncomeAbstract" xml:lang="en-US">Financial income.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestIncomeOnCashAndCashEquivalents" xlink:label="loc_ifrs-full_InterestIncomeOnCashAndCashEquivalents" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestIncomeOnCashAndCashEquivalents" xml:lang="en-US">Interest income on cash and cash equivalents</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InterestIncomeOnCashAndCashEquivalents" xml:lang="en-US">Interest on cash and cash equivalents and investments in financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestIncomeOnCashAndCashEquivalents" xlink:to="lab_ifrs-full_InterestIncomeOnCashAndCashEquivalents" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InterestIncomeOnTradeReceivables" xlink:label="loc_ypf_InterestIncomeOnTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InterestIncomeOnTradeReceivables" xml:lang="en-US">Interest Income On Trade Receivables</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InterestIncomeOnTradeReceivables" xml:lang="en-US">Interest on trade receivables</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InterestIncomeOnTradeReceivables" xlink:to="lab_ypf_InterestIncomeOnTradeReceivables" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InterestIncomeOnTradeReceivables" xml:lang="en-US">Interest income on trade receivables.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialIncome" xlink:label="loc_ypf_OtherFinancialIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherFinancialIncome" xml:lang="en-US">Other Financial Income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherFinancialIncome" xml:lang="en-US">Other financial income</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherFinancialIncome" xlink:to="lab_ypf_OtherFinancialIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherFinancialIncome" xml:lang="en-US">Other financial income.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FinancialCostsAbstract" xlink:label="loc_ypf_FinancialCostsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FinancialCostsAbstract" xml:lang="en-US">Financial Costs [Abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FinancialCostsAbstract" xml:lang="en-US">Financial costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FinancialCostsAbstract" xlink:to="lab_ypf_FinancialCostsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FinancialCostsAbstract" xml:lang="en-US">Financial costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xlink:label="loc_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xml:lang="en-US">Hydrocarbon Well Abandonment Provision Financial Accretion</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xml:lang="en-US">Hydrocarbon well abandonment provision financial accretion</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xlink:to="lab_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" xml:lang="en-US">Hydrocarbon well abandonment provision financial accretion.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialCosts" xlink:label="loc_ypf_OtherFinancialCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherFinancialCosts" xml:lang="en-US">Other Financial Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_OtherFinancialCosts" xml:lang="en-US">Other financial costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherFinancialCosts" xlink:to="lab_ypf_OtherFinancialCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherFinancialCosts" xml:lang="en-US">Other financial costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherFinancialResultsAbstract" xlink:label="loc_ypf_OtherFinancialResultsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherFinancialResultsAbstract" xml:lang="en-US">Other financial results [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherFinancialResultsAbstract" xml:lang="en-US">Other financial results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherFinancialResultsAbstract" xlink:to="lab_ypf_OtherFinancialResultsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherFinancialResultsAbstract" xml:lang="en-US">Other financial result.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherFinanceIncome" xlink:label="loc_ifrs-full_OtherFinanceIncome" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherFinanceIncome" xml:lang="en-US">Other finance income</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_OtherFinanceIncome" xml:lang="en-US">Total other financial results</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherFinanceIncome" xlink:to="lab_ifrs-full_OtherFinanceIncome" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsFromTransactionsWithFinancialAssets" xlink:label="loc_ypf_ResultsFromTransactionsWithFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResultsFromTransactionsWithFinancialAssets" xml:lang="en-US">Results From Transactions With Financial Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ResultsFromTransactionsWithFinancialAssets" xml:lang="en-US">Result from transactions with financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResultsFromTransactionsWithFinancialAssets" xlink:to="lab_ypf_ResultsFromTransactionsWithFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ResultsFromTransactionsWithFinancialAssets" xml:lang="en-US">Results from transactions with financial assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesGeneratedByLoans" xlink:label="loc_ypf_ExchangeDifferencesGeneratedByLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExchangeDifferencesGeneratedByLoans" xml:lang="en-US">Exchange Differences Generated By Loans</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExchangeDifferencesGeneratedByLoans" xml:lang="en-US">Exchange differences generated by loans</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExchangeDifferencesGeneratedByLoans" xlink:to="lab_ypf_ExchangeDifferencesGeneratedByLoans" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExchangeDifferencesGeneratedByLoans" xml:lang="en-US">Exchange differences generated by loans.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xlink:label="loc_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xml:lang="en-US">Exchange Differences Generated By Cash And Cash Equivalents And Investments In Financial Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xml:lang="en-US">Exchange differences generated by cash and cash equivalents and investments in financial assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xlink:to="lab_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" xml:lang="en-US">Exchange differences generated by cash and cash equivalents and investments in financial assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherExchangeDifferencesNet" xlink:label="loc_ypf_OtherExchangeDifferencesNet" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherExchangeDifferencesNet" xml:lang="en-US">Other Exchange Differences, Net</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherExchangeDifferencesNet" xml:lang="en-US">Other exchange differences, net</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherExchangeDifferencesNet" xlink:to="lab_ypf_OtherExchangeDifferencesNet" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherExchangeDifferencesNet" xml:lang="en-US">Other exchange differences, net.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" xlink:label="loc_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" xml:lang="en-US">Accretion Of Liabilities Associated With Assets Held For Sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" xml:lang="en-US">Accretion of liabilities associated with assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" xlink:to="lab_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" xml:lang="en-US">Accretion of liabilities associated with assets held for sale.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdjustmentForInflation" xlink:label="loc_ypf_AdjustmentForInflation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdjustmentForInflation" xml:lang="en-US">Adjustment for Inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdjustmentForInflation" xlink:to="lab_ypf_AdjustmentForInflation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdjustmentForInflation" xml:lang="en-US">Adjustment for inflation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EffectOfTranslation" xlink:label="loc_ypf_EffectOfTranslation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EffectOfTranslation" xml:lang="en-US">Effect of Translation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EffectOfTranslation" xlink:to="lab_ypf_EffectOfTranslation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EffectOfTranslation" xml:lang="en-US">Effect of translation.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsAbstract" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsAbstract" xml:lang="en-US">Disclosure of joint operations [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsAbstract" xlink:to="lab_ifrs-full_DisclosureOfJointOperationsAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsTable" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsTable" xml:lang="en-US">Disclosure of joint operations [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsTable" xml:lang="en-US">Disclosure of joint operations [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsTable" xlink:to="lab_ifrs-full_DisclosureOfJointOperationsTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfJointOperationsLineItems" xlink:label="loc_ifrs-full_DisclosureOfJointOperationsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsLineItems" xml:lang="en-US">Disclosure of joint operations [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfJointOperationsLineItems" xml:lang="en-US">Disclosure of joint operations [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfJointOperationsLineItems" xlink:to="lab_ifrs-full_DisclosureOfJointOperationsLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProductionCost" xlink:label="loc_ypf_ProductionCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProductionCost" xml:lang="en-US">Production Cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProductionCost" xml:lang="en-US">Production cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ProductionCost" xml:lang="en-US">Production costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProductionCost" xlink:to="lab_ypf_ProductionCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProductionCost" xml:lang="en-US">Production cost.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointOperationsMember" xlink:label="loc_ifrs-full_JointOperationsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointOperationsMember" xml:lang="en-US">Total for all joint operations [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointOperationsMember" xml:lang="en-US">Joint operations and consortiums [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointOperationsMember" xlink:to="lab_ifrs-full_JointOperationsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PanAmericanEnergyMember" xlink:label="loc_ypf_PanAmericanEnergyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PanAmericanEnergyMember" xml:lang="en-US">Pan American Energy [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_PanAmericanEnergyMember" xml:lang="en-US">Pan American Energy [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PanAmericanEnergyMember" xlink:to="lab_ypf_PanAmericanEnergyMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PanAmericanEnergyMember" xml:lang="en-US">Pan American Energy.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TotalAustralMember" xlink:label="loc_ypf_TotalAustralMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TotalAustralMember" xml:lang="en-US">Total Austral [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TotalAustralMember" xml:lang="en-US">Total Austral [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TotalAustralMember" xlink:to="lab_ypf_TotalAustralMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TotalAustralMember" xml:lang="en-US">Total Austral.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TecpetrolMember" xlink:label="loc_ypf_TecpetrolMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TecpetrolMember" xml:lang="en-US">Tecpetrol [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_TecpetrolMember" xml:lang="en-US">Tecpetrol S.A. [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TecpetrolMember" xlink:to="lab_ypf_TecpetrolMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TecpetrolMember" xml:lang="en-US">Tecpetrol.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EnapSipetrolArgentinaMember" xlink:label="loc_ypf_EnapSipetrolArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EnapSipetrolArgentinaMember" xml:lang="en-US">Enap Sipetrol Argentina [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EnapSipetrolArgentinaMember" xml:lang="en-US">Enap Sipetrol Argentina [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EnapSipetrolArgentinaMember" xlink:to="lab_ypf_EnapSipetrolArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EnapSipetrolArgentinaMember" xml:lang="en-US">Enap Sipetrol Argentina [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_YacimientosPetroliferosFiscalesMember" xlink:label="loc_ypf_YacimientosPetroliferosFiscalesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_YacimientosPetroliferosFiscalesMember" xml:lang="en-US">Yacimientos Petroliferos Fiscales [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_YacimientosPetroliferosFiscalesMember" xml:lang="en-US">YPF [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_YacimientosPetroliferosFiscalesMember" xlink:to="lab_ypf_YacimientosPetroliferosFiscalesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_YacimientosPetroliferosFiscalesMember" xml:lang="en-US">YPFB</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PluspetrolSAMember" xlink:label="loc_ypf_PluspetrolSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PluspetrolSAMember" xml:lang="en-US">Pluspetrol S A [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PluspetrolSAMember" xml:lang="en-US">Pluspetrol S.A. [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PluspetrolSAMember" xlink:to="lab_ypf_PluspetrolSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PluspetrolSAMember" xml:lang="en-US">Pluspetrol S.A.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaBvMember" xlink:label="loc_ypf_EquinorArgentinaBvMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EquinorArgentinaBvMember" xml:lang="en-US">Equinor Argentina BV [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EquinorArgentinaBvMember" xlink:to="lab_ypf_EquinorArgentinaBvMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EquinorArgentinaBvMember" xml:lang="en-US">Equinor Argentina BV</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaAsMember" xlink:label="loc_ypf_EquinorArgentinaAsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EquinorArgentinaAsMember" xml:lang="en-US">Equinor Argentina AS [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EquinorArgentinaAsMember" xlink:to="lab_ypf_EquinorArgentinaAsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorMember" xlink:label="loc_ypf_EquinorMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EquinorMember" xml:lang="en-US">Equinor [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EquinorMember" xlink:to="lab_ypf_EquinorMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EquinorMember" xml:lang="en-US">Equinor.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaEnergiaSAMember" xlink:label="loc_ypf_PampaEnergiaSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PampaEnergiaSAMember" xml:lang="en-US">Pampa Energia S.A. [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PampaEnergiaSAMember" xlink:to="lab_ypf_PampaEnergiaSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PampaEnergiaSAMember" xml:lang="en-US">Pampa Energia S.A. [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShellArgentinaSaMember" xlink:label="loc_ypf_ShellArgentinaSaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShellArgentinaSaMember" xml:lang="en-US">Shell Argentina S.A. [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShellArgentinaSaMember" xlink:to="lab_ypf_ShellArgentinaSaMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" xlink:label="loc_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" xml:lang="en-US">Principal place of business of joint operation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" xml:lang="en-US">Name of the JO</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" xlink:to="lab_ifrs-full_PrincipalPlaceOfBusinessOfJointOperation" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CountryOfIncorporationOfJointOperation" xlink:label="loc_ifrs-full_CountryOfIncorporationOfJointOperation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CountryOfIncorporationOfJointOperation" xml:lang="en-US">Country of incorporation of joint operation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CountryOfIncorporationOfJointOperation" xml:lang="en-US">Location</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CountryOfIncorporationOfJointOperation" xlink:to="lab_ifrs-full_CountryOfIncorporationOfJointOperation" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:label="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInJointOperation" xml:lang="en-US">Proportion of ownership interest in joint operation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInJointOperation" xml:lang="en-US">Participation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInJointOperation" xml:lang="en-US">Equity interest in joint operation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/presentationGuidance" xlink:label="lab_ifrs-full_ProportionOfOwnershipInterestInJointOperation" xml:lang="en-US">Proportion of explotation concession of Loma Campana</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProportionOfOwnershipInterestInJointOperation" xlink:to="lab_ifrs-full_ProportionOfOwnershipInterestInJointOperation" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcambucoMember" xlink:label="loc_ypf_AcambucoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AcambucoMember" xml:lang="en-US">Acambuco [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AcambucoMember" xml:lang="en-US">Acambuco [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AcambucoMember" xlink:to="lab_ypf_AcambucoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AcambucoMember" xml:lang="en-US">Acambuco.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaPichanaAreaVacaMuertaMember" xlink:label="loc_ypf_AguadaPichanaAreaVacaMuertaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaPichanaAreaVacaMuertaMember" xml:lang="en-US">Aguada Pichana Area Vaca Muerta [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguadaPichanaAreaVacaMuertaMember" xml:lang="en-US">Aguada Pichana - Area Vaca Muerta [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaPichanaAreaVacaMuertaMember" xlink:to="lab_ypf_AguadaPichanaAreaVacaMuertaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AguadaPichanaAreaVacaMuertaMember" xml:lang="en-US">Aguada Pichana Area Vaca Muerta.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaPichanaResidualMember" xlink:label="loc_ypf_AguadaPichanaResidualMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaPichanaResidualMember" xml:lang="en-US">Aguada Pichana Residual [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguadaPichanaResidualMember" xml:lang="en-US">Aguada Pichana - Residual [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaPichanaResidualMember" xlink:to="lab_ypf_AguadaPichanaResidualMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AguadaPichanaResidualMember" xml:lang="en-US">Aguada Pichana Residual.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguaragueMember" xlink:label="loc_ypf_AguaragueMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguaragueMember" xml:lang="en-US">Aguarague [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguaragueMember" xml:lang="en-US">Aguarague [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguaragueMember" xlink:to="lab_ypf_AguaragueMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AguaragueMember" xml:lang="en-US">Aguarague.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Cam2aSurMember" xlink:label="loc_ypf_Cam2aSurMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Cam2aSurMember" xml:lang="en-US">CAM2A SUR [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Cam2aSurMember" xml:lang="en-US">CAM-2A SUR [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Cam2aSurMember" xlink:to="lab_ypf_Cam2aSurMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_Cam2aSurMember" xml:lang="en-US">CAM-2A SUR.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsorcioCnq7aMember" xlink:label="loc_ypf_ConsorcioCnq7aMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ConsorcioCnq7aMember" xml:lang="en-US">Consorcio CNQ7A [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ConsorcioCnq7aMember" xml:lang="en-US">Consorcio CNQ 7A [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ConsorcioCnq7aMember" xlink:to="lab_ypf_ConsorcioCnq7aMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ConsorcioCnq7aMember" xml:lang="en-US">Consorcio CNQ7A.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LinderoAtravesadoMember" xlink:label="loc_ypf_LinderoAtravesadoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LinderoAtravesadoMember" xml:lang="en-US">Lindero Atravesado [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LinderoAtravesadoMember" xml:lang="en-US">Lindero Atravesado [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LinderoAtravesadoMember" xlink:to="lab_ypf_LinderoAtravesadoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LinderoAtravesadoMember" xml:lang="en-US">Lindero Atravesado.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MagallanesMember" xlink:label="loc_ypf_MagallanesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MagallanesMember" xml:lang="en-US">Magallanes [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_MagallanesMember" xml:lang="en-US">Magallanes [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MagallanesMember" xlink:to="lab_ypf_MagallanesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MagallanesMember" xml:lang="en-US">Magallanes.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LomaCampanaMember" xlink:label="loc_ypf_LomaCampanaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LomaCampanaMember" xml:lang="en-US">Loma Campana [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LomaCampanaMember" xml:lang="en-US">Loma Campana [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LomaCampanaMember" xlink:to="lab_ypf_LomaCampanaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LomaCampanaMember" xml:lang="en-US">Loma Campana.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RinconDelMangrulloMember" xlink:label="loc_ypf_RinconDelMangrulloMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RinconDelMangrulloMember" xml:lang="en-US">Rincon del Mangrullo [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RinconDelMangrulloMember" xml:lang="en-US">Rincon del Mangrullo [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RinconDelMangrulloMember" xlink:to="lab_ypf_RinconDelMangrulloMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RinconDelMangrulloMember" xml:lang="en-US">Rincon del Mangrullo.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SanRoqueMember" xlink:label="loc_ypf_SanRoqueMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SanRoqueMember" xml:lang="en-US">San Roque [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SanRoqueMember" xml:lang="en-US">San Roque [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SanRoqueMember" xlink:to="lab_ypf_SanRoqueMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SanRoqueMember" xml:lang="en-US">San Roque.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NarambuenaMember" xlink:label="loc_ypf_NarambuenaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NarambuenaMember" xml:lang="en-US">Narambuena [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NarambuenaMember" xml:lang="en-US">Narambuena [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NarambuenaMember" xlink:to="lab_ypf_NarambuenaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NarambuenaMember" xml:lang="en-US">Narambuena.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAmargaChicaMember" xlink:label="loc_ypf_LaAmargaChicaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaAmargaChicaMember" xml:lang="en-US">La Amarga Chica [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaAmargaChicaMember" xml:lang="en-US">La Amarga Chica [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaAmargaChicaMember" xlink:to="lab_ypf_LaAmargaChicaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LaAmargaChicaMember" xml:lang="en-US">La Amarga Chica.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ElOrejanoMember" xlink:label="loc_ypf_ElOrejanoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ElOrejanoMember" xml:lang="en-US">El Orejano [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ElOrejanoMember" xml:lang="en-US">El Orejano [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ElOrejanoMember" xlink:to="lab_ypf_ElOrejanoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ElOrejanoMember" xml:lang="en-US">El Orejano.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroMember" xlink:label="loc_ypf_BajoDelToroMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BajoDelToroMember" xml:lang="en-US">Bajo del Toro [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BajoDelToroMember" xml:lang="en-US">Bajo del Toro [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BajoDelToroMember" xlink:to="lab_ypf_BajoDelToroMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BajoDelToroMember" xml:lang="en-US">Bajo del Toro.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurMember" xlink:label="loc_ypf_BandurriaSurMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BandurriaSurMember" xml:lang="en-US">Bandurria Sur [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BandurriaSurMember" xml:lang="en-US">Bandurria Sur [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BandurriaSurMember" xlink:to="lab_ypf_BandurriaSurMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BandurriaSurMember" xml:lang="en-US">Bandurria Sur.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RioNeuqunMember" xlink:label="loc_ypf_RioNeuqunMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RioNeuqunMember" xml:lang="en-US">Rio Neuqun [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RioNeuqunMember" xml:lang="en-US">Rio Neuqu&#233;n [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RioNeuqunMember" xlink:to="lab_ypf_RioNeuqunMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChachahuenMember" xlink:label="loc_ypf_ChachahuenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ChachahuenMember" xml:lang="en-US">Chachahuen [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ChachahuenMember" xml:lang="en-US">Chachahuen [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ChachahuenMember" xlink:to="lab_ypf_ChachahuenMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaYeguasIMember" xlink:label="loc_ypf_PampaYeguasIMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PampaYeguasIMember" xml:lang="en-US">Pampa Yeguas I [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PampaYeguasIMember" xml:lang="en-US">Pampa Yeguas I [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PampaYeguasIMember" xlink:to="lab_ypf_PampaYeguasIMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LomaDelMolleMember" xlink:label="loc_ypf_LomaDelMolleMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LomaDelMolleMember" xml:lang="en-US">Loma Del Molle [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LomaDelMolleMember" xml:lang="en-US">Loma del Molle [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LomaDelMolleMember" xlink:to="lab_ypf_LomaDelMolleMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can100Member" xlink:label="loc_ypf_Can100Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Can100Member" xml:lang="en-US">CAN 100 [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_Can100Member" xml:lang="en-US">CAN-100 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Can100Member" xlink:to="lab_ypf_Can100Member" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaCaleraMember" xlink:label="loc_ypf_LaCaleraMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaCaleraMember" xml:lang="en-US">La Calera [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaCaleraMember" xml:lang="en-US">La Calera [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaCaleraMember" xlink:to="lab_ypf_LaCaleraMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajadaAeloMember" xlink:label="loc_ypf_BajadaAeloMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BajadaAeloMember" xml:lang="en-US">Bajada Aelo [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BajadaAeloMember" xml:lang="en-US">Bajada A&#241;elo [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BajadaAeloMember" xlink:to="lab_ypf_BajadaAeloMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can102Member" xlink:label="loc_ypf_Can102Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Can102Member" xml:lang="en-US">CAN 102 [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Can102Member" xlink:to="lab_ypf_Can102Member" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Can114Member" xlink:label="loc_ypf_Can114Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Can114Member" xml:lang="en-US">CAN 114 [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Can114Member" xlink:to="lab_ypf_Can114Member" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDeCastroAndAguadaPichanaOesteMember" xlink:label="loc_ypf_AguadaDeCastroAndAguadaPichanaOesteMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaDeCastroAndAguadaPichanaOesteMember" xml:lang="en-US">Aguada de Castro and Aguada Pichana Oeste [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguadaDeCastroAndAguadaPichanaOesteMember" xml:lang="en-US">Aguada de Castro and Aguada Pichana Oeste [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaDeCastroAndAguadaPichanaOesteMember" xlink:to="lab_ypf_AguadaDeCastroAndAguadaPichanaOesteMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LasTacanasMember" xlink:label="loc_ypf_LasTacanasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LasTacanasMember" xml:lang="en-US">Las Tacanas [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LasTacanasMember" xlink:to="lab_ypf_LasTacanasMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RamosMember" xlink:label="loc_ypf_RamosMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RamosMember" xml:lang="en-US">Ramos [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RamosMember" xlink:to="lab_ypf_RamosMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaVillanuevaMember" xlink:label="loc_ypf_AguadaVillanuevaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaVillanuevaMember" xml:lang="en-US">Aguada Villanueva [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguadaVillanuevaMember" xml:lang="en-US">Aguada Villanueva [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaVillanuevaMember" xlink:to="lab_ypf_AguadaVillanuevaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Aus105Member" xlink:label="loc_ypf_Aus105Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Aus105Member" xml:lang="en-US">AUS 105 [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Aus105Member" xml:lang="en-US">AUS 105 [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Aus105Member" xlink:to="lab_ypf_Aus105Member" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Aus106Member" xlink:label="loc_ypf_Aus106Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Aus106Member" xml:lang="en-US">AUS 106 [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_Aus106Member" xml:lang="en-US">AUS 106 [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Aus106Member" xlink:to="lab_ypf_Aus106Member" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaEscalonadaMember" xlink:label="loc_ypf_LaEscalonadaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaEscalonadaMember" xml:lang="en-US">La Escalonada [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaEscalonadaMember" xml:lang="en-US">La Escalonada [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaEscalonadaMember" xlink:to="lab_ypf_LaEscalonadaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MesetaNuevaEsperanzaMember" xlink:label="loc_ypf_MesetaNuevaEsperanzaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MesetaNuevaEsperanzaMember" xml:lang="en-US">Meseta Nueva Esperanza [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MesetaNuevaEsperanzaMember" xml:lang="en-US">Meseta Nueva Esperanza [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MesetaNuevaEsperanzaMember" xlink:to="lab_ypf_MesetaNuevaEsperanzaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RinconDeLaCenizaMember" xlink:label="loc_ypf_RinconDeLaCenizaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RinconDeLaCenizaMember" xml:lang="en-US">Rincon de la Ceniza [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RinconDeLaCenizaMember" xml:lang="en-US">Rincon de la Ceniza [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RinconDeLaCenizaMember" xlink:to="lab_ypf_RinconDeLaCenizaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataConsorcioChihuidoMember" xlink:label="loc_ypf_SierraChataConsorcioChihuidoMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SierraChataConsorcioChihuidoMember" xml:lang="en-US">Sierra Chata Consorcio Chihuido [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SierraChataConsorcioChihuidoMember" xml:lang="en-US">Sierra Chata Consorcio Chihuido [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SierraChataConsorcioChihuidoMember" xlink:to="lab_ypf_SierraChataConsorcioChihuidoMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDelChaarMember" xlink:label="loc_ypf_AguadaDelChaarMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaDelChaarMember" xml:lang="en-US">Aguada del Chaar [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguadaDelChaarMember" xml:lang="en-US">Aguada del Chaar [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaDelChaarMember" xlink:to="lab_ypf_AguadaDelChaarMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JOMember" xlink:label="loc_ypf_JOMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_JOMember" xml:lang="en-US">J O [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_JOMember" xml:lang="en-US">JO [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_JOMember" xlink:to="lab_ypf_JOMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_JOMember" xml:lang="en-US">JO.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfShareCapitalAbstract" xlink:label="loc_ypf_DisclosureOfShareCapitalAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfShareCapitalAbstract" xml:lang="en-US">Disclosure of Share Capital [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfShareCapitalAbstract" xlink:to="lab_ypf_DisclosureOfShareCapitalAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfShareCapitalAbstract" xml:lang="en-US">Disclosure of share capital</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xml:lang="en-US">Disclosure Of Detailed information Of Share Capital [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xml:lang="en-US">Disclosure Of Detailed information Of Share Capital [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xlink:to="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalTable" xml:lang="en-US">Disclosure of detailed information of share capital.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RepsolSAMember" xlink:label="loc_ypf_RepsolSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RepsolSAMember" xml:lang="en-US">Repsol S. A. [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RepsolSAMember" xml:lang="en-US">Expropation Shares of YPF Owned by Repsol [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RepsolSAMember" xlink:to="lab_ypf_RepsolSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RepsolSAMember" xml:lang="en-US">Repsol S. A.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetersenEnergiaSauAndAffiliatesMember" xlink:label="loc_ypf_PetersenEnergiaSauAndAffiliatesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PetersenEnergiaSauAndAffiliatesMember" xml:lang="en-US">Petersen Energia SAU And Affiliates [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PetersenEnergiaSauAndAffiliatesMember" xml:lang="en-US">Petersen Energia SAU and Affiliates [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PetersenEnergiaSauAndAffiliatesMember" xlink:to="lab_ypf_PetersenEnergiaSauAndAffiliatesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PetersenEnergiaSauAndAffiliatesMember" xml:lang="en-US">Petersen Energia SAU and affiliates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FederalGovernmentMember" xlink:label="loc_ypf_FederalGovernmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FederalGovernmentMember" xml:lang="en-US">Federal Government [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FederalGovernmentMember" xml:lang="en-US">Federal Government [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FederalGovernmentMember" xlink:to="lab_ypf_FederalGovernmentMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FederalGovernmentMember" xml:lang="en-US">Federal Government of a Country.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StateOrProvinceMember" xlink:label="loc_ypf_StateOrProvinceMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StateOrProvinceMember" xml:lang="en-US">State or Province [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_StateOrProvinceMember" xml:lang="en-US">State or Province [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StateOrProvinceMember" xlink:to="lab_ypf_StateOrProvinceMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StateOrProvinceMember" xml:lang="en-US">State or Province of a Country.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalAxis" xlink:label="loc_ifrs-full_ClassesOfShareCapitalAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfShareCapitalAxis" xml:lang="en-US">Classes of share capital [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfShareCapitalAxis" xml:lang="en-US">Classes of share capital [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfShareCapitalAxis" xlink:to="lab_ifrs-full_ClassesOfShareCapitalAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassesOfShareCapitalDomain" xlink:label="loc_ifrs-full_ClassesOfShareCapitalDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassesOfShareCapitalDomain" xml:lang="en-US">Classes of share capital [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ClassesOfShareCapitalDomain" xml:lang="en-US">Classes of share capital [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassesOfShareCapitalDomain" xlink:to="lab_ifrs-full_ClassesOfShareCapitalDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OrdinarySharesMember" xlink:label="loc_ifrs-full_OrdinarySharesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OrdinarySharesMember" xml:lang="en-US">Ordinary shares [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_OrdinarySharesMember" xml:lang="en-US">Ordinary shares [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OrdinarySharesMember" xlink:to="lab_ifrs-full_OrdinarySharesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CapitalStockMember" xlink:label="loc_ypf_CapitalStockMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CapitalStockMember" xml:lang="en-US">Capital Stock [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CapitalStockMember" xlink:to="lab_ypf_CapitalStockMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xlink:label="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xml:lang="en-US">Disclosure Of Detailed information Of Share Capital [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xml:lang="en-US">Disclosure Of Detailed information Of Share Capital [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xlink:to="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" xml:lang="en-US">Disclosure Of Detailed information Of Share Capital [line items]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SubscribedCapital" xlink:label="loc_ypf_SubscribedCapital" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SubscribedCapital" xml:lang="en-US">Subscribed capital</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SubscribedCapital" xml:lang="en-US">Share capital</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SubscribedCapital" xlink:to="lab_ypf_SubscribedCapital" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SubscribedCapital" xml:lang="en-US">Subscribed capital.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfSharesSubscribed" xlink:label="loc_ypf_NumberOfSharesSubscribed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfSharesSubscribed" xml:lang="en-US">Number Of Shares Subscribed</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NumberOfSharesSubscribed" xml:lang="en-US">Number of shares of common stock</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfSharesSubscribed" xlink:to="lab_ypf_NumberOfSharesSubscribed" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfSharesSubscribed" xml:lang="en-US">Number of shares subscribed.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfClassesOfShares" xlink:label="loc_ypf_DescriptionOfClassesOfShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfClassesOfShares" xml:lang="en-US">Description Of Classes Of Shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfClassesOfShares" xml:lang="en-US">Description in classes of shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfClassesOfShares" xlink:to="lab_ypf_DescriptionOfClassesOfShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfClassesOfShares" xml:lang="en-US">Description of classes of shares.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ParValuePerShare" xlink:label="loc_ifrs-full_ParValuePerShare" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ParValuePerShare" xml:lang="en-US">Par value per share</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ParValuePerShare" xml:lang="en-US">Par value of share</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ParValuePerShare" xlink:to="lab_ifrs-full_ParValuePerShare" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfVotingRights" xlink:label="loc_ypf_DescriptionOfVotingRights" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfVotingRights" xml:lang="en-US">Description Of Voting Rights</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfVotingRights" xml:lang="en-US">Description of voting rights</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfVotingRights" xlink:to="lab_ypf_DescriptionOfVotingRights" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfVotingRights" xml:lang="en-US">Description of voting rights.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfSharesOutstanding" xlink:label="loc_ifrs-full_NumberOfSharesOutstanding" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NumberOfSharesOutstanding" xml:lang="en-US">Number of shares outstanding</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NumberOfSharesOutstanding" xml:lang="en-US">Common shares outstanding</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NumberOfSharesOutstanding" xlink:to="lab_ifrs-full_NumberOfSharesOutstanding" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DescriptionOfGrantBasedOnSharesOutstanding" xlink:label="loc_ypf_DescriptionOfGrantBasedOnSharesOutstanding" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DescriptionOfGrantBasedOnSharesOutstanding" xml:lang="en-US">Description Of Grant Based On Shares Outstanding</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DescriptionOfGrantBasedOnSharesOutstanding" xml:lang="en-US">Description of shares based on grants outstanding</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DescriptionOfGrantBasedOnSharesOutstanding" xlink:to="lab_ypf_DescriptionOfGrantBasedOnSharesOutstanding" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DescriptionOfGrantBasedOnSharesOutstanding" xml:lang="en-US">Description of grant based on shares outstanding.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInEquity" xlink:label="loc_ypf_ProportionOfOwnershipInterestInEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProportionOfOwnershipInterestInEquity" xml:lang="en-US">Proportion Of Ownership Interest In Equity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProportionOfOwnershipInterestInEquity" xml:lang="en-US">Proportion of ownership interests in equity</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProportionOfOwnershipInterestInEquity" xlink:to="lab_ypf_ProportionOfOwnershipInterestInEquity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProportionOfOwnershipInterestInEquity" xml:lang="en-US">Proportion of ownership interest in equity.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xlink:label="loc_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xml:lang="en-US">Proportion Of OwnerShip Interest In Shares By Related Party</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xml:lang="en-US">Participation in the capital stock</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xlink:to="lab_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" xml:lang="en-US">Proportion of ownership interest in shares by related party.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSharesSubjectToExpropriation" xlink:label="loc_ypf_PercentageOfSharesSubjectToExpropriation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfSharesSubjectToExpropriation" xml:lang="en-US">Percentage Of Shares Subject To Expropriation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfSharesSubjectToExpropriation" xml:lang="en-US">Percentage of shares subject to expropriation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfSharesSubjectToExpropriation" xlink:to="lab_ypf_PercentageOfSharesSubjectToExpropriation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfSharesSubjectToExpropriation" xml:lang="en-US">Percentage of shares subject to expropriation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TreasuryStockSharesAcquired1" xlink:label="loc_ypf_TreasuryStockSharesAcquired1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TreasuryStockSharesAcquired1" xml:lang="en-US">Treasury Stock Shares Acquired 1</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TreasuryStockSharesAcquired1" xml:lang="en-US">Repurchase of own shares issued, shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TreasuryStockSharesAcquired1" xlink:to="lab_ypf_TreasuryStockSharesAcquired1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TreasuryStockSharesAcquired1" xml:lang="en-US">Treasury Stock Shares Acquired 1</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfTreasuryShares" xlink:label="loc_ifrs-full_PurchaseOfTreasuryShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PurchaseOfTreasuryShares" xml:lang="en-US">Purchase of treasury shares</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_PurchaseOfTreasuryShares" xml:lang="en-US">Acquisition cost of treasury shares</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PurchaseOfTreasuryShares" xlink:to="lab_ifrs-full_PurchaseOfTreasuryShares" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xlink:label="loc_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xml:lang="en-US">Legal Reserves As A Percentage Of Net Profit Prior Year Adjustments And Transfer From Other Comprehensive Income Minimum</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xml:lang="en-US">Legal reserves as a percentage of net profit prior year adjustments and transfer from other comprehensive income minimum</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xlink:to="lab_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" xml:lang="en-US">Legal reserves as a percentage of net profit prior year adjustments and transfer from other comprehensive income minimum.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaximumPercentageOfLegalReserve" xlink:label="loc_ypf_MaximumPercentageOfLegalReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MaximumPercentageOfLegalReserve" xml:lang="en-US">Maximum Percentage Of Legal Reserve</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MaximumPercentageOfLegalReserve" xml:lang="en-US">Maximum percentage of legal reserve</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MaximumPercentageOfLegalReserve" xlink:to="lab_ypf_MaximumPercentageOfLegalReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MaximumPercentageOfLegalReserve" xml:lang="en-US">Maximum percentage of legal reserve.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RestrictedDistributionOfRetainedEarnings" xlink:label="loc_ypf_RestrictedDistributionOfRetainedEarnings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RestrictedDistributionOfRetainedEarnings" xml:lang="en-US">Restricted Distribution Of Retained Earnings</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RestrictedDistributionOfRetainedEarnings" xml:lang="en-US">Restricted distribution of retained earnings</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RestrictedDistributionOfRetainedEarnings" xlink:to="lab_ypf_RestrictedDistributionOfRetainedEarnings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RestrictedDistributionOfRetainedEarnings" xml:lang="en-US">Restricted distribution of retained earnings.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RetainedEarnings" xlink:label="loc_ifrs-full_RetainedEarnings" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RetainedEarnings" xml:lang="en-US">Retained earnings</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RetainedEarnings" xlink:to="lab_ifrs-full_RetainedEarnings" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageShares" xlink:label="loc_ifrs-full_WeightedAverageShares" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_WeightedAverageShares" xml:lang="en-US">Weighted average number of ordinary shares outstanding</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_WeightedAverageShares" xml:lang="en-US">Weighted average number of shares outstanding</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_WeightedAverageShares" xlink:to="lab_ifrs-full_WeightedAverageShares" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" xlink:to="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xlink:to="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [table]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CsjnMember" xlink:label="loc_ypf_CsjnMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CsjnMember" xml:lang="en-US">CSJN [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CsjnMember" xml:lang="en-US">CSJN [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CsjnMember" xlink:to="lab_ypf_CsjnMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CsjnMember" xml:lang="en-US">CSJN.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xlink:label="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xml:lang="en-US">Disclosure Of Contingent Assets And Liabilities [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xlink:to="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" xml:lang="en-US">Disclosure of contingent assets and liabilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfInterlocutoryJudgments" xlink:label="loc_ypf_NumberOfInterlocutoryJudgments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfInterlocutoryJudgments" xml:lang="en-US">Number Of Interlocutory Judgments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NumberOfInterlocutoryJudgments" xml:lang="en-US">Number of interlocutory judgments issued</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfInterlocutoryJudgments" xlink:to="lab_ypf_NumberOfInterlocutoryJudgments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfInterlocutoryJudgments" xml:lang="en-US">Number of interlocutory judgments.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContractualLiabilityPayableValue" xlink:label="loc_ypf_ContractualLiabilityPayableValue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ContractualLiabilityPayableValue" xml:lang="en-US">Contractual Liability Payable Value</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ContractualLiabilityPayableValue" xml:lang="en-US">Contractual liability payable value</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ContractualLiabilityPayableValue" xlink:to="lab_ypf_ContractualLiabilityPayableValue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ContractualLiabilityPayableValue" xml:lang="en-US">Contractual liability payable value.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectDamagesPayableForBreachOfContract" xlink:label="loc_ypf_DirectDamagesPayableForBreachOfContract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DirectDamagesPayableForBreachOfContract" xml:lang="en-US">Direct Damages Payable For Breach Of Contract</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DirectDamagesPayableForBreachOfContract" xml:lang="en-US">Direct damages payable for breach of contract</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DirectDamagesPayableForBreachOfContract" xlink:to="lab_ypf_DirectDamagesPayableForBreachOfContract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DirectDamagesPayableForBreachOfContract" xml:lang="en-US">Direct damages payable for breach of contract.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesAxis" xlink:label="loc_ypf_LegalEntitiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LegalEntitiesAxis" xml:lang="en-US">Legal entities [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LegalEntitiesAxis" xlink:to="lab_ypf_LegalEntitiesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LegalEntitiesAxis" xml:lang="en-US">Legal entities</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LegalEntitiesMember" xlink:label="loc_ypf_LegalEntitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LegalEntitiesMember" xml:lang="en-US">Legal entities [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LegalEntitiesMember" xlink:to="lab_ypf_LegalEntitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LegalEntitiesMember" xml:lang="en-US">Legal entities</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xlink:label="loc_ypf_AsociacionSuperficiariosDeLaPatagoniaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xml:lang="en-US">Asociacion Superficiarios De La Patagonia [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xml:lang="en-US">Asociacion Superficiarios de la Patagonia [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xlink:to="lab_ypf_AsociacionSuperficiariosDeLaPatagoniaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AsociacionSuperficiariosDeLaPatagoniaMember" xml:lang="en-US">Asociacion Superficiarios de la Patagonia.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateAxis" xlink:label="loc_ypf_ExchangeRateAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExchangeRateAxis" xml:lang="en-US">Exchange Rate [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExchangeRateAxis" xlink:to="lab_ypf_ExchangeRateAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExchangeRateAxis" xml:lang="en-US">Exchange rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExchangeRateMember" xlink:label="loc_ypf_ExchangeRateMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExchangeRateMember" xml:lang="en-US">Exchange Rate [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExchangeRateMember" xlink:to="lab_ypf_ExchangeRateMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExchangeRateMember" xml:lang="en-US">Exchange rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsAxis" xlink:label="loc_ypf_CaseDetailsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CaseDetailsAxis" xml:lang="en-US">Case Details [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CaseDetailsAxis" xlink:to="lab_ypf_CaseDetailsAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CaseDetailsMember" xlink:label="loc_ypf_CaseDetailsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CaseDetailsMember" xml:lang="en-US">Case Details [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CaseDetailsMember" xlink:to="lab_ypf_CaseDetailsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" xlink:label="loc_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" xml:lang="en-US">Peterson And Eton Park And YPF And The Republic [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" xml:lang="en-US">Peterson and eton park and ypf and the republic [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" xlink:to="lab_ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfGeographicalAreasAbstract" xlink:label="loc_ifrs-full_DisclosureOfGeographicalAreasAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfGeographicalAreasAbstract" xml:lang="en-US">Disclosure of geographical areas [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfGeographicalAreasAbstract" xlink:to="lab_ifrs-full_DisclosureOfGeographicalAreasAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContractualCommitmentsTable" xlink:label="loc_ypf_DisclosureOfContractualCommitmentsTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfContractualCommitmentsTable" xml:lang="en-US">Disclosure of Contractual Commitments [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsTable" xlink:to="lab_ypf_DisclosureOfContractualCommitmentsTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfContractualCommitmentsLineItems" xlink:label="loc_ypf_DisclosureOfContractualCommitmentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfContractualCommitmentsLineItems" xml:lang="en-US">Disclosure of Contractual Commitments [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfContractualCommitmentsLineItems" xlink:to="lab_ypf_DisclosureOfContractualCommitmentsLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfContractualCommitmentsLineItems" xml:lang="en-US">Disclosure of contractual commitments.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfExpenseByNature" xlink:label="loc_ypf_AmountOfExpenseByNature" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountOfExpenseByNature" xml:lang="en-US">Amount of Expense By Nature</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AmountOfExpenseByNature" xml:lang="en-US">The exploratory and investment commitments and expenses until the completion of the most significant exploration permits and exploitation concessions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountOfExpenseByNature" xlink:to="lab_ypf_AmountOfExpenseByNature" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountOfExpenseByNature" xml:lang="en-US">The exploratory and investment commitments and expenses until the completion of the most significant exploration permits and exploitation concessions.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTransportationConcession" xlink:label="loc_ypf_PercentageOfTransportationConcession" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfTransportationConcession" xml:lang="en-US">Percentage Of Transportation Concession</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfTransportationConcession" xml:lang="en-US">Transportation concession percentage</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfTransportationConcession" xlink:to="lab_ypf_PercentageOfTransportationConcession" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfTransportationConcession" xml:lang="en-US">Percentage of transportation concession.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ProportionOfVotingRightsHeldInJointOperation" xlink:label="loc_ifrs-full_ProportionOfVotingRightsHeldInJointOperation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ProportionOfVotingRightsHeldInJointOperation" xml:lang="en-US">Proportion of voting rights held in joint operation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ProportionOfVotingRightsHeldInJointOperation" xlink:to="lab_ifrs-full_ProportionOfVotingRightsHeldInJointOperation" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfUnconventionalWells" xlink:label="loc_ypf_NumberOfUnconventionalWells" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfUnconventionalWells" xml:lang="en-US">Number Of Unconventional Wells</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NumberOfUnconventionalWells" xml:lang="en-US">Number of unconventional wells</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfUnconventionalWells" xlink:to="lab_ypf_NumberOfUnconventionalWells" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfUnconventionalWells" xml:lang="en-US">Number of unconventional wells.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfYearsExploitationConcessionTerm" xlink:label="loc_ypf_NumberOfYearsExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfYearsExploitationConcessionTerm" xml:lang="en-US">Number Of Years Exploitation Concession Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NumberOfYearsExploitationConcessionTerm" xml:lang="en-US">Number of years exploitation concession term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfYearsExploitationConcessionTerm" xlink:to="lab_ypf_NumberOfYearsExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfYearsExploitationConcessionTerm" xml:lang="en-US">Number of years exploitation concession term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NormalCapacityOfTonExploitation" xlink:label="loc_ypf_NormalCapacityOfTonExploitation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NormalCapacityOfTonExploitation" xml:lang="en-US">Normal Capacity Of Ton Exploitation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NormalCapacityOfTonExploitation" xml:lang="en-US">Normal capacity of ton exploitation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NormalCapacityOfTonExploitation" xlink:to="lab_ypf_NormalCapacityOfTonExploitation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NormalCapacityOfTonExploitation" xml:lang="en-US">Normal capacity of ton exploitation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfLeaseTerm" xlink:label="loc_ypf_NumberOfLeaseTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfLeaseTerm" xml:lang="en-US">Number Of Lease Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NumberOfLeaseTerm" xml:lang="en-US">Number of lease term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfLeaseTerm" xlink:to="lab_ypf_NumberOfLeaseTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfLeaseTerm" xml:lang="en-US">Number of lease term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionalNumberOfLeaseTerm" xlink:label="loc_ypf_AdditionalNumberOfLeaseTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdditionalNumberOfLeaseTerm" xml:lang="en-US">Additional Number Of Lease Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdditionalNumberOfLeaseTerm" xml:lang="en-US">Additional number of lease term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdditionalNumberOfLeaseTerm" xlink:to="lab_ypf_AdditionalNumberOfLeaseTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdditionalNumberOfLeaseTerm" xml:lang="en-US">Additional number of lease term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfNaturalGasSupplyAgreementsTerm" xlink:label="loc_ypf_NumberOfNaturalGasSupplyAgreementsTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfNaturalGasSupplyAgreementsTerm" xml:lang="en-US">Number Of Natural Gas Supply Agreements Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NumberOfNaturalGasSupplyAgreementsTerm" xml:lang="en-US">Number of natural gas supply agreements term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfNaturalGasSupplyAgreementsTerm" xlink:to="lab_ypf_NumberOfNaturalGasSupplyAgreementsTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfNaturalGasSupplyAgreementsTerm" xml:lang="en-US">Number of natural gas supply agreements term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsAxis" xlink:label="loc_ypf_InvestorsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestorsAxis" xml:lang="en-US">Investors [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestorsAxis" xlink:to="lab_ypf_InvestorsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestorsAxis" xml:lang="en-US">Investors.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestorsDomain" xlink:label="loc_ypf_InvestorsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestorsDomain" xml:lang="en-US">Investors [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestorsDomain" xlink:to="lab_ypf_InvestorsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestorsDomain" xml:lang="en-US">Investors.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis" xlink:label="loc_srt_StatementGeographicalAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_StatementGeographicalAxis" xml:lang="en-US">Geographical [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_StatementGeographicalAxis" xlink:to="lab_srt_StatementGeographicalAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain" xlink:label="loc_srt_SegmentGeographicalDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_SegmentGeographicalDomain" xml:lang="en-US">Geographical [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_SegmentGeographicalDomain" xlink:to="lab_srt_SegmentGeographicalDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityAxis" xlink:label="loc_ypf_GuaranteedSecurityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GuaranteedSecurityAxis" xml:lang="en-US">Guaranteed Security [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GuaranteedSecurityAxis" xlink:to="lab_ypf_GuaranteedSecurityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GuaranteedSecurityAxis" xml:lang="en-US">Guaranteed Security.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GuaranteedSecurityMember" xlink:label="loc_ypf_GuaranteedSecurityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GuaranteedSecurityMember" xml:lang="en-US">Guaranteed Security [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GuaranteedSecurityMember" xlink:to="lab_ypf_GuaranteedSecurityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GuaranteedSecurityMember" xml:lang="en-US">Guaranteed Security.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarHilliCorporationMember" xlink:label="loc_ypf_GolarHilliCorporationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GolarHilliCorporationMember" xml:lang="en-US">Golar Hilli Corporation [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GolarHilliCorporationMember" xlink:to="lab_ypf_GolarHilliCorporationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GolarHilliCorporationMember" xml:lang="en-US">Golar hilli corporation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarMkiiCorporationMember" xlink:label="loc_ypf_GolarMkiiCorporationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GolarMkiiCorporationMember" xml:lang="en-US">Golar MKII Corporation [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GolarMkiiCorporationMember" xlink:to="lab_ypf_GolarMkiiCorporationMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockAxis" xlink:label="loc_ypf_BlockAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BlockAxis" xml:lang="en-US">Block [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BlockAxis" xlink:to="lab_ypf_BlockAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BlockAxis" xml:lang="en-US">Block.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BlockMember" xlink:label="loc_ypf_BlockMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BlockMember" xml:lang="en-US">Block [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BlockMember" xlink:to="lab_ypf_BlockMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BlockMember" xml:lang="en-US">Block.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguadaDeLaArenaMember" xlink:label="loc_ypf_AguadaDeLaArenaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguadaDeLaArenaMember" xml:lang="en-US">Aguada de la Arena [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguadaDeLaArenaMember" xml:lang="en-US">Aguada de la Arena [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguadaDeLaArenaMember" xlink:to="lab_ypf_AguadaDeLaArenaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AguadaDeLaArenaMember" xml:lang="en-US">Aguada de la Arena.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAngosturaSurIMember" xlink:label="loc_ypf_LaAngosturaSurIMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaAngosturaSurIMember" xml:lang="en-US">La Angostura Sur I [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaAngosturaSurIMember" xml:lang="en-US">La Angostura Sur I [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaAngosturaSurIMember" xlink:to="lab_ypf_LaAngosturaSurIMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LaAngosturaSurIMember" xml:lang="en-US">La angostura sur I.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LaAngosturaSurIiMember" xlink:label="loc_ypf_LaAngosturaSurIiMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LaAngosturaSurIiMember" xml:lang="en-US">La Angostura Sur II [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LaAngosturaSurIiMember" xml:lang="en-US">La Angostura Sur II [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LaAngosturaSurIiMember" xlink:to="lab_ypf_LaAngosturaSurIiMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LaAngosturaSurIiMember" xml:lang="en-US">La angostura sur II.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeDesarrolloMember" xlink:label="loc_ypf_CompaniaDeDesarrolloMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CompaniaDeDesarrolloMember" xml:lang="en-US">Compania De Desarrollo [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CompaniaDeDesarrolloMember" xml:lang="en-US">Compania De Desarrollo [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CompaniaDeDesarrolloMember" xlink:to="lab_ypf_CompaniaDeDesarrolloMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CompaniaDeDesarrolloMember" xml:lang="en-US">Compania de desarrollo.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PAEMember" xlink:label="loc_ypf_PAEMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PAEMember" xml:lang="en-US">PAE [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PAEMember" xml:lang="en-US">PAE [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PAEMember" xlink:to="lab_ypf_PAEMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PAEMember" xml:lang="en-US">PAE.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SurInversionesEnergticasMember" xlink:label="loc_ypf_SurInversionesEnergticasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SurInversionesEnergticasMember" xml:lang="en-US">Sur Inversiones Energticas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SurInversionesEnergticasMember" xml:lang="en-US">Sur Inversiones Energticas [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SurInversionesEnergticasMember" xlink:to="lab_ypf_SurInversionesEnergticasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SurInversionesEnergticasMember" xml:lang="en-US">Sur inversiones energticas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PampaMember" xlink:label="loc_ypf_PampaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PampaMember" xml:lang="en-US">Pampa [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PampaMember" xml:lang="en-US">Pampa [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PampaMember" xlink:to="lab_ypf_PampaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PampaMember" xml:lang="en-US">Pampa.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SeArgentinaHoldingBvMember" xlink:label="loc_ypf_SeArgentinaHoldingBvMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SeArgentinaHoldingBvMember" xml:lang="en-US">SE Argentina Holding BV [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SeArgentinaHoldingBvMember" xml:lang="en-US">SE Argentina Holding BV [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SeArgentinaHoldingBvMember" xlink:to="lab_ypf_SeArgentinaHoldingBvMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SeArgentinaHoldingBvMember" xml:lang="en-US">SE argentina holding BV.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolarSubholdingMember" xlink:label="loc_ypf_GolarSubholdingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GolarSubholdingMember" xml:lang="en-US">Golar Subholding [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GolarSubholdingMember" xml:lang="en-US">Golar Subholding [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GolarSubholdingMember" xlink:to="lab_ypf_GolarSubholdingMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GolarSubholdingMember" xml:lang="en-US">Golar subholding.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScheduleOfGrantedGuaranteesTable" xlink:label="loc_ypf_ScheduleOfGrantedGuaranteesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ScheduleOfGrantedGuaranteesTable" xml:lang="en-US">Schedule of Granted Guarantees [Table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesTable" xlink:to="lab_ypf_ScheduleOfGrantedGuaranteesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ScheduleOfGrantedGuaranteesTable" xml:lang="en-US">Schedule of Granted Guarantees.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" xml:lang="en-US">Continuing involvement in derecognised financial assets by type of instrument [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" xml:lang="en-US">Continuing involvement in derecognised financial assets by type of instrument [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" xlink:to="lab_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" xlink:label="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" xml:lang="en-US">Continuing involvement in derecognised financial assets by type of instrument [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" xlink:to="lab_ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_GuaranteesMember" xlink:label="loc_ifrs-full_GuaranteesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_GuaranteesMember" xml:lang="en-US">Guarantees [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_GuaranteesMember" xml:lang="en-US">Granted Guarantees [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_GuaranteesMember" xlink:to="lab_ifrs-full_GuaranteesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ScheduleOfGrantedGuaranteesLineItems" xlink:label="loc_ypf_ScheduleOfGrantedGuaranteesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ScheduleOfGrantedGuaranteesLineItems" xml:lang="en-US">Schedule of Granted Guarantees [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ScheduleOfGrantedGuaranteesLineItems" xlink:to="lab_ypf_ScheduleOfGrantedGuaranteesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ScheduleOfGrantedGuaranteesLineItems" xml:lang="en-US">Schedule of Granted Guarantees [Line Items]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" xlink:label="loc_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" xml:lang="en-US">Commitments made by entity, related party transactions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" xml:lang="en-US">Assumed other commitments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" xlink:to="lab_ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfDebtServices" xlink:label="loc_ypf_PercentageOfDebtServices" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfDebtServices" xml:lang="en-US">Percentage Of Debt Services</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/definitionGuidance" xlink:label="lab_ypf_PercentageOfDebtServices" xml:lang="en-US">Percentage of debt services</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfDebtServices" xlink:to="lab_ypf_PercentageOfDebtServices" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfDebtServices" xml:lang="en-US">Percentage of debt services.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xlink:label="loc_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xml:lang="en-US">Period Within Which The Amount Deposited In The Reserves Shall Be Paid</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xml:lang="en-US">Period within which the amount deposited in the reserves shall be paid</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xlink:to="lab_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" xml:lang="en-US">Period within which the amount deposited in the reserves shall be paid.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BankGuaranteesIssued" xlink:label="loc_ypf_BankGuaranteesIssued" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BankGuaranteesIssued" xml:lang="en-US">Bank Guarantees Issued</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BankGuaranteesIssued" xml:lang="en-US">Bank guarantees issued</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BankGuaranteesIssued" xlink:to="lab_ypf_BankGuaranteesIssued" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BankGuaranteesIssued" xml:lang="en-US">Bank guarantees issued.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xlink:label="loc_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xml:lang="en-US">Balance Of Reserve And Payment Account For Holders Of Class X X V I I I N O</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xml:lang="en-US">Balance of reserve and payment account for holders of class XXVIII NO</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xlink:to="lab_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" xml:lang="en-US">Balance of reserve and payment account for holders of Class XXVIII NO.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfGranteGuarantees" xlink:label="loc_ypf_AmountOfGranteGuarantees" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountOfGranteGuarantees" xml:lang="en-US">Amount Of Grante Guarantees</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AmountOfGranteGuarantees" xml:lang="en-US">Amount of grante guarantees</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountOfGranteGuarantees" xlink:to="lab_ypf_AmountOfGranteGuarantees" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountOfGranteGuarantees" xml:lang="en-US">Amount of grante guarantees.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DebtInstrumentsHeld" xlink:label="loc_ifrs-full_DebtInstrumentsHeld" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DebtInstrumentsHeld" xml:lang="en-US">Debt instruments held</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DebtInstrumentsHeld" xml:lang="en-US">Debt instruments held</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DebtInstrumentsHeld" xlink:to="lab_ifrs-full_DebtInstrumentsHeld" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassXXVIIINOMember" xlink:label="loc_ypf_ClassXXVIIINOMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassXXVIIINOMember" xml:lang="en-US">Class X X V I I I N O [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ClassXXVIIINOMember" xml:lang="en-US">Class XXVIII NO [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassXXVIIINOMember" xlink:to="lab_ypf_ClassXXVIIINOMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassXXVIIINOMember" xml:lang="en-US">Class XXVIII NO.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" xml:lang="en-US">Disclosure of information about activities subject to rate regulation [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xml:lang="en-US">Disclosure of information about activities subject to rate regulation [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xml:lang="en-US">Disclosure of information about activities subject to rate regulation [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xml:lang="en-US">Disclosure of information about activities subject to rate regulation [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xml:lang="en-US">Main regulations [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectInvestmentInForeignCurrency" xlink:label="loc_ypf_DirectInvestmentInForeignCurrency" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DirectInvestmentInForeignCurrency" xml:lang="en-US">Direct investment in foreign currency</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DirectInvestmentInForeignCurrency" xml:lang="en-US">Direct investment in foreign currency</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DirectInvestmentInForeignCurrency" xlink:to="lab_ypf_DirectInvestmentInForeignCurrency" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DirectInvestmentInForeignCurrency" xml:lang="en-US">Direct investment in foreign currency.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xlink:label="loc_ypf_DirectInvestmentInForeignCurrencyAfterAmendment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xml:lang="en-US">Direct investment in foreign currency, after amendment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xml:lang="en-US">Direct investment in foreign currency amended by law</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xlink:to="lab_ypf_DirectInvestmentInForeignCurrencyAfterAmendment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DirectInvestmentInForeignCurrencyAfterAmendment" xml:lang="en-US">Direct investment in foreign currency, after amendment.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xlink:label="loc_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xml:lang="en-US">Percentage of sale on production of liquid and gaseous hydrocarbons</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xml:lang="en-US">Percentage of sale on production of liquid and gaseous hydrocarbons</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xlink:to="lab_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" xml:lang="en-US">Percentage of sale on production of liquid and gaseous hydrocarbons.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xlink:label="loc_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xml:lang="en-US">Export duty for liquid and gaseous hydrocarbons percent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xml:lang="en-US">Percentage of export duty for liquid and gaseous hydrocarbons</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xlink:to="lab_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" xml:lang="en-US">Export duty for liquid and gaseous hydrocarbons percent.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyPercentage" xlink:label="loc_ypf_ExportDutyPercentage" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportDutyPercentage" xml:lang="en-US">Export duty percentage</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportDutyPercentage" xml:lang="en-US">Export duty percentage</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportDutyPercentage" xlink:to="lab_ypf_ExportDutyPercentage" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportDutyPercentage" xml:lang="en-US">Export duty percentage.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsentExpressionTerm" xlink:label="loc_ypf_ConsentExpressionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ConsentExpressionTerm" xml:lang="en-US">Consent expression term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ConsentExpressionTerm" xml:lang="en-US">Consent expression term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ConsentExpressionTerm" xlink:to="lab_ypf_ConsentExpressionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ConsentExpressionTerm" xml:lang="en-US">Consent expression term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PublicDistributionServiceTerm" xlink:label="loc_ypf_PublicDistributionServiceTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PublicDistributionServiceTerm" xml:lang="en-US">Public distribution service term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PublicDistributionServiceTerm" xml:lang="en-US">Public distribution service term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PublicDistributionServiceTerm" xlink:to="lab_ypf_PublicDistributionServiceTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PublicDistributionServiceTerm" xml:lang="en-US">Public distribution service term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LicenseRenewalTerm" xlink:label="loc_ypf_LicenseRenewalTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LicenseRenewalTerm" xml:lang="en-US">License renewal term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LicenseRenewalTerm" xml:lang="en-US">License renewal term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LicenseRenewalTerm" xlink:to="lab_ypf_LicenseRenewalTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LicenseRenewalTerm" xml:lang="en-US">License renewal term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LicenseAgreementPeriod" xlink:label="loc_ypf_LicenseAgreementPeriod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LicenseAgreementPeriod" xml:lang="en-US">License agreement period</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LicenseAgreementPeriod" xml:lang="en-US">Distribution license</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LicenseAgreementPeriod" xlink:to="lab_ypf_LicenseAgreementPeriod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LicenseAgreementPeriod" xml:lang="en-US">License agreement period</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfConventionalExplorationTerm" xlink:label="loc_ypf_PermitOfConventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitOfConventionalExplorationTerm" xml:lang="en-US">Permit Of Conventional Exploration Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PermitOfConventionalExplorationTerm" xml:lang="en-US">Permit of conventional exploration term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitOfConventionalExplorationTerm" xlink:to="lab_ypf_PermitOfConventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitOfConventionalExplorationTerm" xml:lang="en-US">Permit of conventional exploration term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfConventionalExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfConventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitOfExtensionOfConventionalExplorationTerm" xml:lang="en-US">Permit Of Extension Of Conventional Exploration Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PermitOfExtensionOfConventionalExplorationTerm" xml:lang="en-US">Permit of extension of conventional exploration term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitOfExtensionOfConventionalExplorationTerm" xlink:to="lab_ypf_PermitOfExtensionOfConventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitOfExtensionOfConventionalExplorationTerm" xml:lang="en-US">Permit of extension of conventional exploration term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfUnconventionalExplorationTerm" xlink:label="loc_ypf_PermitOfUnconventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitOfUnconventionalExplorationTerm" xml:lang="en-US">Permit Of Unconventional Exploration Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PermitOfUnconventionalExplorationTerm" xml:lang="en-US">Permit of unconventional exploration term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitOfUnconventionalExplorationTerm" xlink:to="lab_ypf_PermitOfUnconventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitOfUnconventionalExplorationTerm" xml:lang="en-US">Permit of unconventional exploration term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfUnconventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xml:lang="en-US">Permit Of Extension Of Unconventional Exploration Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xml:lang="en-US">Permit of extension of unconventional exploration term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xlink:to="lab_ypf_PermitOfExtensionOfUnconventionalExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitOfExtensionOfUnconventionalExplorationTerm" xml:lang="en-US">Permit of extension of unconventional exploration term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:label="loc_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xml:lang="en-US">Permit Of Continental Shelf And Territorial Waters Exploration Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xml:lang="en-US">Permit of continental shelf and territorial waters exploration term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:to="lab_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" xml:lang="en-US">Permit of continental shelf and territorial waters exploration term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:label="loc_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xml:lang="en-US">Permit Of Extension Of Continental Shelf And Territorial Waters Exploration Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xml:lang="en-US">Permit of extension of continental shelf and territorial waters exploration term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xlink:to="lab_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" xml:lang="en-US">Permit of extension of continental shelf and territorial waters exploration term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConventionalExploitationConcessionTerm" xlink:label="loc_ypf_ConventionalExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ConventionalExploitationConcessionTerm" xml:lang="en-US">Conventional Exploitation Concession Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ConventionalExploitationConcessionTerm" xml:lang="en-US">Conventional exploitation concession term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ConventionalExploitationConcessionTerm" xlink:to="lab_ypf_ConventionalExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ConventionalExploitationConcessionTerm" xml:lang="en-US">Conventional exploitation concession term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnconventionalExploitationConcessionTerm" xlink:label="loc_ypf_UnconventionalExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnconventionalExploitationConcessionTerm" xml:lang="en-US">Unconventional Exploitation Concession Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UnconventionalExploitationConcessionTerm" xml:lang="en-US">Unconventional exploitation concession term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnconventionalExploitationConcessionTerm" xlink:to="lab_ypf_UnconventionalExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnconventionalExploitationConcessionTerm" xml:lang="en-US">Unconventional exploitation concession term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xlink:label="loc_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xml:lang="en-US">Continental Shelf and Territorial Water Concession Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xml:lang="en-US">Continental shelf and territorial water concession term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xlink:to="lab_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" xml:lang="en-US">Continental shelf and territorial water concession term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfAdvanceFee" xlink:label="loc_ypf_PercentageOfAdvanceFee" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfAdvanceFee" xml:lang="en-US">Percentage of Advance Fee</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfAdvanceFee" xml:lang="en-US">Percentage of advance fee</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfAdvanceFee" xlink:to="lab_ypf_PercentageOfAdvanceFee" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfAdvanceFee" xml:lang="en-US">Percentage of advance fee.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageReductionInTheConcessionFee" xlink:label="loc_ypf_PercentageReductionInTheConcessionFee" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageReductionInTheConcessionFee" xml:lang="en-US">Percentage Reduction In The Concession Fee</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageReductionInTheConcessionFee" xml:lang="en-US">Percentage reduction in the concession fee</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageReductionInTheConcessionFee" xlink:to="lab_ypf_PercentageReductionInTheConcessionFee" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageReductionInTheConcessionFee" xml:lang="en-US">Percentage reduction in the concession fee.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportPermitTerm" xlink:label="loc_ypf_ExportPermitTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportPermitTerm" xml:lang="en-US">Export Permit Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportPermitTerm" xml:lang="en-US">Export permit term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportPermitTerm" xlink:to="lab_ypf_ExportPermitTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportPermitTerm" xml:lang="en-US">Export permit term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xlink:label="loc_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xml:lang="en-US">Compensations from the National Government for the Plan GasAr 20202024</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xml:lang="en-US">Compensations from the National Government for the Plan GasAr 2020-2024</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xlink:to="lab_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" xml:lang="en-US">Compensations from the National Government for the Plan GasAr 2020-2024.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PersonalAssetsTaxRate" xlink:label="loc_ypf_PersonalAssetsTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PersonalAssetsTaxRate" xml:lang="en-US">Personal assets tax rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PersonalAssetsTaxRate" xlink:to="lab_ypf_PersonalAssetsTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PersonalAssetsTaxRate" xml:lang="en-US">Personal assets tax rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FloatingRateForHydrocarbonExportDuties" xlink:label="loc_ypf_FloatingRateForHydrocarbonExportDuties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FloatingRateForHydrocarbonExportDuties" xml:lang="en-US">Floating Rate For Hydrocarbon Export Duties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_FloatingRateForHydrocarbonExportDuties" xml:lang="en-US">Floating rate for hydrocarbon export duties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FloatingRateForHydrocarbonExportDuties" xlink:to="lab_ypf_FloatingRateForHydrocarbonExportDuties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_FloatingRateForHydrocarbonExportDuties" xml:lang="en-US">Floating rate for hydrocarbon export duties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BrentCrudePrice" xlink:label="loc_ypf_BrentCrudePrice" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BrentCrudePrice" xml:lang="en-US">Brent Crude Price</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_BrentCrudePrice" xml:lang="en-US">Brent crude price</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BrentCrudePrice" xlink:to="lab_ypf_BrentCrudePrice" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BrentCrudePrice" xml:lang="en-US">Brent crude price.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportTaxRate" xlink:label="loc_ypf_ExportTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportTaxRate" xml:lang="en-US">Export Tax Rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportTaxRate" xml:lang="en-US">Export tax rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportTaxRate" xlink:to="lab_ypf_ExportTaxRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportTaxRate" xml:lang="en-US">Export tax rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageRateVariationInTheCPI" xlink:label="loc_ypf_PercentageRateVariationInTheCPI" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageRateVariationInTheCPI" xml:lang="en-US">Percentage Rate Variation In The CPI</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageRateVariationInTheCPI" xml:lang="en-US">Percentage rate variation in the CPI</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageRateVariationInTheCPI" xlink:to="lab_ypf_PercentageRateVariationInTheCPI" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageRateVariationInTheCPI" xml:lang="en-US">Percentage rate variation in the CPI.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xlink:label="loc_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xml:lang="en-US">Tax Rate Of Distribution Of Dividends And Profits To Individuals Undivided Estates And Foreign Beneficiaries</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xml:lang="en-US">Tax rate of distribution of dividends and profits to individuals undivided estates and foreign beneficiaries</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xlink:to="lab_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" xml:lang="en-US">Tax rate of distribution of dividends and profits to individuals undivided estates and foreign beneficiaries.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xlink:label="loc_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xml:lang="en-US">Percentage Of Prepayments Of Tax Arrived Without Considering The Tax Losses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xml:lang="en-US">Percentage of prepayments of tax arrived without considering the tax losses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xlink:to="lab_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" xml:lang="en-US">Percentage of prepayments of tax arrived without considering the tax losses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xlink:label="loc_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xml:lang="en-US">Minimum Investment For Deferral Of Tax Adjustment For Inflation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xml:lang="en-US">Minimum investment for deferral of tax adjustment for inflation</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xlink:to="lab_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" xml:lang="en-US">Minimum investment for deferral of tax adjustment for inflation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xlink:label="loc_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xml:lang="en-US">No Certificates of Argentine Deposits Representing Foreign Shares Jointly Exceeding</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xml:lang="en-US">No certificates of Argentine deposits representing foreign shares jointly exceeding</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xlink:to="lab_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" xml:lang="en-US">No certificates of Argentine deposits representing foreign shares jointly exceeding.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TransportationConcessionTerm" xlink:label="loc_ypf_TransportationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TransportationConcessionTerm" xml:lang="en-US">Transportation Concession Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TransportationConcessionTerm" xml:lang="en-US">Transportation concession term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TransportationConcessionTerm" xlink:to="lab_ypf_TransportationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TransportationConcessionTerm" xml:lang="en-US">Transportation concession term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TermOfExtensionOfTransportationConcession" xlink:label="loc_ypf_TermOfExtensionOfTransportationConcession" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TermOfExtensionOfTransportationConcession" xml:lang="en-US">Term Of Extension Of Transportation Concession</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TermOfExtensionOfTransportationConcession" xml:lang="en-US">Term of extension of transportation concession</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TermOfExtensionOfTransportationConcession" xlink:to="lab_ypf_TermOfExtensionOfTransportationConcession" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TermOfExtensionOfTransportationConcession" xml:lang="en-US">Term of extension of transportation concession.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xlink:label="loc_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xml:lang="en-US">Taxable Income Minimum Excluding Tax Losses Carry Forwards</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xml:lang="en-US">Taxable income minimum excluding tax loss carry forwards</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xlink:to="lab_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" xml:lang="en-US">Taxable income minimum excluding tax losses carry forwards.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xlink:label="loc_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xml:lang="en-US">Minimum Term For Which The Export Volume Shall Be Authorized</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xml:lang="en-US">Minimum period for which the export volume shall be authorized</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xlink:to="lab_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" xml:lang="en-US">Minimum term for which the export volume shall be authorized.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xlink:label="loc_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xml:lang="en-US">Percentage Of Tax Rate On Contracting Services And Freight Services</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xml:lang="en-US">Percentage of tax rate on contracting services and freight services</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xlink:to="lab_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" xml:lang="en-US">Percentage of tax rate on contracting services and freight services.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageTaxRateForImportOfGoods" xlink:label="loc_ypf_PercentageTaxRateForImportOfGoods" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageTaxRateForImportOfGoods" xml:lang="en-US">Percentage Tax Rate For Import Of Goods</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageTaxRateForImportOfGoods" xml:lang="en-US">Percentage tax rate for import of goods</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageTaxRateForImportOfGoods" xlink:to="lab_ypf_PercentageTaxRateForImportOfGoods" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageTaxRateForImportOfGoods" xml:lang="en-US">Percentage tax rate for import of goods.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xlink:label="loc_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xml:lang="en-US">Percentage Of Tax Rate On Services Acquired Abroad</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xml:lang="en-US">Percentage of tax rate on services acquired abroad</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xlink:to="lab_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" xml:lang="en-US">Percentage of tax rate on services acquired abroad.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfExportDutyAfterReduction" xlink:label="loc_ypf_PercentageOfExportDutyAfterReduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfExportDutyAfterReduction" xml:lang="en-US">Percentage Of Export Duty After Reduction</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfExportDutyAfterReduction" xml:lang="en-US">Percentage of export duty after reduction</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfExportDutyAfterReduction" xlink:to="lab_ypf_PercentageOfExportDutyAfterReduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfExportDutyAfterReduction" xml:lang="en-US">Percentage of export duty after reduction.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NewExploitationConcessionTerm" xlink:label="loc_ypf_NewExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NewExploitationConcessionTerm" xml:lang="en-US">New Exploitation Concession Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NewExploitationConcessionTerm" xml:lang="en-US">New exploitation concession term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NewExploitationConcessionTerm" xlink:to="lab_ypf_NewExploitationConcessionTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NewExploitationConcessionTerm" xml:lang="en-US">New exploitation concession term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfRoyaltyAtBidderDiscretion" xlink:label="loc_ypf_PercentageOfRoyaltyAtBidderDiscretion" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfRoyaltyAtBidderDiscretion" xml:lang="en-US">Percentage Of Royalty At Bidder Discretion</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfRoyaltyAtBidderDiscretion" xml:lang="en-US">Percentage of royalty at bidder discretion</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfRoyaltyAtBidderDiscretion" xlink:to="lab_ypf_PercentageOfRoyaltyAtBidderDiscretion" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfRoyaltyAtBidderDiscretion" xml:lang="en-US">Percentage of royalty at bidder discretion.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xlink:label="loc_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xml:lang="en-US">Percentage Of Maximum Authorized Capacity From Third Parties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xml:lang="en-US">Percentage of maximum authorized capacity from third parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xlink:to="lab_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" xml:lang="en-US">Percentage of maximum authorized capacity from third parties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AdditionalLicenseRenewalTerm" xlink:label="loc_ypf_AdditionalLicenseRenewalTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AdditionalLicenseRenewalTerm" xml:lang="en-US">Additional License Renewal Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AdditionalLicenseRenewalTerm" xml:lang="en-US">Additional license renewal term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AdditionalLicenseRenewalTerm" xlink:to="lab_ypf_AdditionalLicenseRenewalTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AdditionalLicenseRenewalTerm" xml:lang="en-US">Additional license renewal term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProgramOfShipmentsOrDeliveriesTerm" xlink:label="loc_ypf_ProgramOfShipmentsOrDeliveriesTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProgramOfShipmentsOrDeliveriesTerm" xml:lang="en-US">Program of Shipments or Deliveries Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProgramOfShipmentsOrDeliveriesTerm" xml:lang="en-US">Program of shipments or deliveries term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProgramOfShipmentsOrDeliveriesTerm" xlink:to="lab_ypf_ProgramOfShipmentsOrDeliveriesTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProgramOfShipmentsOrDeliveriesTerm" xml:lang="en-US">Program of shipments or deliveries term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpdatedOfExportPermitTerm" xlink:label="loc_ypf_UpdatedOfExportPermitTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UpdatedOfExportPermitTerm" xml:lang="en-US">Updated Of Export Permit Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UpdatedOfExportPermitTerm" xml:lang="en-US">Updated of export permit term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UpdatedOfExportPermitTerm" xlink:to="lab_ypf_UpdatedOfExportPermitTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UpdatedOfExportPermitTerm" xml:lang="en-US">Updated of export permit term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xlink:label="loc_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xml:lang="en-US">Percentage Of Weighted Average Cost Of Capital Employed Rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xml:lang="en-US">Percentage of weighted average cost of capital employed rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xlink:to="lab_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" xml:lang="en-US">Percentage of weighted average cost of capital employed rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfGeneralServiceCustomersRate" xlink:label="loc_ypf_PercentageOfGeneralServiceCustomersRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfGeneralServiceCustomersRate" xml:lang="en-US">Percentage Of General Service Customers Rate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfGeneralServiceCustomersRate" xml:lang="en-US">Percentage of general service customers rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfGeneralServiceCustomersRate" xlink:to="lab_ypf_PercentageOfGeneralServiceCustomersRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfGeneralServiceCustomersRate" xml:lang="en-US">Percentage of general service customers rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RenewableEnergiesTerm" xlink:label="loc_ypf_RenewableEnergiesTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RenewableEnergiesTerm" xml:lang="en-US">Renewable Energies Term</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RenewableEnergiesTerm" xml:lang="en-US">Renewable energies term</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RenewableEnergiesTerm" xlink:to="lab_ypf_RenewableEnergiesTerm" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RenewableEnergiesTerm" xml:lang="en-US">Renewable energies term.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountOfReceivedCompensationFromNationalGovernment" xlink:label="loc_ypf_AmountOfReceivedCompensationFromNationalGovernment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountOfReceivedCompensationFromNationalGovernment" xml:lang="en-US">Amount Of Received Compensation From National Government</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AmountOfReceivedCompensationFromNationalGovernment" xml:lang="en-US">Amount of received compensation from national government</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountOfReceivedCompensationFromNationalGovernment" xlink:to="lab_ypf_AmountOfReceivedCompensationFromNationalGovernment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountOfReceivedCompensationFromNationalGovernment" xml:lang="en-US">Amount of received compensation from national government.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" xlink:label="loc_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" xml:lang="en-US">Changes in tax rates or tax laws enacted or announced [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" xlink:to="lab_ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Axis" xlink:label="loc_ypf_PlanName1Axis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PlanName1Axis" xml:lang="en-US">Plan Name1 [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PlanName1Axis" xml:lang="en-US">Plan Name1 [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PlanName1Axis" xlink:to="lab_ypf_PlanName1Axis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PlanName1Axis" xml:lang="en-US">Information by plan name1 pertaining to equity-based compensation arrangements.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PlanName1Domain" xlink:label="loc_ypf_PlanName1Domain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PlanName1Domain" xml:lang="en-US">Plan Name 1 [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PlanName1Domain" xml:lang="en-US">Plan Name 1 [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PlanName1Domain" xlink:to="lab_ypf_PlanName1Domain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PlanName1Domain" xml:lang="en-US">Name of the equity-based compensation arrangement plan.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AgriculturalProductsMember" xlink:label="loc_ypf_AgriculturalProductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AgriculturalProductsMember" xml:lang="en-US">Agricultural Products [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AgriculturalProductsMember" xml:lang="en-US">Agricultural products [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AgriculturalProductsMember" xlink:to="lab_ypf_AgriculturalProductsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WheatCornAndSorghumMember" xlink:label="loc_ypf_WheatCornAndSorghumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_WheatCornAndSorghumMember" xml:lang="en-US">Wheat Corn And Sorghum [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_WheatCornAndSorghumMember" xml:lang="en-US">Wheat, corn and sorghum [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_WheatCornAndSorghumMember" xlink:to="lab_ypf_WheatCornAndSorghumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_WheatCornAndSorghumMember" xml:lang="en-US">Wheat, corn and sorghum.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportedGasolineMember" xlink:label="loc_ypf_ImportedGasolineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ImportedGasolineMember" xml:lang="en-US">Imported Gasoline [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ImportedGasolineMember" xml:lang="en-US">Imported Gasoline [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ImportedGasolineMember" xlink:to="lab_ypf_ImportedGasolineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ImportedGasolineMember" xml:lang="en-US">Imported gasoline.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImportedDieselMember" xlink:label="loc_ypf_ImportedDieselMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ImportedDieselMember" xml:lang="en-US">Imported Diesel [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ImportedDieselMember" xml:lang="en-US">Imported Diesel [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ImportedDieselMember" xlink:to="lab_ypf_ImportedDieselMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ImportedDieselMember" xml:lang="en-US">Imported diesel.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SoybeanMember" xlink:label="loc_ypf_SoybeanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SoybeanMember" xml:lang="en-US">Soybean [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SoybeanMember" xlink:to="lab_ypf_SoybeanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SoybeanMember" xml:lang="en-US">Soybean.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SoybeanByproductsMember" xlink:label="loc_ypf_SoybeanByproductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SoybeanByproductsMember" xml:lang="en-US">Soybean Byproducts [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SoybeanByproductsMember" xlink:to="lab_ypf_SoybeanByproductsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SoybeanByproductsMember" xml:lang="en-US">Soybean byproducts.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrainsMember" xlink:label="loc_ypf_GrainsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GrainsMember" xml:lang="en-US">Grains [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GrainsMember" xlink:to="lab_ypf_GrainsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CornAndSorghumMember" xlink:label="loc_ypf_CornAndSorghumMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CornAndSorghumMember" xml:lang="en-US">Corn And Sorghum [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CornAndSorghumMember" xlink:to="lab_ypf_CornAndSorghumMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WheatMember" xlink:label="loc_ypf_WheatMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_WheatMember" xml:lang="en-US">Wheat [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_WheatMember" xlink:to="lab_ypf_WheatMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_HydrocarbonDistributionMember" xlink:label="loc_ypf_HydrocarbonDistributionMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_HydrocarbonDistributionMember" xml:lang="en-US">Hydrocarbon Distribution [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_HydrocarbonDistributionMember" xml:lang="en-US">Hydrocarbon Distribution [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_HydrocarbonDistributionMember" xlink:to="lab_ypf_HydrocarbonDistributionMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_HydrocarbonDistributionMember" xml:lang="en-US">Hydrocarbon distribution.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LiquidHydrocarbonExportsMember" xlink:label="loc_ypf_LiquidHydrocarbonExportsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LiquidHydrocarbonExportsMember" xml:lang="en-US">Liquid Hydrocarbon Exports [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_LiquidHydrocarbonExportsMember" xml:lang="en-US">Liquid Hydrocarbon Exports [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LiquidHydrocarbonExportsMember" xlink:to="lab_ypf_LiquidHydrocarbonExportsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LiquidHydrocarbonExportsMember" xml:lang="en-US">Liquid hydrocarbon exports.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExportDutyRateMember" xlink:label="loc_ypf_ExportDutyRateMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExportDutyRateMember" xml:lang="en-US">Export Duty Rate [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExportDutyRateMember" xml:lang="en-US">Export Duty Rate [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExportDutyRateMember" xlink:to="lab_ypf_ExportDutyRateMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExportDutyRateMember" xml:lang="en-US">Export duty rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_FreeLngExportAuthorizationMember" xlink:label="loc_ypf_FreeLngExportAuthorizationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_FreeLngExportAuthorizationMember" xml:lang="en-US">free LNG export authorization [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_FreeLngExportAuthorizationMember" xlink:to="lab_ypf_FreeLngExportAuthorizationMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LngExportProjectsMember" xlink:label="loc_ypf_LngExportProjectsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LngExportProjectsMember" xml:lang="en-US">LNG Export Projects [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LngExportProjectsMember" xlink:to="lab_ypf_LngExportProjectsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NationalEnergySectorMember" xlink:label="loc_ypf_NationalEnergySectorMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NationalEnergySectorMember" xml:lang="en-US">National Energy Sector [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NationalEnergySectorMember" xlink:to="lab_ypf_NationalEnergySectorMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LargeInvestmentIncentiveRegimeMember" xlink:label="loc_ypf_LargeInvestmentIncentiveRegimeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LargeInvestmentIncentiveRegimeMember" xml:lang="en-US">Large Investment Incentive Regime [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LargeInvestmentIncentiveRegimeMember" xlink:to="lab_ypf_LargeInvestmentIncentiveRegimeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LargeInvestmentIncentiveRegimeMember" xml:lang="en-US">Large investment incentive regime.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionTypeAxis" xlink:label="loc_ypf_ResolutionTypeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResolutionTypeAxis" xml:lang="en-US">Resolution Type [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ResolutionTypeAxis" xml:lang="en-US">Resolution type [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResolutionTypeAxis" xlink:to="lab_ypf_ResolutionTypeAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResolutionMember" xlink:label="loc_ypf_ResolutionMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResolutionMember" xml:lang="en-US">Resolution [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ResolutionMember" xml:lang="en-US">Resolution [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResolutionMember" xlink:to="lab_ypf_ResolutionMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeAxis" xlink:label="loc_ypf_DecreeTypeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreeTypeAxis" xml:lang="en-US">Decree Type [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DecreeTypeAxis" xml:lang="en-US">Decree type [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreeTypeAxis" xlink:to="lab_ypf_DecreeTypeAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeTypeMember" xlink:label="loc_ypf_DecreeTypeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreeTypeMember" xml:lang="en-US">Decree Type [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DecreeTypeMember" xml:lang="en-US">Decree type [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreeTypeMember" xlink:to="lab_ypf_DecreeTypeMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xlink:label="loc_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xml:lang="en-US">Investment Promotion Regime for the Exploitation of Hydrocarbons Decree No. 929 2013 [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xml:lang="en-US">Investment Promotion Regime for the Exploitation of Hydrocarbons - Decree No. 929/2013 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xlink:to="lab_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" xml:lang="en-US">Investment promotion regime for the exploitation of hydrocarbons - Decree no. 929/2013.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeAxis" xlink:label="loc_ypf_InstallmentTypeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InstallmentTypeAxis" xml:lang="en-US">Installment Type [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InstallmentTypeAxis" xml:lang="en-US">Installment type [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InstallmentTypeAxis" xlink:to="lab_ypf_InstallmentTypeAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_InstallmentTypeMember" xlink:label="loc_ypf_InstallmentTypeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_InstallmentTypeMember" xml:lang="en-US">Installment type [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_InstallmentTypeMember" xml:lang="en-US">Installment type [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_InstallmentTypeMember" xlink:to="lab_ypf_InstallmentTypeMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveAxis" xlink:label="loc_ypf_TakeRespectiveAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TakeRespectiveAxis" xml:lang="en-US">Take respective [Axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TakeRespectiveAxis" xml:lang="en-US">Take respective [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TakeRespectiveAxis" xlink:to="lab_ypf_TakeRespectiveAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TakeRespectiveMember" xlink:label="loc_ypf_TakeRespectiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TakeRespectiveMember" xml:lang="en-US">Take respective [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TakeRespectiveMember" xml:lang="en-US">Take respective [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TakeRespectiveMember" xlink:to="lab_ypf_TakeRespectiveMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyAxis" xlink:label="loc_srt_EnergyAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_EnergyAxis" xml:lang="en-US">Energy [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_EnergyAxis" xlink:to="lab_srt_EnergyAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_EnergyDomain" xlink:label="loc_srt_EnergyDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_EnergyDomain" xml:lang="en-US">Energy [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_EnergyDomain" xlink:to="lab_srt_EnergyDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationAxis" xlink:label="loc_ypf_LocationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LocationAxis" xml:lang="en-US">Location [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LocationAxis" xlink:to="lab_ypf_LocationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LocationAxis" xml:lang="en-US">Location.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LocationMember" xlink:label="loc_ypf_LocationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LocationMember" xml:lang="en-US">Location [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LocationMember" xlink:to="lab_ypf_LocationMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xlink:label="loc_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xml:lang="en-US">Two Thousand And Twenty Two AndTwo Thousand And Twenty Three [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xml:lang="en-US">2022 or 2023 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xlink:to="lab_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" xml:lang="en-US">Two thousand and twenty two and two thousand and twenty three.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeAxis" xlink:label="loc_ypf_SchemeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SchemeAxis" xml:lang="en-US">Scheme [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SchemeAxis" xlink:to="lab_ypf_SchemeAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SchemeAxis" xml:lang="en-US">Scheme.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SchemeMember" xlink:label="loc_ypf_SchemeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SchemeMember" xml:lang="en-US">Scheme [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SchemeMember" xlink:to="lab_ypf_SchemeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SchemeMember" xml:lang="en-US">Scheme.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xlink:label="loc_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xml:lang="en-US">Tax Rate For An Inclusive And Solidary Argentina [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xml:lang="en-US">Tax rate for an inclusive and solidary Argentina [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xlink:to="lab_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" xml:lang="en-US">Tax rate for an inclusive and solidary Argentina.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_TaxBenefitsForPriceAgreementsMember" xlink:label="loc_ypf_TaxBenefitsForPriceAgreementsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_TaxBenefitsForPriceAgreementsMember" xml:lang="en-US">Tax Benefits For Price Agreements [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_TaxBenefitsForPriceAgreementsMember" xml:lang="en-US">Tax benefits for price agreements [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_TaxBenefitsForPriceAgreementsMember" xlink:to="lab_ypf_TaxBenefitsForPriceAgreementsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_TaxBenefitsForPriceAgreementsMember" xml:lang="en-US">Tax benefits for price agreements.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityAxis" xlink:label="loc_ypf_PeriodOfApplicabilityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PeriodOfApplicabilityAxis" xml:lang="en-US">Period Of Applicability [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PeriodOfApplicabilityAxis" xlink:to="lab_ypf_PeriodOfApplicabilityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PeriodOfApplicabilityAxis" xml:lang="en-US">Period of applicability.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PeriodOfApplicabilityMember" xlink:label="loc_ypf_PeriodOfApplicabilityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PeriodOfApplicabilityMember" xml:lang="en-US">Period Of Applicability [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PeriodOfApplicabilityMember" xlink:to="lab_ypf_PeriodOfApplicabilityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PeriodOfApplicabilityMember" xml:lang="en-US">Period of applicability.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationAxis" xlink:label="loc_ypf_NotificationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NotificationAxis" xml:lang="en-US">Notification [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NotificationAxis" xlink:to="lab_ypf_NotificationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NotificationAxis" xml:lang="en-US">Notification.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NotificationMember" xlink:label="loc_ypf_NotificationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NotificationMember" xml:lang="en-US">Notification [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NotificationMember" xlink:to="lab_ypf_NotificationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NotificationMember" xml:lang="en-US">Notification.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageAxis" xlink:label="loc_ypf_PurposeOfUsageAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PurposeOfUsageAxis" xml:lang="en-US">Purpose Of Usage [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PurposeOfUsageAxis" xlink:to="lab_ypf_PurposeOfUsageAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PurposeOfUsageAxis" xml:lang="en-US">Purpose of usage.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PurposeOfUsageMember" xlink:label="loc_ypf_PurposeOfUsageMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PurposeOfUsageMember" xml:lang="en-US">Purpose Of Usage [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PurposeOfUsageMember" xlink:to="lab_ypf_PurposeOfUsageMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PurposeOfUsageMember" xml:lang="en-US">Purpose of usage.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActAxis" xlink:label="loc_ypf_StatutoryActAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StatutoryActAxis" xml:lang="en-US">Statutory Act [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StatutoryActAxis" xlink:to="lab_ypf_StatutoryActAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StatutoryActAxis" xml:lang="en-US">Statutory act.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StatutoryActMember" xlink:label="loc_ypf_StatutoryActMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StatutoryActMember" xml:lang="en-US">Statutory Act [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StatutoryActMember" xlink:to="lab_ypf_StatutoryActMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StatutoryActMember" xml:lang="en-US">Statutory act.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteAxis" xlink:label="loc_ypf_ApplicableStatuteAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ApplicableStatuteAxis" xml:lang="en-US">Applicable Statute [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ApplicableStatuteAxis" xlink:to="lab_ypf_ApplicableStatuteAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ApplicableStatuteAxis" xml:lang="en-US">Applicable statute.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ApplicableStatuteDomain" xlink:label="loc_ypf_ApplicableStatuteDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ApplicableStatuteDomain" xml:lang="en-US">Applicable Statute [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ApplicableStatuteDomain" xlink:to="lab_ypf_ApplicableStatuteDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ApplicableStatuteDomain" xml:lang="en-US">Applicable statute.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xlink:label="loc_ypf_MaximumPercentageOfPermissibleInterestsInGasStations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xml:lang="en-US">Maximum Percentage Of Permissible Interests In Gas Stations</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xml:lang="en-US">Maximum percentage of permissible interest in gas stations</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xlink:to="lab_ypf_MaximumPercentageOfPermissibleInterestsInGasStations" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MaximumPercentageOfPermissibleInterestsInGasStations" xml:lang="en-US">Maximum percentage of permissible interests in gas stations.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" xlink:label="loc_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" xml:lang="en-US">Decree Of Necessity And Urgency DNU By Its Acronym in Spanish No 702023 [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" xlink:to="lab_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" xml:lang="en-US">Decree of Necessity and Urgency ("DNU" by its acronym in Spanish) No. 70/2023.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" xml:lang="en-US">Disclosure of transactions between related parties [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" xlink:to="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xlink:label="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xml:lang="en-US">Disclosure Of balance and Transactions with Related Parties [Table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xml:lang="en-US">Disclosure of transactions between related parties [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xlink:to="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" xml:lang="en-US">Disclosure Of balance and Transactions with Related Parties.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_JointVenturesWhereEntityIsVenturerMember" xlink:label="loc_ifrs-full_JointVenturesWhereEntityIsVenturerMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_JointVenturesWhereEntityIsVenturerMember" xml:lang="en-US">Joint ventures where entity is venturer [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_JointVenturesWhereEntityIsVenturerMember" xml:lang="en-US">Joint ventures [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_JointVenturesWhereEntityIsVenturerMember" xlink:to="lab_ifrs-full_JointVenturesWhereEntityIsVenturerMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JointVenturesAndAssociatesMember" xlink:label="loc_ypf_JointVenturesAndAssociatesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_JointVenturesAndAssociatesMember" xml:lang="en-US">Joint ventures and associates [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_JointVenturesAndAssociatesMember" xml:lang="en-US">Joint Ventures and Associates [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_JointVenturesAndAssociatesMember" xlink:to="lab_ypf_JointVenturesAndAssociatesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_JointVenturesAndAssociatesMember" xml:lang="en-US">Joint ventures and associates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xlink:label="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xml:lang="en-US">Disclosure Of balance and Transactions with Related Parties [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xml:lang="en-US">Disclosure of balance and transactions with related parties [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xlink:to="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" xml:lang="en-US">Disclosure Of balance and Transactions with Related Parties</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_InterestRevenueExpense" xlink:label="loc_ifrs-full_InterestRevenueExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_InterestRevenueExpense" xml:lang="en-US">Interest income (expense)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_InterestRevenueExpense" xml:lang="en-US">Net interest income (loss)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_InterestRevenueExpense" xlink:to="lab_ifrs-full_InterestRevenueExpense" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SustentatorSaMember" xlink:label="loc_ypf_SustentatorSaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SustentatorSaMember" xml:lang="en-US">Sustentator SA [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SustentatorSaMember" xml:lang="en-US">Sustentator [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SustentatorSaMember" xlink:to="lab_ypf_SustentatorSaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SustentatorSaMember" xml:lang="en-US">Sustentator S.A.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GpaMember" xlink:label="loc_ypf_GpaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GpaMember" xml:lang="en-US">GPA [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GpaMember" xml:lang="en-US">GPA [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GpaMember" xlink:to="lab_ypf_GpaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GpaMember" xml:lang="en-US">GPA.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasAustralSAMember" xlink:label="loc_ypf_GasAustralSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GasAustralSAMember" xml:lang="en-US">Gas Austral SA [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GasAustralSAMember" xml:lang="en-US">Gas Austral [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GasAustralSAMember" xlink:to="lab_ypf_GasAustralSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GasAustralSAMember" xml:lang="en-US">Gas Austral SA.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xml:lang="en-US">Disclosure of transactions between related parties [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xml:lang="en-US">Disclosure of transactions between related parties [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" xlink:to="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SecretaryOfIndustryMember" xlink:label="loc_ypf_SecretaryOfIndustryMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SecretaryOfIndustryMember" xml:lang="en-US">Secretary of Industry [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SecretaryOfIndustryMember" xlink:to="lab_ypf_SecretaryOfIndustryMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CammesaMember" xlink:label="loc_ypf_CammesaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CammesaMember" xml:lang="en-US">CAMMESA [member] [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CammesaMember" xml:lang="en-US">CAMMESA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CammesaMember" xlink:to="lab_ypf_CammesaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CammesaMember" xml:lang="en-US">Sales of fuel oil, diesel, natural gas and transportation and distribution service.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CammesaOneMember" xlink:label="loc_ypf_CammesaOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CammesaOneMember" xml:lang="en-US">CAMMESA One [member] [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CammesaOneMember" xml:lang="en-US">CAMMESA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CammesaOneMember" xlink:to="lab_ypf_CammesaOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CammesaOneMember" xml:lang="en-US">Purchases of electrical energy.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AerolineasArgentinasSAMember" xlink:label="loc_ypf_AerolineasArgentinasSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AerolineasArgentinasSAMember" xml:lang="en-US">Aerolineas Argentinas SA [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AerolineasArgentinasSAMember" xml:lang="en-US">Aerol&#237;neas Argentinas S.A. [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AerolineasArgentinasSAMember" xlink:to="lab_ypf_AerolineasArgentinasSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AerolineasArgentinasSAMember" xml:lang="en-US">Sales of jet fuel.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AerolineasArgentinasSAOneMember" xlink:label="loc_ypf_AerolineasArgentinasSAOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AerolineasArgentinasSAOneMember" xml:lang="en-US">Aerolineas Argentinas SA One [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AerolineasArgentinasSAOneMember" xml:lang="en-US">Aerol&#237;neas Argentinas S.A. [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AerolineasArgentinasSAOneMember" xlink:to="lab_ypf_AerolineasArgentinasSAOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AerolineasArgentinasSAOneMember" xml:lang="en-US">Purchases of miles for YPF Serviclub Program and publicity expenses.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AguaYSaneamientosArgentinosS.a.Member" xlink:label="loc_ypf_AguaYSaneamientosArgentinosS.a.Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AguaYSaneamientosArgentinosS.a.Member" xml:lang="en-US">Agua y Saneamientos Argentinos S.A. [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AguaYSaneamientosArgentinosS.a.Member" xml:lang="en-US">Agua y Saneamientos Argentinos S.A. [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AguaYSaneamientosArgentinosS.a.Member" xlink:to="lab_ypf_AguaYSaneamientosArgentinosS.a.Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AguaYSaneamientosArgentinosS.a.Member" xml:lang="en-US">Agua y saneamientos argentinos S.A..</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ArcaMember" xlink:label="loc_ypf_ArcaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ArcaMember" xml:lang="en-US">ARCA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ArcaMember" xlink:to="lab_ypf_ArcaMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ENARSAMember" xlink:label="loc_ypf_ENARSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ENARSAMember" xml:lang="en-US">ENARSA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ENARSAMember" xlink:to="lab_ypf_ENARSAMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ENARSAMember" xml:lang="en-US">Sales of natural gas and provision of regasification service of LNG and construction inspection service.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ENARSAOneMember" xlink:label="loc_ypf_ENARSAOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ENARSAOneMember" xml:lang="en-US">ENARSA One [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ENARSAOneMember" xml:lang="en-US">ENARSA [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ENARSAOneMember" xlink:to="lab_ypf_ENARSAOneMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ENARSAOneMember" xml:lang="en-US">Purchases of natural gas and crude oil.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SeMember" xlink:label="loc_ypf_SeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SeMember" xml:lang="en-US">SE [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SeMember" xlink:to="lab_ypf_SeMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SecretaryOfTransportMember" xlink:label="loc_ypf_SecretaryOfTransportMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SecretaryOfTransportMember" xml:lang="en-US">Secretary of Transport [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SecretaryOfTransportMember" xlink:to="lab_ypf_SecretaryOfTransportMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:label="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xml:lang="en-US">Disclosure of transactions between related parties [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xml:lang="en-US">Disclosure of balance and transactions with related parties [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" xlink:to="lab_ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xlink:label="loc_ypf_AmountsReceivableOrPayableRelatedPartyTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xml:lang="en-US">Amounts receivable or payable related party transactions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xml:lang="en-US">Credit (liabilities)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xlink:to="lab_ypf_AmountsReceivableOrPayableRelatedPartyTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AmountsReceivableOrPayableRelatedPartyTransactions" xml:lang="en-US">Amounts receivable or (payable) related party transactions.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeExpenseForRelatedPartyTransactions" xlink:label="loc_ypf_IncomeExpenseForRelatedPartyTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncomeExpenseForRelatedPartyTransactions" xml:lang="en-US">Income expense for related party transactions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncomeExpenseForRelatedPartyTransactions" xml:lang="en-US">Income / (Costs)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncomeExpenseForRelatedPartyTransactions" xlink:to="lab_ypf_IncomeExpenseForRelatedPartyTransactions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncomeExpenseForRelatedPartyTransactions" xml:lang="en-US">Income expense for related party transactions.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersAxis" xlink:label="loc_ifrs-full_MajorCustomersAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MajorCustomersAxis" xml:lang="en-US">Major customers [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MajorCustomersAxis" xml:lang="en-US">Major customers [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MajorCustomersAxis" xlink:to="lab_ifrs-full_MajorCustomersAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_MajorCustomersDomain" xlink:label="loc_ifrs-full_MajorCustomersDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_MajorCustomersDomain" xml:lang="en-US">Major customers [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_MajorCustomersDomain" xml:lang="en-US">Customers [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_MajorCustomersDomain" xlink:to="lab_ifrs-full_MajorCustomersDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PropaneGasSupplyAgreementMember" xlink:label="loc_ypf_PropaneGasSupplyAgreementMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PropaneGasSupplyAgreementMember" xml:lang="en-US">Propane Gas Supply Agreement [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PropaneGasSupplyAgreementMember" xml:lang="en-US">Propane gas supply agreement [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PropaneGasSupplyAgreementMember" xlink:to="lab_ypf_PropaneGasSupplyAgreementMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PropaneGasSupplyAgreementMember" xml:lang="en-US">Propane gas supply agreement.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xlink:label="loc_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xml:lang="en-US">Recognition of the financial cost generated by payment deferral by providers of the distribution service of natural and undiluted propane gas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xml:lang="en-US">Recognition of the financial cost generated by payment deferral by providers of the distribution service of natural and undiluted propane gas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xlink:to="lab_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" xml:lang="en-US">Recognition of the financial cost generated by payment deferral by providers of the distribution service of natural and undiluted propane gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xlink:label="loc_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xml:lang="en-US">Natural Gas Piping Distribution Service Licensed Companies benefit of Metrogas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xml:lang="en-US">Natural Gas Piping Distribution Service Licensed Companies benefit of Metrogas [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xlink:to="lab_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" xml:lang="en-US">Natural Gas Piping Distribution Service Licensed Companies benefit of Metrogas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GasarPlanMember" xlink:label="loc_ypf_GasarPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GasarPlanMember" xml:lang="en-US">GasAr Plan [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GasarPlanMember" xlink:to="lab_ypf_GasarPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GasarPlanMember" xml:lang="en-US">GasAr Plan</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompensationToDecreeNo10532018Member" xlink:label="loc_ypf_CompensationToDecreeNo10532018Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CompensationToDecreeNo10532018Member" xml:lang="en-US">Compensation to Decree No 1 0532018 [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CompensationToDecreeNo10532018Member" xml:lang="en-US">Compensation to Decree No.1,053/2018 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CompensationToDecreeNo10532018Member" xlink:to="lab_ypf_CompensationToDecreeNo10532018Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CompensationToDecreeNo10532018Member" xml:lang="en-US">Compensation to Decree No. 1,053/2018.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" xlink:label="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" xml:lang="en-US">Disclosure of key management personnel compensation [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" xlink:to="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" xml:lang="en-US">Disclosure of key management personnel compensation.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" xml:lang="en-US">Key management personnel compensation, short-term employee benefits</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" xml:lang="en-US">Short-term employee benefits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" xlink:to="lab_ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" xml:lang="en-US">Key management personnel compensation, share-based payment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" xml:lang="en-US">Share-based benefits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" xlink:to="lab_ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" xml:lang="en-US">Key management personnel compensation, post-employment benefits</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" xml:lang="en-US">Post-retirement benefits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" xlink:to="lab_ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" xml:lang="en-US">Key management personnel compensation, termination benefits</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" xml:lang="en-US">Termination benefits</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" xlink:to="lab_ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_KeyManagementPersonnelCompensation" xlink:label="loc_ifrs-full_KeyManagementPersonnelCompensation" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensation" xml:lang="en-US">Key management personnel compensation</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_KeyManagementPersonnelCompensation" xml:lang="en-US">Total</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_KeyManagementPersonnelCompensation" xlink:to="lab_ifrs-full_KeyManagementPersonnelCompensation" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SocialSecurityContributions" xlink:label="loc_ifrs-full_SocialSecurityContributions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SocialSecurityContributions" xml:lang="en-US">Social security contributions</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_SocialSecurityContributions" xml:lang="en-US">Social Security contributions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SocialSecurityContributions" xlink:to="lab_ifrs-full_SocialSecurityContributions" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" xlink:label="loc_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" xml:lang="en-US">Compania De Hidrocarburo No Convenciona lSRL CHNC [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" xml:lang="en-US">CHNC [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" xlink:to="lab_ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xlink:label="loc_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xml:lang="en-US">Compania De Desarrollo No Convencional SRL and Compania De Hidrocarburo No Convencional SRL [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xml:lang="en-US">CDNC and CHNC [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xlink:to="lab_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" xml:lang="en-US">CDNC and CHNC.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_PurchaseOfOilAndGasAssets" xlink:label="loc_ifrs-full_PurchaseOfOilAndGasAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_PurchaseOfOilAndGasAssets" xml:lang="en-US">Purchase of oil and gas assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_PurchaseOfOilAndGasAssets" xml:lang="en-US">Purchase of gas and crude oil</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_PurchaseOfOilAndGasAssets" xlink:to="lab_ifrs-full_PurchaseOfOilAndGasAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetBalancePayable" xlink:label="loc_ypf_NetBalancePayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetBalancePayable" xml:lang="en-US">Net Balance Payable</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetBalancePayable" xml:lang="en-US">Net balance payable</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetBalancePayable" xlink:to="lab_ypf_NetBalancePayable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetBalancePayable" xml:lang="en-US">Net balance payable.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NoncurrentProvisions" xlink:label="loc_ifrs-full_NoncurrentProvisions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NoncurrentProvisions" xml:lang="en-US">Non-current provisions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NoncurrentProvisions" xlink:to="lab_ifrs-full_NoncurrentProvisions" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationAxis" xlink:label="loc_ypf_ComprehensiveIncomeLocationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ComprehensiveIncomeLocationAxis" xml:lang="en-US">Comprehensive Income Location [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ComprehensiveIncomeLocationAxis" xlink:to="lab_ypf_ComprehensiveIncomeLocationAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ComprehensiveIncomeLocationAxis" xml:lang="en-US">Comprehensive income location.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ComprehensiveIncomeLocationDomain" xlink:label="loc_ypf_ComprehensiveIncomeLocationDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ComprehensiveIncomeLocationDomain" xml:lang="en-US">Comprehensive Income Location [Domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ComprehensiveIncomeLocationDomain" xlink:to="lab_ypf_ComprehensiveIncomeLocationDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_SellingGeneralAndAdministrativeExpenseMember" xlink:label="loc_ifrs-full_SellingGeneralAndAdministrativeExpenseMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_SellingGeneralAndAdministrativeExpenseMember" xml:lang="en-US">Selling, general and administrative expense [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_SellingGeneralAndAdministrativeExpenseMember" xlink:to="lab_ifrs-full_SellingGeneralAndAdministrativeExpenseMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" xlink:label="loc_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" xml:lang="en-US">Income from equity interests in associates and joint ventures [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" xlink:to="lab_ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" xml:lang="en-US">Disclosure Of Employee Benefit Plans And Share Based Payments [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" xlink:to="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" xml:lang="en-US">Disclosure Of Employee Benefit Plans And Share Based Payments [abstract]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlanTable" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlanTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlanTable" xml:lang="en-US">Disclosure Of Employee Benefit Plan [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlanTable" xml:lang="en-US">Disclosure Of Employee Benefit Plan [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanTable" xlink:to="lab_ypf_DisclosureOfEmployeeBenefitPlanTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlanTable" xml:lang="en-US">Disclosure Of Employee Benefit Plan [table]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansAxis" xlink:label="loc_ifrs-full_DefinedBenefitPlansAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DefinedBenefitPlansAxis" xml:lang="en-US">Defined benefit plans [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DefinedBenefitPlansAxis" xml:lang="en-US">Defined benefit plans [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DefinedBenefitPlansAxis" xlink:to="lab_ifrs-full_DefinedBenefitPlansAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DefinedBenefitPlansDomain" xlink:label="loc_ifrs-full_DefinedBenefitPlansDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DefinedBenefitPlansDomain" xml:lang="en-US">Defined benefit plans [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DefinedBenefitPlansDomain" xml:lang="en-US">Defined benefit plans [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DefinedBenefitPlansDomain" xlink:to="lab_ifrs-full_DefinedBenefitPlansDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_RetirementPlanMember" xlink:label="loc_ypf_RetirementPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_RetirementPlanMember" xml:lang="en-US">Retirement Plan [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_RetirementPlanMember" xml:lang="en-US">Retirement Plan [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_RetirementPlanMember" xlink:to="lab_ypf_RetirementPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_RetirementPlanMember" xml:lang="en-US">Retirement plan.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xlink:label="loc_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xml:lang="en-US">Performance Bonus Programs And Performance Evaluation [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xml:lang="en-US">Performance Bonus Programs and Performance Evaluation [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xlink:to="lab_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" xml:lang="en-US">Performance bonus programs and performance evaluation.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfEmployeeBenefitPlanLineItems" xlink:label="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlanLineItems" xml:lang="en-US">Disclosure Of Employee Benefit Plan [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlanLineItems" xml:lang="en-US">Disclosure Of Employee Benefit Plans And Similar Obligations [Line Items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfEmployeeBenefitPlanLineItems" xlink:to="lab_ypf_DisclosureOfEmployeeBenefitPlanLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfEmployeeBenefitPlanLineItems" xml:lang="en-US">Disclosure Of Employee Benefit Plan [line items]</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_EmployeeBenefitsExpense" xlink:label="loc_ifrs-full_EmployeeBenefitsExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_EmployeeBenefitsExpense" xml:lang="en-US">Employee benefits expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_EmployeeBenefitsExpense" xml:lang="en-US">Total charges</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_EmployeeBenefitsExpense" xlink:to="lab_ifrs-full_EmployeeBenefitsExpense" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xlink:label="loc_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xml:lang="en-US">Percentage Of Salary Contribution To Mutual Fund Retirement Plan</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xml:lang="en-US">Percentage contribution to mutual fund retirement plan</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xlink:to="lab_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" xml:lang="en-US">Percentage of salary contribution to mutual fund retirement plan.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xml:lang="en-US">Number of share options granted in share-based payment arrangement</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xml:lang="en-US">Granted</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xml:lang="en-US">Granted</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" xlink:to="lab_ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" xml:lang="en-US">Description of maximum term of options granted for share-based payment arrangement</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" xlink:to="lab_ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageSharePrice2019" xlink:label="loc_ifrs-full_WeightedAverageSharePrice2019" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_WeightedAverageSharePrice2019" xml:lang="en-US">Weighted average share price</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_WeightedAverageSharePrice2019" xlink:to="lab_ifrs-full_WeightedAverageSharePrice2019" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" xlink:label="loc_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" xml:lang="en-US">Weighted average remaining contractual life of outstanding share options</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" xlink:to="lab_ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" xlink:label="loc_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" xml:lang="en-US">Weighted average exercise price of share options granted in share-based payment arrangement</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" xlink:to="lab_ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xml:lang="en-US">Expense from share-based payment transactions</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" xlink:to="lab_ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ValueGenerationPlanMember" xlink:label="loc_ypf_ValueGenerationPlanMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ValueGenerationPlanMember" xml:lang="en-US">Value Generation Plan [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ValueGenerationPlanMember" xlink:to="lab_ypf_ValueGenerationPlanMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand And Twenty Five To Two Thousand And Twenty Eight [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xml:lang="en-US">Disclosure of terms and conditions of share-based payment arrangement [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" xlink:to="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xml:lang="en-US">Disclosure of terms and conditions of share-based payment arrangement [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xml:lang="en-US">Disclosure of terms and conditions of share-based payment arrangement [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" xlink:to="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:label="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xml:lang="en-US">Disclosure of terms and conditions of share-based payment arrangement [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xml:lang="en-US">Disclosure of terms and conditions of share-based payment arrangement [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" xlink:to="lab_ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xml:lang="en-US">Number of share options exercised in share-based payment arrangement</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xml:lang="en-US">Settled</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" xlink:to="lab_ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:label="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xml:lang="en-US">Number of share options expired in share-based payment arrangement</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedTerseLabel" xlink:label="lab_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xml:lang="en-US">Expired</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" xlink:to="lab_ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:label="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xml:lang="en-US">Share Based Payment Arrangement Options Grants In Period Weighted Average Grant Date Fair Value</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xml:lang="en-US">Fair value of shares on grant date (in U.S. dollars)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xml:lang="en-US">Fair value of shares on grant date (in U.S. dollars)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xlink:to="lab_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" xml:lang="en-US">Share Based Payment Arrangement Options Grants In Period Weighted Average Grant Date Fair Value</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NumberOfOutstandingShareOptions" xlink:label="loc_ifrs-full_NumberOfOutstandingShareOptions" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NumberOfOutstandingShareOptions" xml:lang="en-US">Number of share options outstanding in share-based payment arrangement</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ifrs-full_NumberOfOutstandingShareOptions" xml:lang="en-US">Amount at the beginning of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ifrs-full_NumberOfOutstandingShareOptions" xml:lang="en-US">Amount at the end of the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_NumberOfOutstandingShareOptions" xml:lang="en-US">Amount at the end of the fiscal year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NumberOfOutstandingShareOptions" xlink:to="lab_ifrs-full_NumberOfOutstandingShareOptions" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:label="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xml:lang="en-US">Expense from share-based payment transactions with employees</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xml:lang="en-US">Expense recognized during the fiscal year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xml:lang="en-US">Expense recognized during the fiscal year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" xlink:to="lab_ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand Twenty Two To Two Thousand Twenty Five [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xml:lang="en-US">Plan 2022-2025 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" xml:lang="en-US">Share based benefit plan two thousand twenty two to two thousand twenty five.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xlink:label="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xml:lang="en-US">Share Based Benefit Plan Two Thousand And Twenty Four To Two Thousand And Twenty Seven [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xml:lang="en-US">Plan 2024-2027 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xlink:to="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" xml:lang="en-US">Share based benefit plan two thousand and sixteen to nineteen.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_Plan20252028Member" xlink:label="loc_ypf_Plan20252028Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_Plan20252028Member" xml:lang="en-US">Plan 2025-2028 [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_Plan20252028Member" xlink:to="lab_ypf_Plan20252028Member" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract" xml:lang="en-US">Disclosure of non-adjusting events after reporting period [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract" xlink:to="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xml:lang="en-US">Disclosure of non-adjusting events after reporting period [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xml:lang="en-US">Disclosure of non-adjusting events after reporting period [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" xlink:to="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:label="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xml:lang="en-US">Disclosure of non-adjusting events after reporting period [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xml:lang="en-US">Disclosure of non-adjusting events after reporting period [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" xlink:to="lab_ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_NotionalAmount" xlink:label="loc_ifrs-full_NotionalAmount" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_NotionalAmount" xml:lang="en-US">Notional amount</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_NotionalAmount" xlink:to="lab_ifrs-full_NotionalAmount" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NumberOfConsecutiveAnnualInstalments" xlink:label="loc_ypf_NumberOfConsecutiveAnnualInstalments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NumberOfConsecutiveAnnualInstalments" xml:lang="en-US">Number Of Consecutive Annual Instalments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NumberOfConsecutiveAnnualInstalments" xlink:to="lab_ypf_NumberOfConsecutiveAnnualInstalments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NumberOfConsecutiveAnnualInstalments" xml:lang="en-US">Number Of Consecutive Annual Instalments</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfInstallmentAmoritized" xlink:label="loc_ypf_PercentageOfInstallmentAmoritized" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfInstallmentAmoritized" xml:lang="en-US">Percentage Of Installment Amoritized</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfInstallmentAmoritized" xlink:to="lab_ypf_PercentageOfInstallmentAmoritized" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfInstallmentAmoritized" xml:lang="en-US">Percentage Of Installment Amoritized</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BorrowingsInterestYieldRate" xlink:label="loc_ypf_BorrowingsInterestYieldRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BorrowingsInterestYieldRate" xml:lang="en-US">Borrowings Interest Yield Rate</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BorrowingsInterestYieldRate" xlink:to="lab_ypf_BorrowingsInterestYieldRate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BorrowingsInterestYieldRate" xml:lang="en-US">Borrowings interest yield rate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IssueOfDebtNotesMember" xlink:label="loc_ypf_IssueOfDebtNotesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IssueOfDebtNotesMember" xml:lang="en-US">Issue Of Debt Notes [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IssueOfDebtNotesMember" xml:lang="en-US">Issue of Debt Notes [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IssueOfDebtNotesMember" xlink:to="lab_ypf_IssueOfDebtNotesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IssueOfDebtNotesMember" xml:lang="en-US">Issue of debt notes.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AssetsExchangeMember" xlink:label="loc_ypf_AssetsExchangeMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AssetsExchangeMember" xml:lang="en-US">Assets Exchange [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AssetsExchangeMember" xlink:to="lab_ypf_AssetsExchangeMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassXXXIVMember" xlink:label="loc_ypf_ClassXXXIVMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassXXXIVMember" xml:lang="en-US">ClassXXXIV [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassXXXIVMember" xlink:to="lab_ypf_ClassXXXIVMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassxliiMember" xlink:label="loc_ypf_ClassxliiMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassxliiMember" xml:lang="en-US">ClassXLII [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassxliiMember" xlink:to="lab_ypf_ClassxliiMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsAxis" xlink:label="loc_ypf_ClassOfBorrowingsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassOfBorrowingsAxis" xml:lang="en-US">Class of Borrowings [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassOfBorrowingsAxis" xlink:to="lab_ypf_ClassOfBorrowingsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassOfBorrowingsAxis" xml:lang="en-US">Class of borrowings.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassOfBorrowingsMember" xlink:label="loc_ypf_ClassOfBorrowingsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassOfBorrowingsMember" xml:lang="en-US">Class of Borrowings [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassOfBorrowingsMember" xlink:to="lab_ypf_ClassOfBorrowingsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ClassOfBorrowingsMember" xml:lang="en-US">Class of borrowings.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityAxis" xlink:label="loc_ypf_LetterOfCreditFacilityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LetterOfCreditFacilityAxis" xml:lang="en-US">Letter of credit facility [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LetterOfCreditFacilityAxis" xlink:to="lab_ypf_LetterOfCreditFacilityAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LetterOfCreditFacilityAxis" xml:lang="en-US">Letter of credit facility.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_LetterOfCreditFacilityMember" xlink:label="loc_ypf_LetterOfCreditFacilityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_LetterOfCreditFacilityMember" xml:lang="en-US">Letter of credit facility [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_LetterOfCreditFacilityMember" xlink:to="lab_ypf_LetterOfCreditFacilityMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_LetterOfCreditFacilityMember" xml:lang="en-US">Letter of credit facility.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleAxis" xlink:label="loc_ypf_ClassifiedAsHeldForSaleAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassifiedAsHeldForSaleAxis" xml:lang="en-US">Classified As Held For Sale [Axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassifiedAsHeldForSaleAxis" xlink:to="lab_ypf_ClassifiedAsHeldForSaleAxis" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ClassifiedAsHeldForSaleMember" xlink:label="loc_ypf_ClassifiedAsHeldForSaleMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ClassifiedAsHeldForSaleMember" xml:lang="en-US">Classified As Held For Sale [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ClassifiedAsHeldForSaleMember" xlink:to="lab_ypf_ClassifiedAsHeldForSaleMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_JanuaryTwentyThousandThirtyFourMember" xlink:label="loc_ypf_JanuaryTwentyThousandThirtyFourMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_JanuaryTwentyThousandThirtyFourMember" xml:lang="en-US">January Twenty Thousand Thirty Four [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_JanuaryTwentyThousandThirtyFourMember" xlink:to="lab_ypf_JanuaryTwentyThousandThirtyFourMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MarchTwentyThousandTwentyNineMember" xlink:label="loc_ypf_MarchTwentyThousandTwentyNineMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MarchTwentyThousandTwentyNineMember" xml:lang="en-US">March Twenty Thousand Twenty Nine [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MarchTwentyThousandTwentyNineMember" xlink:to="lab_ypf_MarchTwentyThousandTwentyNineMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EquinorArgentinaSauMember" xlink:label="loc_ypf_EquinorArgentinaSauMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EquinorArgentinaSauMember" xml:lang="en-US">Equinor Argentina SAU [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EquinorArgentinaSauMember" xlink:to="lab_ypf_EquinorArgentinaSauMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BandurriaSurBlockMember" xlink:label="loc_ypf_BandurriaSurBlockMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BandurriaSurBlockMember" xml:lang="en-US">Bandurria Sur Block [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BandurriaSurBlockMember" xlink:to="lab_ypf_BandurriaSurBlockMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_BandurriaSurBlockMember" xml:lang="en-US">Bandurria Sur Block.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_BajoDelToroNorteMember" xlink:label="loc_ypf_BajoDelToroNorteMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_BajoDelToroNorteMember" xml:lang="en-US">Bajo Del Toro Norte [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_BajoDelToroNorteMember" xlink:to="lab_ypf_BajoDelToroNorteMember" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:label="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xml:lang="en-US">Disclosure of information about consolidated structured entities [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" xlink:to="lab_ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesDevelopedMember" xlink:label="loc_ypf_ProvedReservesDevelopedMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvedReservesDevelopedMember" xml:lang="en-US">Proved reserves, developed [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvedReservesDevelopedMember" xml:lang="en-US">Proved reserves, developed [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvedReservesDevelopedMember" xlink:to="lab_ypf_ProvedReservesDevelopedMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvedReservesDevelopedMember" xml:lang="en-US">Proved reserves, developed.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesUndevelopedMember" xlink:label="loc_ypf_ProvedReservesUndevelopedMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvedReservesUndevelopedMember" xml:lang="en-US">Proved reserves, undeveloped [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvedReservesUndevelopedMember" xml:lang="en-US">Proved reserves, undeveloped [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvedReservesUndevelopedMember" xlink:to="lab_ypf_ProvedReservesUndevelopedMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvedReservesUndevelopedMember" xml:lang="en-US">Proved reserves, undeveloped [member]</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ConsolidatedAndEquityaccountedEntitiesMember" xlink:label="loc_ypf_ConsolidatedAndEquityaccountedEntitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ConsolidatedAndEquityaccountedEntitiesMember" xml:lang="en-US">Consolidated and equity-accounted entities [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ConsolidatedAndEquityaccountedEntitiesMember" xml:lang="en-US">Consolidated and equity-accounted entities [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ConsolidatedAndEquityaccountedEntitiesMember" xlink:to="lab_ypf_ConsolidatedAndEquityaccountedEntitiesMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ConsolidatedAndEquityaccountedEntitiesMember" xml:lang="en-US">Consolidated and equity-accounted entities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilAndCondensate" xlink:label="loc_ypf_NetProvedReservesOfOilAndCondensate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilAndCondensate" xml:lang="en-US">Net proved reserves of oil and condensate</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ypf_NetProvedReservesOfOilAndCondensate" xml:lang="en-US">Beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ypf_NetProvedReservesOfOilAndCondensate" xml:lang="en-US">Ending balance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilAndCondensate" xlink:to="lab_ypf_NetProvedReservesOfOilAndCondensate" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilAndCondensate" xml:lang="en-US">Net proved reserves of oil and condensate.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xlink:label="loc_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xml:lang="en-US">Oil and condensate reserve revisions of previous estimates</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xml:lang="en-US">Revisions of previous estimates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xlink:to="lab_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" xml:lang="en-US">Oil and condensate reserve revisions of previous estimates</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xlink:label="loc_ypf_OilAndCondensateReserveExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xml:lang="en-US">Oil and condensate reserve extensions and discoveries</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xml:lang="en-US">Extensions and discoveries</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xlink:to="lab_ypf_OilAndCondensateReserveExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilAndCondensateReserveExtensionsAndDiscoveries" xml:lang="en-US">Oil and condensate reserve extensions and discoveries.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveImprovedRecovery" xlink:label="loc_ypf_OilAndCondensateReserveImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilAndCondensateReserveImprovedRecovery" xml:lang="en-US">Oil and condensate reserve improved recovery</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OilAndCondensateReserveImprovedRecovery" xml:lang="en-US">Improved recovery</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilAndCondensateReserveImprovedRecovery" xlink:to="lab_ypf_OilAndCondensateReserveImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilAndCondensateReserveImprovedRecovery" xml:lang="en-US">Oil and condensate reserve improved recovery.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReservePurchaseOfMinerals" xlink:label="loc_ypf_OilAndCondensateReservePurchaseOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilAndCondensateReservePurchaseOfMinerals" xml:lang="en-US">Oil and condensate reserve purchase of minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OilAndCondensateReservePurchaseOfMinerals" xml:lang="en-US">Purchase of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilAndCondensateReservePurchaseOfMinerals" xlink:to="lab_ypf_OilAndCondensateReservePurchaseOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilAndCondensateReservePurchaseOfMinerals" xml:lang="en-US">Oil and condensate reserve purchase of minerals.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveSaleOfMinerals" xlink:label="loc_ypf_OilAndCondensateReserveSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilAndCondensateReserveSaleOfMinerals" xml:lang="en-US">Oil and condensate reserve sale of minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_OilAndCondensateReserveSaleOfMinerals" xml:lang="en-US">Sale of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilAndCondensateReserveSaleOfMinerals" xlink:to="lab_ypf_OilAndCondensateReserveSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilAndCondensateReserveSaleOfMinerals" xml:lang="en-US">Oil and condensate reserve sale of minerals.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OilAndCondensateReserveProductionForYear" xlink:label="loc_ypf_OilAndCondensateReserveProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OilAndCondensateReserveProductionForYear" xml:lang="en-US">Oil and condensate reserve production for year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_OilAndCondensateReserveProductionForYear" xml:lang="en-US">Production for the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OilAndCondensateReserveProductionForYear" xlink:to="lab_ypf_OilAndCondensateReserveProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OilAndCondensateReserveProductionForYear" xml:lang="en-US">Oil and condensate reserve production for year.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquids" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquids" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquids" xml:lang="en-US">Net proved reserves of natural gas liquids</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquids" xml:lang="en-US">Beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquids" xml:lang="en-US">Ending balance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasLiquids" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasLiquids" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquids" xml:lang="en-US">Net proved reserves of natural gas liquids.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xml:lang="en-US">Net proved reserves of natural gas liquids revisions of previous estimates</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xml:lang="en-US">Revisions of previous estimates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" xml:lang="en-US">Net proved reserves of natural gas liquids revisions of previous estimates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xml:lang="en-US">Net proved reserves of natural gas liquids extensions and discoveries</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xml:lang="en-US">Extensions and discoveries</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" xml:lang="en-US">Net proved reserves of natural gas liquids extensions and discoveries.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xml:lang="en-US">Net proved reserves of natural gas liquids sale of minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xml:lang="en-US">Sale of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" xml:lang="en-US">Net proved reserves of natural gas liquids sale of minerals.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xml:lang="en-US">Net proved reserves of natural gas liquids production for year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xml:lang="en-US">Production for the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" xml:lang="en-US">Net proved reserves of natural gas liquids production for year.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGas" xlink:label="loc_ypf_NetProvedReservesOfNaturalGas" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGas" xml:lang="en-US">Net Proved Reserves Of Natural Gas</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGas" xml:lang="en-US">Beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGas" xml:lang="en-US">Ending balance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGas" xlink:to="lab_ypf_NetProvedReservesOfNaturalGas" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGas" xml:lang="en-US">Net proved reserves of natural gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xml:lang="en-US">Net Proved Reserves Of Natural Gas Revisions Of Previous Estimates</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xml:lang="en-US">Revisions of previous estimates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" xml:lang="en-US">Net proved reserves of natural gas revisions of previous estimates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xml:lang="en-US">Net Proved Reserves Of Natural Gas Extensions And Discoveries</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xml:lang="en-US">Extensions and discoveries</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" xml:lang="en-US">Net Proved Reserves Of Natural Gas Extensions And Discoveries</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xml:lang="en-US">Net Proved Reserves Of Natural Gas Improved Recovery</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xml:lang="en-US">Improved recovery</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasImprovedRecovery" xml:lang="en-US">Net Proved Reserves Of Natural Gas Improved Recovery</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xml:lang="en-US">Net Proved Reserves Of Natural Gas Purchase Of Minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xml:lang="en-US">Purchase of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" xml:lang="en-US">Net Proved Reserves Of Natural Gas Purchase Of Minerals</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xml:lang="en-US">Net Proved Reserves Of Natural Gas Sale Of Minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xml:lang="en-US">Sale of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" xml:lang="en-US">Net Proved Reserves Of Natural Gas Sale Of Minerals</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfNaturalGasProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfNaturalGasProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasProductionForYear" xml:lang="en-US">Net Proved Reserves Of Natural Gas Production For Year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasProductionForYear" xml:lang="en-US">Production for the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfNaturalGasProductionForYear" xlink:to="lab_ypf_NetProvedReservesOfNaturalGasProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfNaturalGasProductionForYear" xml:lang="en-US">Net Proved Reserves Of Natural Gas Production For Year</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalent" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalent" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalent" xml:lang="en-US">Beginning balance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalent" xml:lang="en-US">Ending balance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalent" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalent" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalent" xml:lang="en-US">Net proved reserves of oil equivalent.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent Revisions Of Previous Estimates</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xml:lang="en-US">Revisions of previous estimates</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" xml:lang="en-US">Net proved reserves of oil equivalent revisions of previous estimates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent Extensions And Discoveries</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xml:lang="en-US">Extensions and discoveries</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" xml:lang="en-US">Net proved reserves of oil equivalent extensions and discoveries.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent Improved Recovery</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xml:lang="en-US">Improved recovery</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" xml:lang="en-US">Net proved reserves of oil equivalent improved recovery.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent Purchase Of Minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xml:lang="en-US">Purchase of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" xml:lang="en-US">Net proved reserves of oil equivalent purchase of minerals.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent Sale Of Minerals</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xml:lang="en-US">Sale of minerals in place</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" xml:lang="en-US">Net proved reserves of oil equivalent sale of minerals.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesOfOilEquivalentProductionForYear" xlink:label="loc_ypf_NetProvedReservesOfOilEquivalentProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentProductionForYear" xml:lang="en-US">Net Proved Reserves Of Oil Equivalent Production For Year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentProductionForYear" xml:lang="en-US">Production for the year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesOfOilEquivalentProductionForYear" xlink:to="lab_ypf_NetProvedReservesOfOilEquivalentProductionForYear" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesOfOilEquivalentProductionForYear" xml:lang="en-US">Net proved reserves of oil equivalent production for year.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_WorldwideMember" xlink:label="loc_ypf_WorldwideMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_WorldwideMember" xml:lang="en-US">Worldwide [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_WorldwideMember" xml:lang="en-US">Worldwide [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_WorldwideMember" xlink:to="lab_ypf_WorldwideMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_WorldwideMember" xml:lang="en-US">Worldwide.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xlink:label="loc_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xml:lang="en-US">Volume Of Natural Gas Converted To Cubic Feet Per Barrel</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xml:lang="en-US">Natural gas converted to barrel of oil equivalent</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xlink:to="lab_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" xml:lang="en-US">Volume of natural gas converted to cubic feet per barrel.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedCrudeOilProductionDuringPeriod" xlink:label="loc_ypf_EstimatedCrudeOilProductionDuringPeriod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedCrudeOilProductionDuringPeriod" xml:lang="en-US">Estimated crude oil production during period</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedCrudeOilProductionDuringPeriod" xml:lang="en-US">Estimated crude oil production</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedCrudeOilProductionDuringPeriod" xlink:to="lab_ypf_EstimatedCrudeOilProductionDuringPeriod" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedCrudeOilProductionDuringPeriod" xml:lang="en-US">Estimated crude oil production during period.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedCrudeOilReserves" xlink:label="loc_ypf_EstimatedProvedCrudeOilReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedProvedCrudeOilReserves" xml:lang="en-US">Estimated proved crude oil reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedProvedCrudeOilReserves" xml:lang="en-US">Estimated proved crude oil reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedProvedCrudeOilReserves" xlink:to="lab_ypf_EstimatedProvedCrudeOilReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedProvedCrudeOilReserves" xml:lang="en-US">Estimated proved crude oil reserves.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedNaturalGasLiquidsProduction" xlink:label="loc_ypf_EstimatedNaturalGasLiquidsProduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedNaturalGasLiquidsProduction" xml:lang="en-US">Estimated natural gas liquids production</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedNaturalGasLiquidsProduction" xml:lang="en-US">Estimated natural gas liquids production</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedNaturalGasLiquidsProduction" xlink:to="lab_ypf_EstimatedNaturalGasLiquidsProduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedNaturalGasLiquidsProduction" xml:lang="en-US">Estimated natural gas liquids production.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedNaturalGasLiquidsReserves" xlink:label="loc_ypf_EstimatedProvedNaturalGasLiquidsReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedProvedNaturalGasLiquidsReserves" xml:lang="en-US">Estimated proved natural gas liquids reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedProvedNaturalGasLiquidsReserves" xml:lang="en-US">Estimated proved natural gas liquids reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedProvedNaturalGasLiquidsReserves" xlink:to="lab_ypf_EstimatedProvedNaturalGasLiquidsReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedProvedNaturalGasLiquidsReserves" xml:lang="en-US">Estimated proved natural gas liquids reserves.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedNaturalGasProduction" xlink:label="loc_ypf_EstimatedNaturalGasProduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedNaturalGasProduction" xml:lang="en-US">Estimated Natural Gas Production</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedNaturalGasProduction" xml:lang="en-US">Estimated natural gas production</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedNaturalGasProduction" xlink:to="lab_ypf_EstimatedNaturalGasProduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedNaturalGasProduction" xml:lang="en-US">Estimated natural gas production.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedBarrelOfOilEquivalentProduction" xlink:label="loc_ypf_EstimatedBarrelOfOilEquivalentProduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedBarrelOfOilEquivalentProduction" xml:lang="en-US">Estimated Barrel of Oil Equivalent Production</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedBarrelOfOilEquivalentProduction" xml:lang="en-US">Estimated barrel of oil equivalent production</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedBarrelOfOilEquivalentProduction" xlink:to="lab_ypf_EstimatedBarrelOfOilEquivalentProduction" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedBarrelOfOilEquivalentProduction" xml:lang="en-US">Estimated Barrel of Oil Equivalent Production</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedOilEquivalentReserves" xlink:label="loc_ypf_EstimatedProvedOilEquivalentReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedProvedOilEquivalentReserves" xml:lang="en-US">Estimated Proved Oil Equivalent Reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedProvedOilEquivalentReserves" xml:lang="en-US">Estimated Proved oil equivalent reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedProvedOilEquivalentReserves" xlink:to="lab_ypf_EstimatedProvedOilEquivalentReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedProvedOilEquivalentReserves" xml:lang="en-US">Estimated Proved Oil Equivalent Reserves</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xlink:label="loc_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xml:lang="en-US">Estimated proved natural gas reserves consumed as fuel</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xml:lang="en-US">Estimated proved natural gas reserves consumed as fuel</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xlink:to="lab_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" xml:lang="en-US">Estimated proved natural gas reserves consumed as fuel.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" xml:lang="en-US">Disclosure Of Discounted Future Net Cash Flow [abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" xlink:to="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" xml:lang="en-US">Disclosure of discounted future net cash flow.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xml:lang="en-US">Disclosure of discounted future net cash flow [table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xml:lang="en-US">Disclosure of discounted future net cash flow [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xlink:to="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowTable" xml:lang="en-US">Schedule disclosing information about discounted future net cash flow.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOil1Member" xlink:label="loc_ypf_CrudeOil1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CrudeOil1Member" xml:lang="en-US">Crude Oil 1 [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CrudeOil1Member" xml:lang="en-US">Crude oil [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CrudeOil1Member" xlink:to="lab_ypf_CrudeOil1Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CrudeOil1Member" xml:lang="en-US">Crude oil.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CrudeOilAndNaturalGasMember" xlink:label="loc_ypf_CrudeOilAndNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CrudeOilAndNaturalGasMember" xml:lang="en-US">Crude Oil And Natural Gas [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CrudeOilAndNaturalGasMember" xml:lang="en-US">Crude Oil And Natural Gas [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CrudeOilAndNaturalGasMember" xlink:to="lab_ypf_CrudeOilAndNaturalGasMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CrudeOilAndNaturalGasMember" xml:lang="en-US">Crude oil and natural gas.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ChangesInOurEstimatedProvedReservesLineItems" xlink:label="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ChangesInOurEstimatedProvedReservesLineItems" xml:lang="en-US">Changes In Our Estimated Proved Reserves [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ChangesInOurEstimatedProvedReservesLineItems" xml:lang="en-US">Changes in our estimated proved reserves [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ChangesInOurEstimatedProvedReservesLineItems" xlink:to="lab_ypf_ChangesInOurEstimatedProvedReservesLineItems" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xlink:label="loc_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xml:lang="en-US">Extensions and discoveries of proved developed reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xml:lang="en-US">Extension and discoveries of proved development reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xlink:to="lab_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" xml:lang="en-US">Extensions and discoveries of proved developed reserves.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xlink:label="loc_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xml:lang="en-US">Extensions and discoveries of proved undeveloped reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xml:lang="en-US">Extension and discoveries of proved undevelopment reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xlink:to="lab_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" xml:lang="en-US">Extensions and discoveries of proved undeveloped reserves.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xlink:label="loc_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xml:lang="en-US">Net Proved Reserves Revisions Of Previous Estimates Increase Decrease</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xml:lang="en-US">Revised proved reserves</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xlink:to="lab_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" xml:lang="en-US">Net proved reserves revisions of previous estimates increase decrease.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xlink:label="loc_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xml:lang="en-US">As A Result Of Economics Related To Changes In Fields Operating Costs And Oil And Gas Prices</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xml:lang="en-US">As a result of economics related to changes in fields operating costs and oil and gas prices</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xlink:to="lab_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" xml:lang="en-US">As a result of economics related to changes in fields operating costs and oil and gas prices.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xlink:label="loc_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xml:lang="en-US">Proved Developed Reserves Revisions Of Previous Estimates Due To Higher Average Oil Price Increase</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xml:lang="en-US">Proved developed reserves added due to higher average oil price</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xlink:to="lab_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" xml:lang="en-US">Proved Developed Reserves Revisions Of Previous Estimates Due To Higher Average Oil Price Increase</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xml:lang="en-US">Proved Reserves Revisions Of Previous Estimates Related To Changes In Projects Strategy And Drilling Schedules</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xml:lang="en-US">Proved reserves revisions of previous estimates related to changes in projects strategy and drilling schedules</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xlink:to="lab_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" xml:lang="en-US">Proved reserves revisions of previous estimates related to changes in projects strategy and drilling schedules.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInEstimatedReserve" xlink:label="loc_ypf_IncreaseDecreaseInEstimatedReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInEstimatedReserve" xml:lang="en-US">Increase Decrease In Estimated Reserve</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInEstimatedReserve" xml:lang="en-US">Increase Decrease in estimated reserve</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInEstimatedReserve" xlink:to="lab_ypf_IncreaseDecreaseInEstimatedReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInEstimatedReserve" xml:lang="en-US">Increase Decrease in estimated reserve.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInTotalProvedReserve" xlink:label="loc_ypf_IncreaseDecreaseInTotalProvedReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInTotalProvedReserve" xml:lang="en-US">Increase Decrease In Total Proved Reserve</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInTotalProvedReserve" xml:lang="en-US">Increase Decrease in total proved reserve</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInTotalProvedReserve" xlink:to="lab_ypf_IncreaseDecreaseInTotalProvedReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInTotalProvedReserve" xml:lang="en-US">Increase Decrease in total proved reserve.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xlink:label="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xml:lang="en-US">Increase In Proved Reserves On Account Of Project Performance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xml:lang="en-US">Increase in proved reserves on account of project performance</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xml:lang="en-US">Increase In Proved Reserves On Account Of Project Performance</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xlink:to="lab_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" xml:lang="en-US">Increase in proved reserves on account of project performance.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xlink:label="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xml:lang="en-US">Proved Reserves Revisions Of Previous Estimate Of Change Due To Working Interest New Projects Addition And Production Forecasts Adjustments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xml:lang="en-US">Proved reserves revisions of previous estimate of change due to working interest, new projects addition and production forecasts adjustments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/verboseLabel" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xml:lang="en-US">Proved Reserves Revisions Of Previous Estimate Of Change Due To Working Interest New Projects Addition And Production Forecasts Adjustments</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xlink:to="lab_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" xml:lang="en-US">Proved reserves revisions of previous estimate of change due to working interest new projects addition and production forecasts adjustments.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" xlink:label="loc_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" xml:lang="en-US">Proved Developed and Undeveloped Reserve, Improved Recovery (Energy)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" xml:lang="en-US">Proved developed and undeveloped reserves improved recovery energy</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" xlink:to="lab_srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xlink:label="loc_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xml:lang="en-US">Volume Of Proved Reserve For Divestment Process Of Crudeoil</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xml:lang="en-US">Volume Of Proved Reserve For Divestment Process Of Crudeoil</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xlink:to="lab_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" xml:lang="en-US">Volume of proved reserve for divestment process of crudeoil.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xlink:label="loc_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xml:lang="en-US">Provision On Impairment Loss Recognized In Profit Or Loss Property Plant And Equipment Classified Held For Sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xml:lang="en-US">Provision on impairment loss recognized in profit or loss property plant and equipment classified held for sale.</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xlink:to="lab_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" xml:lang="en-US">Provision on impairment loss recognized in profit or loss property plant and equipment classified held for sale.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredOfAssetsHeldForSale" xlink:label="loc_ypf_CostsIncurredOfAssetsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CostsIncurredOfAssetsHeldForSale" xml:lang="en-US">Costs Incurred Of Assets Held For Sale</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_CostsIncurredOfAssetsHeldForSale" xml:lang="en-US">Costs incurred of assets held for sale</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CostsIncurredOfAssetsHeldForSale" xlink:to="lab_ypf_CostsIncurredOfAssetsHeldForSale" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CostsIncurredOfAssetsHeldForSale" xml:lang="en-US">Costs incurred of assets held for sale.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_PercentageOfDisposalOfInterests" xlink:label="loc_ypf_PercentageOfDisposalOfInterests" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_PercentageOfDisposalOfInterests" xml:lang="en-US">Percentage of Disposal Of Interests</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_PercentageOfDisposalOfInterests" xml:lang="en-US">Percentage of Disposal Of Interests</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_PercentageOfDisposalOfInterests" xlink:to="lab_ypf_PercentageOfDisposalOfInterests" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_PercentageOfDisposalOfInterests" xml:lang="en-US">Percentage of disposal of interests.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GolfoSanJorgeBasinMember" xlink:label="loc_ypf_GolfoSanJorgeBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GolfoSanJorgeBasinMember" xml:lang="en-US">Golfo San Jorge Basin [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_GolfoSanJorgeBasinMember" xml:lang="en-US">Golfo San Jorge basin [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GolfoSanJorgeBasinMember" xlink:to="lab_ypf_GolfoSanJorgeBasinMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GolfoSanJorgeBasinMember" xml:lang="en-US">Golfo san jorge basin.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" xlink:label="loc_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" xml:lang="en-US">Sierra Chata, La Escalonada and Rinc&#243;n de la Ceniza</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" xlink:to="lab_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" xml:lang="en-US">Sierra chata la escalonada and rinc&#243;n de la ceniza member.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesAxis" xlink:label="loc_ifrs-full_AccountingEstimatesAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AccountingEstimatesAxis" xml:lang="en-US">Accounting estimates [axis]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AccountingEstimatesAxis" xml:lang="en-US">Accounting estimates [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AccountingEstimatesAxis" xlink:to="lab_ifrs-full_AccountingEstimatesAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_AccountingEstimatesDomain" xlink:label="loc_ifrs-full_AccountingEstimatesDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_AccountingEstimatesDomain" xml:lang="en-US">Accounting estimates [domain]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ifrs-full_AccountingEstimatesDomain" xml:lang="en-US">Accounting estimates [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_AccountingEstimatesDomain" xlink:to="lab_ifrs-full_AccountingEstimatesDomain" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" xlink:label="loc_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" xml:lang="en-US">Classification of assets as held for sale [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" xlink:to="lab_ifrs-full_ClassificationOfAssetsAsHeldForSaleMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_MineralPropertyWellsAndRelatedEquipment" xlink:label="loc_ypf_MineralPropertyWellsAndRelatedEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_MineralPropertyWellsAndRelatedEquipment" xml:lang="en-US">Mineral property, wells and related equipment</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_MineralPropertyWellsAndRelatedEquipment" xml:lang="en-US">Mineral property, wells and related equipment</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_MineralPropertyWellsAndRelatedEquipment" xlink:to="lab_ypf_MineralPropertyWellsAndRelatedEquipment" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_MineralPropertyWellsAndRelatedEquipment" xml:lang="en-US">All Upstream contracts excepted for Drilling Contracts</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SupportEquipmentAndFacilities" xlink:label="loc_ypf_SupportEquipmentAndFacilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SupportEquipmentAndFacilities" xml:lang="en-US">Support equipment and facilities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_SupportEquipmentAndFacilities" xml:lang="en-US">Support equipment and facilities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SupportEquipmentAndFacilities" xlink:to="lab_ypf_SupportEquipmentAndFacilities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SupportEquipmentAndFacilities" xml:lang="en-US">Support equipment and facilities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DrillingAndWorkInProgress" xlink:label="loc_ypf_DrillingAndWorkInProgress" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DrillingAndWorkInProgress" xml:lang="en-US">Drilling and work in progress</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DrillingAndWorkInProgress" xml:lang="en-US">Drilling and work in progress</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DrillingAndWorkInProgress" xlink:to="lab_ypf_DrillingAndWorkInProgress" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DrillingAndWorkInProgress" xml:lang="en-US">Drilling Contracts</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UnprovedOilAndGasProperties" xlink:label="loc_ypf_UnprovedOilAndGasProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UnprovedOilAndGasProperties" xml:lang="en-US">Unproved Oil And Gas Properties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UnprovedOilAndGasProperties" xml:lang="en-US">Unproved oil and gas properties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UnprovedOilAndGasProperties" xlink:to="lab_ypf_UnprovedOilAndGasProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UnprovedOilAndGasProperties" xml:lang="en-US">Unproved oil and gas properties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_GrossCapitalizedCost" xlink:label="loc_ypf_GrossCapitalizedCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_GrossCapitalizedCost" xml:lang="en-US">Gross Capitalized Cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_GrossCapitalizedCost" xml:lang="en-US">Total capitalized costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_GrossCapitalizedCost" xlink:to="lab_ypf_GrossCapitalizedCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_GrossCapitalizedCost" xml:lang="en-US">Gross capitalized cost.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationAndValuationAllowances" xlink:label="loc_ypf_AccumulatedDepreciationAndValuationAllowances" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccumulatedDepreciationAndValuationAllowances" xml:lang="en-US">Accumulated Depreciation And Valuation Allowances</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_AccumulatedDepreciationAndValuationAllowances" xml:lang="en-US">Accumulated depreciation and valuation allowances</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccumulatedDepreciationAndValuationAllowances" xlink:to="lab_ypf_AccumulatedDepreciationAndValuationAllowances" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccumulatedDepreciationAndValuationAllowances" xml:lang="en-US">Accumulated Depreciation of all Upstream contracts</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetCapitalizedCost" xlink:label="loc_ypf_NetCapitalizedCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetCapitalizedCost" xml:lang="en-US">Net Capitalized Cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_NetCapitalizedCost" xml:lang="en-US">Net capitalized costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetCapitalizedCost" xlink:to="lab_ypf_NetCapitalizedCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetCapitalizedCost" xml:lang="en-US">Net capitalized cost.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xml:lang="en-US">Upstream Wells Related Equipment Contracts Comprised In Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xml:lang="en-US">Upstream wells related equipment contracts comprised in right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xlink:to="lab_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" xml:lang="en-US">Upstream wells related equipment contracts comprised in right-of-use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xml:lang="en-US">Upstream Support Equipment And Facilities Contracts Comprised In Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xml:lang="en-US">Upstream support equipment and facilities contracts comprised in right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xlink:to="lab_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" xml:lang="en-US">Upstream support equipment and facilities contracts comprised in right-of-use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xml:lang="en-US">Accumulated Depreciation Of All Upstream Contracts Comprised In Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xml:lang="en-US">Accumulated depreciation of all Upstream contracts comprised in right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xlink:to="lab_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" xml:lang="en-US">Accumulated depreciation of all Upstream contracts comprised in right-of-use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsAxis" xlink:label="loc_ifrs-full_TypesOfContractsAxis" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfContractsAxis" xml:lang="en-US">Types of contracts [axis]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfContractsAxis" xlink:to="lab_ifrs-full_TypesOfContractsAxis" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_TypesOfContractsDomain" xlink:label="loc_ifrs-full_TypesOfContractsDomain" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_TypesOfContractsDomain" xml:lang="en-US">Types of contracts [domain]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_TypesOfContractsDomain" xlink:to="lab_ifrs-full_TypesOfContractsDomain" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xlink:label="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xml:lang="en-US">Upstream Contracts Comprised In Right Of Use Assets [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xml:lang="en-US">Upstream Contracts comprised in right-of-use assets [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" xlink:to="lab_ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IFRS16Member" xlink:label="loc_ypf_IFRS16Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IFRS16Member" xml:lang="en-US">IFRS 16 [Member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IFRS16Member" xml:lang="en-US">IFRS 16 [member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IFRS16Member" xlink:to="lab_ypf_IFRS16Member" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IFRS16Member" xml:lang="en-US">IFRS 16</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfUnprovedProperties" xlink:label="loc_ypf_AcquisitionOfUnprovedProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AcquisitionOfUnprovedProperties" xml:lang="en-US">Acquisition Of Unproved Properties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AcquisitionOfUnprovedProperties" xml:lang="en-US">Acquisition of unproved properties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AcquisitionOfUnprovedProperties" xlink:to="lab_ypf_AcquisitionOfUnprovedProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AcquisitionOfUnprovedProperties" xml:lang="en-US">Acquisition of unproved properties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AcquisitionOfProvedProperties" xlink:label="loc_ypf_AcquisitionOfProvedProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AcquisitionOfProvedProperties" xml:lang="en-US">Acquisition Of Proved Properties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AcquisitionOfProvedProperties" xml:lang="en-US">Acquisition of proved properties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AcquisitionOfProvedProperties" xlink:to="lab_ypf_AcquisitionOfProvedProperties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AcquisitionOfProvedProperties" xml:lang="en-US">Acquisition of proved properties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationCost" xlink:label="loc_ypf_ExplorationCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExplorationCost" xml:lang="en-US">Exploration Cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_ExplorationCost" xml:lang="en-US">Exploration costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExplorationCost" xlink:to="lab_ypf_ExplorationCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExplorationCost" xml:lang="en-US">Exploration cost.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCost" xlink:label="loc_ypf_DevelopmentCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DevelopmentCost" xml:lang="en-US">Development Cost</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DevelopmentCost" xml:lang="en-US">Development costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DevelopmentCost" xlink:to="lab_ypf_DevelopmentCost" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DevelopmentCost" xml:lang="en-US">Development cost.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_CostsIncurredInOilAndGasProductivity" xlink:label="loc_ypf_CostsIncurredInOilAndGasProductivity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_CostsIncurredInOilAndGasProductivity" xml:lang="en-US">Costs Incurred In Oil And Gas Productivity</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_CostsIncurredInOilAndGasProductivity" xml:lang="en-US">Total costs incurred</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_CostsIncurredInOilAndGasProductivity" xlink:to="lab_ypf_CostsIncurredInOilAndGasProductivity" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_CostsIncurredInOilAndGasProductivity" xml:lang="en-US">Costs Incurred in oil and gas productivity.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_OtherForeignMember" xlink:label="loc_ypf_OtherForeignMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_OtherForeignMember" xml:lang="en-US">Other Foreign [member]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_OtherForeignMember" xml:lang="en-US">Other foreign [Member]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_OtherForeignMember" xlink:to="lab_ypf_OtherForeignMember" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_OtherForeignMember" xml:lang="en-US">Other foreign.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xlink:label="loc_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xml:lang="en-US">Development Cost Related To Upstream Contracts Comprised In Right Of Use Assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xml:lang="en-US">Development cost related to Upstream contracts comprised in right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xlink:to="lab_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" xml:lang="en-US">Development cost related to Upstream contracts comprised in right-of-use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xlink:label="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xml:lang="en-US">Disclosure Of Results Of Operations From Oil And Gas Producing Activities [Table]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xml:lang="en-US">Disclosure of results of operations from oil and gas producing activities [table]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xlink:to="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" xml:lang="en-US">Disclosure of results of operations from oil and gas producing activities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xlink:label="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xml:lang="en-US">Disclosure Of Results Of Operations From Oil And Gas Producing Activities [Line Items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xml:lang="en-US">Disclosure of results of operations from oil and gas producing activities [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xlink:to="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" xml:lang="en-US">Disclosure of results of operations from oil and gas producing activities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetSalesToUnaffiliatedParties" xlink:label="loc_ypf_NetSalesToUnaffiliatedParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetSalesToUnaffiliatedParties" xml:lang="en-US">Net Sales To Unaffiliated Parties</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetSalesToUnaffiliatedParties" xml:lang="en-US">Net sales to unaffiliated parties</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetSalesToUnaffiliatedParties" xlink:to="lab_ypf_NetSalesToUnaffiliatedParties" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetSalesToUnaffiliatedParties" xml:lang="en-US">Net sales to unaffiliated parties.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_NetIntersegmentSales" xlink:label="loc_ypf_NetIntersegmentSales" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_NetIntersegmentSales" xml:lang="en-US">Net intersegment sales</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_NetIntersegmentSales" xml:lang="en-US">Net intersegment sales</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_NetIntersegmentSales" xlink:to="lab_ypf_NetIntersegmentSales" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_NetIntersegmentSales" xml:lang="en-US">Net intersegment sales</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_RevenueFromSaleOfGoods" xlink:label="loc_ifrs-full_RevenueFromSaleOfGoods" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_RevenueFromSaleOfGoods" xml:lang="en-US">Revenue from sale of goods</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ifrs-full_RevenueFromSaleOfGoods" xml:lang="en-US">Total net revenues</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_RevenueFromSaleOfGoods" xlink:to="lab_ifrs-full_RevenueFromSaleOfGoods" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ExplorationExpenses" xlink:label="loc_ypf_ExplorationExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ExplorationExpenses" xml:lang="en-US">Exploration Expenses</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ExplorationExpenses" xml:lang="en-US">Exploration expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ExplorationExpenses" xlink:to="lab_ypf_ExplorationExpenses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ExplorationExpenses" xml:lang="en-US">Exploration expenses .</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xlink:label="loc_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xml:lang="en-US">Depreciation of property plant and equipment intangible and rightofuse assets</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xml:lang="en-US">Depreciation of property, plant and equipment; intangible and right-of-use assets</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xlink:to="lab_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" xml:lang="en-US">Depreciation of property, plant and equipment; intangible and right-of-use assets.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xlink:label="loc_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xml:lang="en-US">Impairment loss on property plant and equipment before tax</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xml:lang="en-US">Impairment of property, plant and equipment and inventories write-down</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xlink:to="lab_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" xml:lang="en-US">Impairment loss on property plant and equipment before tax.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd#ifrs-full_OtherGainsLosses" xlink:label="loc_ifrs-full_OtherGainsLosses" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ifrs-full_OtherGainsLosses" xml:lang="en-US">Other gains (losses)</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ifrs-full_OtherGainsLosses" xml:lang="en-US">Other</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ifrs-full_OtherGainsLosses" xlink:to="lab_ifrs-full_OtherGainsLosses" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_ResultsOfOilAndGasProducingActivities" xlink:label="loc_ypf_ResultsOfOilAndGasProducingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_ResultsOfOilAndGasProducingActivities" xml:lang="en-US">Results Of Oil And Gas Producing Activities</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_ResultsOfOilAndGasProducingActivities" xml:lang="en-US">Results of oil and gas producing activities</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_ResultsOfOilAndGasProducingActivities" xlink:to="lab_ypf_ResultsOfOilAndGasProducingActivities" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_ResultsOfOilAndGasProducingActivities" xml:lang="en-US">Results of oil and gas producing activities.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xlink:label="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xml:lang="en-US">Disclosure of discounted future net cash flow [line items]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xml:lang="en-US">Disclosure of discounted future net cash flow [line items]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xlink:to="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" xml:lang="en-US">Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes of the table. Disclosure of discounted future net cash flow.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xml:lang="en-US">Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Cash Inflows</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xml:lang="en-US">Future cash inflows</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" xlink:to="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xml:lang="en-US">Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Production Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xml:lang="en-US">Future production costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" xlink:to="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xml:lang="en-US">Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Development Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xml:lang="en-US">Future development costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" xlink:to="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xml:lang="en-US">Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Income Tax Expense</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xml:lang="en-US">Future income tax expenses</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" xlink:to="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense" />
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xlink:label="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xml:lang="en-US">Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Ten Percent Annual Discount for Estimated Timing of Cash Flows</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xml:lang="en-US">10% annual discount for estimated timing of cash flows</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" xlink:to="lab_srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:label="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xml:lang="en-US">Standardized measure of discounted future net cash flows relating to proved oil and gas reserve</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/totalLabel" xlink:label="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xml:lang="en-US">Total standardized measure of discounted future net cash flows</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xlink:to="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" xml:lang="en-US">Standardized measure of discounted future net cash flows relating to proved oil and gas reserve.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DisclosureOfFutureNetCashFlowAbstract" xlink:label="loc_ypf_DisclosureOfFutureNetCashFlowAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DisclosureOfFutureNetCashFlowAbstract" xml:lang="en-US">Disclosure Of Future Net Cash Flow [abstract]</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DisclosureOfFutureNetCashFlowAbstract" xml:lang="en-US">Disclosure Of Future Net Cash Flow [Abstract]</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DisclosureOfFutureNetCashFlowAbstract" xlink:to="lab_ypf_DisclosureOfFutureNetCashFlowAbstract" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DisclosureOfFutureNetCashFlowAbstract" xml:lang="en-US">Disclosure of future net cash flow.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xlink:label="loc_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xml:lang="en-US">Standardized Measure of Discounted Future Net Cash Flows Relating to Proved Oil and Gas Reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodStartLabel" xlink:label="lab_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xml:lang="en-US">Beginning of year</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/periodEndLabel" xlink:label="lab_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xml:lang="en-US">End of year</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" xlink:to="lab_srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_SalesAndTransfersNetOfProductionCosts" xlink:label="loc_ypf_SalesAndTransfersNetOfProductionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_SalesAndTransfersNetOfProductionCosts" xml:lang="en-US">Sales and transfers net of production costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2009/role/negatedLabel" xlink:label="lab_ypf_SalesAndTransfersNetOfProductionCosts" xml:lang="en-US">Sales and transfers, net of production costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_SalesAndTransfersNetOfProductionCosts" xlink:to="lab_ypf_SalesAndTransfersNetOfProductionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_SalesAndTransfersNetOfProductionCosts" xml:lang="en-US">Sales and transfers net of production costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" xlink:label="loc_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" xml:lang="en-US">Net Increase (Decrease) in Sales and Transfer Prices and Production Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" xml:lang="en-US">Net change in sales and transfer prices, net of future production costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" xlink:to="lab_srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts" />
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInReservesAndProductionRates" xlink:label="loc_ypf_IncreaseDecreaseInReservesAndProductionRates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInReservesAndProductionRates" xml:lang="en-US">Increase Decrease In Reserves And Production Rates</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInReservesAndProductionRates" xml:lang="en-US">Changes in reserves and production rates (timing)</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInReservesAndProductionRates" xlink:to="lab_ypf_IncreaseDecreaseInReservesAndProductionRates" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInReservesAndProductionRates" xml:lang="en-US">Increase decrease in reserves and production rates.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" xlink:label="loc_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" xml:lang="en-US">Increase Decrease In Extensions Discoveries And Improved Recovery</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" xml:lang="en-US">Net changes for extensions, discoveries and improved recovery</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" xlink:to="lab_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" xml:lang="en-US">Increase decrease in extensions discoveries and improved recovery.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" xlink:label="loc_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" xml:lang="en-US">Increase Decrease In Estimated Future Development And Abandonment Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" xml:lang="en-US">Changes in estimated future development and abandonment costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" xlink:to="lab_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" xml:lang="en-US">Increase decrease in estimated future development and abandonment costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" xlink:label="loc_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" xml:lang="en-US">Development Costs Incurred During Year That Reduced Future Development Costs</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" xml:lang="en-US">Development costs incurred during the year that reduced future development costs</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" xlink:to="lab_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" xml:lang="en-US">Development costs incurred during year that reduced future development costs.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_AccretionOfDiscount1" xlink:label="loc_ypf_AccretionOfDiscount1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_AccretionOfDiscount1" xml:lang="en-US">Accretion of discount1</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_AccretionOfDiscount1" xml:lang="en-US">Accretion of discount</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_AccretionOfDiscount1" xlink:to="lab_ypf_AccretionOfDiscount1" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_AccretionOfDiscount1" xml:lang="en-US">Accretion of discount1.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" xlink:label="loc_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" xml:lang="en-US">Increase decrease in income tax expense estimates on future cash flow related to proved oil and gas reserves</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" xml:lang="en-US">Net change in income taxes</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" xlink:to="lab_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" xml:lang="en-US">Increase decrease in income tax expense estimates on future cash flow related to proved oil and gas reserves.</link:label>
          <link:loc xlink:type="locator" xlink:href="ypf-20251231.xsd#ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" xlink:label="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/label" xlink:label="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" xml:lang="en-US">Standardized measure of discounted future net cash flow of proved oil and gas reserves other adjustments</link:label>
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/terseLabel" xlink:label="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" xml:lang="en-US">Others</link:label>
          <link:labelArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/concept-label" xlink:from="loc_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" xlink:to="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" />
          <link:label xlink:type="resource" xlink:role="http://www.xbrl.org/2003/role/documentation" xlink:label="lab_ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" xml:lang="en-US">Standardized measure of discounted future net cash flow of proved oil and gas reserves other adjustments.</link:label>
        </link:labelLink>
      </link:linkbase>
    </appinfo>
  </annotation>
  <import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" />
  <import namespace="http://www.xbrl.org/2009/role/negated" schemaLocation="http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd" />
  <import namespace="http://www.xbrl.org/2009/role/net" schemaLocation="http://www.xbrl.org/lrr/role/net-2009-12-16.xsd" />
  <import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd" />
  <import namespace="http://xbrl.org/2020/extensible-enumerations-2.0" schemaLocation="https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd" />
  <import namespace="http://xbrl.sec.gov/dei/2025" schemaLocation="https://xbrl.sec.gov/dei/2025/dei-2025.xsd" />
  <import namespace="http://fasb.org/srt/2025" schemaLocation="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd" />
  <import namespace="http://fasb.org/srt-types/2025" schemaLocation="https://xbrl.fasb.org/srt/2025/elts/srt-types-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/ecd-sub/2025" schemaLocation="https://xbrl.sec.gov/ecd/2025/ecd-sub-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/ecd/2025" schemaLocation="https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd" />
  <import namespace="http://www.xbrl.org/2006/ref" schemaLocation="http://www.xbrl.org/2006/ref-2006-02-27.xsd" />
  <import namespace="http://fasb.org/srt-roles/2025" schemaLocation="https://xbrl.fasb.org/srt/2025/elts/srt-roles-2025.xsd" />
  <import namespace="http://www.xbrl.org/dtr/type/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" />
  <import namespace="http://xbrl.sec.gov/cyd-af-sub/2025" schemaLocation="https://xbrl.sec.gov/cyd/2025/cyd-af-sub-2025.xsd" />
  <import namespace="https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full" schemaLocation="https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd" />
  <import namespace="http://xbrl.sec.gov/country/2025" schemaLocation="https://xbrl.sec.gov/country/2025/country-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/currency/2025" schemaLocation="https://xbrl.sec.gov/currency/2025/currency-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/exch/2025" schemaLocation="https://xbrl.sec.gov/exch/2025/exch-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/naics/2025" schemaLocation="https://xbrl.sec.gov/naics/2025/naics-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/sic/2025" schemaLocation="https://xbrl.sec.gov/sic/2025/sic-2025.xsd" />
  <import namespace="http://xbrl.sec.gov/stpr/2025" schemaLocation="https://xbrl.sec.gov/stpr/2025/stpr-2025.xsd" />
  <element name="ClassASharesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassASharesMember" substitutionGroup="xbrli:item" />
  <element name="ClassBSharesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassBSharesMember" substitutionGroup="xbrli:item" />
  <element name="ClassCSharesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassCSharesMember" substitutionGroup="xbrli:item" />
  <element name="ClassDSharesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassDSharesMember" substitutionGroup="xbrli:item" />
  <element name="CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ShareBasedBenefitPlans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ShareBasedBenefitPlans" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ReserveForFutureDividends" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ReserveForFutureDividends" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ReserveForInvestments" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ReserveForInvestments" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ReserveForPurchaseOfTreasuryShares" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ReserveForPurchaseOfTreasuryShares" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="UnappropriatedRetainedEarningsAndLosses" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_UnappropriatedRetainedEarningsAndLosses" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="AcquisitionCostOfTreasuryShares" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AcquisitionCostOfTreasuryShares" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ShareTradingPremiums" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ShareTradingPremiums" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="SalariesAndSocialSecurity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_SalariesAndSocialSecurity" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherComprehensiveIncomeAttributableToAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherComprehensiveIncomeAttributableToAbstract" substitutionGroup="xbrli:item" />
  <element name="AcquisitionCostOfTreasurySharesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AcquisitionCostOfTreasurySharesMember" substitutionGroup="xbrli:item" />
  <element name="ShareTradingPremiumMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareTradingPremiumMember" substitutionGroup="xbrli:item" />
  <element name="ReservesForFutureDividendsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ReservesForFutureDividendsMember" substitutionGroup="xbrli:item" />
  <element name="ReservesForPurchaseOfTreasuryShareMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ReservesForPurchaseOfTreasuryShareMember" substitutionGroup="xbrli:item" />
  <element name="UnappropriatedRetainedEarningsAndLossesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_UnappropriatedRetainedEarningsAndLossesMember" substitutionGroup="xbrli:item" />
  <element name="IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ConstitutionOfReservesEquity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ConstitutionOfReservesEquity" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AppropriationToReservesEquity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AppropriationToReservesEquity" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ReleaseOfReservesEquity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ReleaseOfReservesEquity" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PaymentOfInterestsOnIncomeTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PaymentOfInterestsOnIncomeTax" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProceedsFromAssignmentOfAreasAndSaleOfAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ChangesInOperatingAssetsAndLiabilitiesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract" substitutionGroup="xbrli:item" />
  <element name="AdjustmentsForIncreaseDecreaseInProvision" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentsForIncreaseDecreaseInProvision" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AdjustmentsForResultFromSaleOfAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentsForResultFromSaleOfAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="Increasedecreasethroughrevaluationofcompanies" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_Increasedecreasethroughrevaluationofcompanies" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="Increasedecreasethroughsaleofcompanies" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_Increasedecreasethroughsaleofcompanies" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NonCashTransactionsAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NonCashTransactionsAbstract" substitutionGroup="xbrli:item" />
  <element name="CapitalizationOfFinancialAccretionForLeaseLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DebtCapitalizationOfJointVentures" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DebtCapitalizationOfJointVentures" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CapitalizationOfDepreciationOfRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CapitalizationOfDepreciationOfRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="UnpaidAdditionsOfAssetsHeldForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_UnpaidAdditionsOfAssetsHeldForSale" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="Cashflowsfromhydrocarbonwellsabandonmentcosts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ContractLiabilitiesArisingFromCompanyAcquisitions" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ContractLiabilitiesArisingFromCompanyAcquisitions" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="Receivablesfromsaleofnoncashsettledassets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_Receivablesfromsaleofnoncashsettledassets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="UnpaidReceivablesFromSaleOfCompanies" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_UnpaidReceivablesFromSaleOfCompanies" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PaymentOfShortTermLeaseAndVariableCharge" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PaymentOfShortTermLeaseAndVariableCharge" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="TextBlock1Abstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TextBlock1Abstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfGeneralInformationExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfGeneralInformationExplanatory" substitutionGroup="xbrli:item" />
  <element name="InsiderTradingPoliciesAndProceduresAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InsiderTradingPoliciesAndProceduresAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureFinancialRiskManagementExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureFinancialRiskManagementExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfRightOfUseAssets" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfRightOfUseAssets" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory" substitutionGroup="xbrli:item" />
  <element name="AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTradeReceivablesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTradeReceivablesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTaxesPayable" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTaxesPayable" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfSalariesAndSocialSecurityAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfSalariesAndSocialSecurityAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfSalariesAndSocialSecurityTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfSalariesAndSocialSecurityTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfAccountsPayableExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfAccountsPayableExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfFinancialResultsNetExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFinancialResultsNetExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfContingentAssetsAndLiabilitiesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfAccountingPolicyForComparativeInformationExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="MobilArgentinaSaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MobilArgentinaSaMember" substitutionGroup="xbrli:item" />
  <element name="OLCLPMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OLCLPMember" substitutionGroup="xbrli:item" />
  <element name="VmiMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_VmiMember" substitutionGroup="xbrli:item" />
  <element name="RefinorMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RefinorMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationOfInventoriesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfOtherAccountsReceivableExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfOtherAccountsReceivableExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedCashAndCashEquivalentsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfReconciliationOfTaxExpenseExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationAboutTaxesPayable" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAboutTaxesPayable" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfLeaseLiabilitiesActivityTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEvolutionLoansExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEvolutionLoansExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfNegotiableObligationsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfNegotiableObligationsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfOtherLiabilitiesDetailsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationAccountsPayableExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfNetRevenueExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfNetRevenueExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailsOfInventoryCostsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailsOfInventoryCostsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailsOfExpensesByNatureExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfOtherOperatingResultsNetExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfOtherOperatingResultsNetExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailInformationFinancialResultsNetExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfKeyManagementPersonnelCompensationExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember" substitutionGroup="xbrli:item" />
  <element name="NaturalGasLiquidsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NaturalGasLiquidsMember" substitutionGroup="xbrli:item" />
  <element name="NaturalGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NaturalGasMember" substitutionGroup="xbrli:item" />
  <element name="OilEquivalentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OilEquivalentMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfCapitalizedCostsExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfCapitalizedCostsExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfOilAndGasProducingActivitiesExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" type="dtr-types:textBlockItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory" substitutionGroup="xbrli:item" />
  <element name="SummaryOfMainCompaniesOfTheGroupAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SummaryOfMainCompaniesOfTheGroupAbstract" substitutionGroup="xbrli:item" />
  <element name="SummaryOfMainCompaniesOfTheGroupTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SummaryOfMainCompaniesOfTheGroupTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="SummaryOfMainCompaniesOfTheGroupLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SummaryOfMainCompaniesOfTheGroupLineItems" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary" substitutionGroup="xbrli:item" />
  <element name="EleranMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EleranMember" substitutionGroup="xbrli:item" />
  <element name="OPESSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OPESSAMember" substitutionGroup="xbrli:item" />
  <element name="YPFChileMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YPFChileMember" substitutionGroup="xbrli:item" />
  <element name="OTAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OTAMember" substitutionGroup="xbrli:item" />
  <element name="OTCMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OTCMember" substitutionGroup="xbrli:item" />
  <element name="OldelvalMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OldelvalMember" substitutionGroup="xbrli:item" />
  <element name="VmosMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_VmosMember" substitutionGroup="xbrli:item" />
  <element name="TermapMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TermapMember" substitutionGroup="xbrli:item" />
  <element name="MetrogasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MetrogasMember" substitutionGroup="xbrli:item" />
  <element name="MetroenergiaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MetroenergiaMember" substitutionGroup="xbrli:item" />
  <element name="ArgentinaLngMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ArgentinaLngMember" substitutionGroup="xbrli:item" />
  <element name="SurInversionesEnergeticasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SurInversionesEnergeticasMember" substitutionGroup="xbrli:item" />
  <element name="MEGAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MEGAMember" substitutionGroup="xbrli:item" />
  <element name="YPFEEMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YPFEEMember" substitutionGroup="xbrli:item" />
  <element name="CTBarraganMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CTBarraganMember" substitutionGroup="xbrli:item" />
  <element name="CDSMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CDSMember" substitutionGroup="xbrli:item" />
  <element name="YPFGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YPFGasMember" substitutionGroup="xbrli:item" />
  <element name="AESAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AESAMember" substitutionGroup="xbrli:item" />
  <element name="YTECMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YTECMember" substitutionGroup="xbrli:item" />
  <element name="YpfVenturesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YpfVenturesMember" substitutionGroup="xbrli:item" />
  <element name="ScGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ScGasMember" substitutionGroup="xbrli:item" />
  <element name="OTAMERICAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OTAMERICAMember" substitutionGroup="xbrli:item" />
  <element name="YpfDigitalMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YpfDigitalMember" substitutionGroup="xbrli:item" />
  <element name="EntityGroupAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EntityGroupAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="EntityGroupDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EntityGroupDomain" substitutionGroup="xbrli:item" />
  <element name="UpstreamMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_UpstreamMember" substitutionGroup="xbrli:item" />
  <element name="MidstreamAndDownstreamMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MidstreamAndDownstreamMember" substitutionGroup="xbrli:item" />
  <element name="LNGandIntegratedGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LNGandIntegratedGasMember" substitutionGroup="xbrli:item" />
  <element name="CentralAdministrationAndOthersMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CentralAdministrationAndOthersMember" substitutionGroup="xbrli:item" />
  <element name="NewEnergiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NewEnergiesMember" substitutionGroup="xbrli:item" />
  <element name="ReclassificationOfOtherFinancialResultsToIncomeTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ReclassificationOfOtherFinancialResultsToIncomeTax" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="EventAfterReportingAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EventAfterReportingAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="EventAfterReportingMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EventAfterReportingMember" substitutionGroup="xbrli:item" />
  <element name="PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff" substitutionGroup="xbrli:item" />
  <element name="IncreaseInOtherOperatingResults" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseInOtherOperatingResults" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="WorkingInterestInUnconventionalExploitationConcessions" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_WorkingInterestInUnconventionalExploitationConcessions" substitutionGroup="xbrli:item" />
  <element name="ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned" substitutionGroup="xbrli:item" />
  <element name="BusinessCombinationConsiderationTransferredByCompensationWithCredits" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisposalOfSubsidiariesSalePrice" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_DisposalOfSubsidiariesSalePrice" substitutionGroup="xbrli:item" />
  <element name="PercentageOfOwnershipInterestDisposed" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PercentageOfOwnershipInterestDisposed" substitutionGroup="xbrli:item" />
  <element name="ReceivableFromDisposalOfSubsidiariesPendingPayment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="SierraChataMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SierraChataMember" substitutionGroup="xbrli:item" />
  <element name="TypeOfTermAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TypeOfTermAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="TypeOfTermMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TypeOfTermMember" substitutionGroup="xbrli:item" />
  <element name="ProfertilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProfertilMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="BusinessCombinationAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BusinessCombinationAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="BusinessCombinationDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BusinessCombinationDomain" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems" substitutionGroup="xbrli:item" />
  <element name="OtherReceivablesRecognisedAsOfAcquisitionDate" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherReceivablesRecognisedAsOfAcquisitionDate" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TradeReceivablesRecognisedAsOfAcquisitionDate" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_TradeReceivablesRecognisedAsOfAcquisitionDate" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProvisionsRecognisedAsOfAcquisitionDate" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionsRecognisedAsOfAcquisitionDate" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherLiabilitiesRecognisedAsOfAcquisitionDate" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency" substitutionGroup="xbrli:item" />
  <element name="ForeignCurrencyRiskAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ForeignCurrencyRiskAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ForeignCurrencyRiskDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ForeignCurrencyRiskDomain" substitutionGroup="xbrli:item" />
  <element name="PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" substitutionGroup="xbrli:item" />
  <element name="NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember" substitutionGroup="xbrli:item" />
  <element name="AmountAvailableForLiquidity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AmountAvailableForLiquidity" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProvisionForDoubtfulTradeReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForDoubtfulTradeReceivables" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProvisionForOtherDoubtfulReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForOtherDoubtfulReceivables" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="GuaranteesGrantedByThirdParties" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_GuaranteesGrantedByThirdParties" substitutionGroup="xbrli:item" />
  <element name="ForeignExchangeRatePercentage" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ForeignExchangeRatePercentage" substitutionGroup="xbrli:item" />
  <element name="PercentageOfVariableRateFinancialLoansToTotalLiabilities" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities" substitutionGroup="xbrli:item" />
  <element name="OtherInvestmentsFreelyAvailable" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherInvestmentsFreelyAvailable" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation" substitutionGroup="xbrli:item" />
  <element name="WorkingCapital" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_WorkingCapital" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NationalGovernmentAndDirectAgenciesAccountsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NationalGovernmentAndDirectAgenciesAccountsMember" substitutionGroup="xbrli:item" />
  <element name="SofrMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SofrMember" substitutionGroup="xbrli:item" />
  <element name="PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" type="xbrli:pureItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints" substitutionGroup="xbrli:item" />
  <element name="IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PositiveVariationImpactOnNetIncomeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PositiveVariationImpactOnNetIncomeMember" substitutionGroup="xbrli:item" />
  <element name="NegativeVariationImpactOnNetIncomeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NegativeVariationImpactOnNetIncomeMember" substitutionGroup="xbrli:item" />
  <element name="PercentageOfIncreaseDecreaseInPricesOfInvestments" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments" substitutionGroup="xbrli:item" />
  <element name="EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember" substitutionGroup="xbrli:item" />
  <element name="NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember" substitutionGroup="xbrli:item" />
  <element name="PriceRiskMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PriceRiskMember" substitutionGroup="xbrli:item" />
  <element name="CashAndCashEquivalentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CashAndCashEquivalentMember" substitutionGroup="xbrli:item" />
  <element name="OtherFinancialAssetMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherFinancialAssetMember" substitutionGroup="xbrli:item" />
  <element name="InvestmentInFinancialAssetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestmentInFinancialAssetsMember" substitutionGroup="xbrli:item" />
  <element name="CurrentTradeReceivableMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CurrentTradeReceivableMember" substitutionGroup="xbrli:item" />
  <element name="OtherCurrentReceivablesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherCurrentReceivablesMember" substitutionGroup="xbrli:item" />
  <element name="BetweenThreeAndSixMonthsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BetweenThreeAndSixMonthsMember" substitutionGroup="xbrli:item" />
  <element name="Increasedecreasethroughbusinesscombinations" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_Increasedecreasethroughbusinesscombinations" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="UnproductiveExploratoryDrillings" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_UnproductiveExploratoryDrillings" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherReceivablesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherReceivablesMember" substitutionGroup="xbrli:item" />
  <element name="InvestmentsAndFinancialAssetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestmentsAndFinancialAssetsMember" substitutionGroup="xbrli:item" />
  <element name="Loans1Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Loans1Member" substitutionGroup="xbrli:item" />
  <element name="FinancialLiabilitiesOtherMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinancialLiabilitiesOtherMember" substitutionGroup="xbrli:item" />
  <element name="AccountsPayable1Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AccountsPayable1Member" substitutionGroup="xbrli:item" />
  <element name="FinancialAndNonFinancialAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_FinancialAndNonFinancialAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NonFinancialLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NonFinancialLiabilities" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="FinancialAndNonFinancialLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_FinancialAndNonFinancialLiabilities" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember" substitutionGroup="xbrli:item" />
  <element name="FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember" substitutionGroup="xbrli:item" />
  <element name="NetForeignExchangeGainLoss" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetForeignExchangeGainLoss" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="GainLossOnDerivativeFinancialInstruments" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_GainLossOnDerivativeFinancialInstruments" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ResultFromNetMonetaryPosition" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ResultFromNetMonetaryPosition" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ExportIncreaseProgrammeOtherIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportIncreaseProgrammeOtherIncome" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="InvestmentsInFinancialAssetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestmentsInFinancialAssetsMember" substitutionGroup="xbrli:item" />
  <element name="PublicSecuritiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PublicSecuritiesMember" substitutionGroup="xbrli:item" />
  <element name="MutualFundsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MutualFundsMember" substitutionGroup="xbrli:item" />
  <element name="PrivateSecuritiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PrivateSecuritiesMember" substitutionGroup="xbrli:item" />
  <element name="EstimatedFairValueOfLoansMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedFairValueOfLoansMember" substitutionGroup="xbrli:item" />
  <element name="EstimatedFairValueOfLoans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_EstimatedFairValueOfLoans" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForImpairmentOfIntangibleAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForImpairmentOfIntangibleAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NetBookValueOfPropertyPlantAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NetBookValueOfPropertyPlantAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProvisionForImpairmentOfPropertyPlantAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForObsolescenceOfMaterialsAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForObsolescenceOfMaterialsAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NetBookValueOfPropertyPlantAndEquipmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NetBookValueOfPropertyPlantAndEquipmentMember" substitutionGroup="xbrli:item" />
  <element name="MiningPropertyWellsAndRelatedEquipmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MiningPropertyWellsAndRelatedEquipmentMember" substitutionGroup="xbrli:item" />
  <element name="MaterialsAndEquipmentInWarehouseMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MaterialsAndEquipmentInWarehouseMember" substitutionGroup="xbrli:item" />
  <element name="ExploratoryDrillingInProgressMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExploratoryDrillingInProgressMember" substitutionGroup="xbrli:item" />
  <element name="IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DecreasesAndReclassifications" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreasesAndReclassifications" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="HydrocarbonWellsAbandonmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_HydrocarbonWellsAbandonmentMember" substitutionGroup="xbrli:item" />
  <element name="MineralProperty" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_MineralProperty" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExploratoryDrillingInProgress" type="xbrli:integerItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ExploratoryDrillingInProgress" substitutionGroup="xbrli:item" />
  <element name="DrillingPropertyInProgress" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DrillingPropertyInProgress" substitutionGroup="xbrli:item" />
  <element name="ExploratoryDrillingWells" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExploratoryDrillingWells" substitutionGroup="xbrli:item" />
  <element name="TransferredToProvedProperties" type="xbrli:integerItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_TransferredToProvedProperties" substitutionGroup="xbrli:item" />
  <element name="CapitalizationOfAmortizationOfRightofuseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CapitalizationOfAmortizationOfRightofuseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AguadaDelChanarMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaDelChanarMember" substitutionGroup="xbrli:item" />
  <element name="MatureFieldsProjectMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MatureFieldsProjectMember" substitutionGroup="xbrli:item" />
  <element name="OptimizationPlanMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OptimizationPlanMember" substitutionGroup="xbrli:item" />
  <element name="ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax" substitutionGroup="xbrli:item" />
  <element name="RecoverableValueAfterTaxes" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_RecoverableValueAfterTaxes" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CguGasNeuquinaBasinMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CguGasNeuquinaBasinMember" substitutionGroup="xbrli:item" />
  <element name="CguGasAustralBasinMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CguGasAustralBasinMember" substitutionGroup="xbrli:item" />
  <element name="CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember" substitutionGroup="xbrli:item" />
  <element name="CguGasNorthwestBasinMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CguGasNorthwestBasinMember" substitutionGroup="xbrli:item" />
  <element name="CguGasCuencaNeuquinaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CguGasCuencaNeuquinaMember" substitutionGroup="xbrli:item" />
  <element name="CguGasCuencaNoroesteMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CguGasCuencaNoroesteMember" substitutionGroup="xbrli:item" />
  <element name="ProvisionForObsolescenceOfMaterialsAndEquipmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember" substitutionGroup="xbrli:item" />
  <element name="DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember" substitutionGroup="xbrli:item" />
  <element name="ProvisionForImpairmentAssociatedWithAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForImpairmentAssociatedWithAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="MercosurAndAssociatesCountriesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MercosurAndAssociatesCountriesMember" substitutionGroup="xbrli:item" />
  <element name="EquipmentForNaturalGasCompressionAndPowerGenerationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember" substitutionGroup="xbrli:item" />
  <element name="RegasificationAndGasLiquefactionEquipmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RegasificationAndGasLiquefactionEquipmentMember" substitutionGroup="xbrli:item" />
  <element name="VesselsAndBargesForHydrocarbonTransportationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_VesselsAndBargesForHydrocarbonTransportationMember" substitutionGroup="xbrli:item" />
  <element name="TruckFleetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TruckFleetsMember" substitutionGroup="xbrli:item" />
  <element name="ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember" substitutionGroup="xbrli:item" />
  <element name="PermitsForTheUseOfPortsAndLandMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PermitsForTheUseOfPortsAndLandMember" substitutionGroup="xbrli:item" />
  <element name="ExploitationEquipmentAndFacilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExploitationEquipmentAndFacilitiesMember" substitutionGroup="xbrli:item" />
  <element name="GasStationsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GasStationsMember" substitutionGroup="xbrli:item" />
  <element name="AggregateLeaseTermLease" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AggregateLeaseTermLease" substitutionGroup="xbrli:item" />
  <element name="IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="IncreaseDecreaseInRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExploitationFacilitiesAndEquipmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExploitationFacilitiesAndEquipmentMember" substitutionGroup="xbrli:item" />
  <element name="InvestmentsInAssociatesAndJointVenturesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestmentsInAssociatesAndJointVenturesAbstract" substitutionGroup="xbrli:item" />
  <element name="AcquisitionsAndContributions" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AcquisitionsAndContributions" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TranslationDifferencesOnInvestments" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TranslationDifferencesOnInvestments" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="InflationAdjustment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InflationAdjustment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherMovements" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OtherMovements" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="CapitalizationInJointVentures" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CapitalizationInJointVentures" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DecreaseFromSaleOfCompanies" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreaseFromSaleOfCompanies" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureOfAssociatesAndJointVenturesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfAssociatesAndJointVenturesLineItems" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureofYPFEELineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureofYPFEELineItems" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems" substitutionGroup="xbrli:item" />
  <element name="OtherCompaniesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherCompaniesMember" substitutionGroup="xbrli:item" />
  <element name="AssetsHeldForSaleAndAssociatedLiabilitiesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems" substitutionGroup="xbrli:item" />
  <element name="YpfBrazilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YpfBrazilMember" substitutionGroup="xbrli:item" />
  <element name="HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember" substitutionGroup="xbrli:item" />
  <element name="EnvironmentalLiabilitiesMatureFieldsProjectMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember" substitutionGroup="xbrli:item" />
  <element name="ProportionOfTransferOfShares" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProportionOfTransferOfShares" substitutionGroup="xbrli:item" />
  <element name="ProportionOfWorkingInterestInSubsidiary" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProportionOfWorkingInterestInSubsidiary" substitutionGroup="xbrli:item" />
  <element name="EscalanteElTrebolMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EscalanteElTrebolMember" substitutionGroup="xbrli:item" />
  <element name="LlancaneloAndLlancaneloRMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LlancaneloAndLlancaneloRMember" substitutionGroup="xbrli:item" />
  <element name="EstacionFernandezOroMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EstacionFernandezOroMember" substitutionGroup="xbrli:item" />
  <element name="CampamentoCentralCanadonPerdidoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CampamentoCentralCanadonPerdidoMember" substitutionGroup="xbrli:item" />
  <element name="BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember" substitutionGroup="xbrli:item" />
  <element name="SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember" substitutionGroup="xbrli:item" />
  <element name="AlNortedelaDorsalOctgonoandDadnMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AlNortedelaDorsalOctgonoandDadnMember" substitutionGroup="xbrli:item" />
  <element name="CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember" substitutionGroup="xbrli:item" />
  <element name="ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember" substitutionGroup="xbrli:item" />
  <element name="ElTordilloPuestoQuirogaandLaTaperaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ElTordilloPuestoQuirogaandLaTaperaMember" substitutionGroup="xbrli:item" />
  <element name="LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInventoriesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInventoriesAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInventoriesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInventoriesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="CrudeOilAndCommercializedNaturalGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CrudeOilAndCommercializedNaturalGasMember" substitutionGroup="xbrli:item" />
  <element name="ProductsInProcessMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProductsInProcessMember" substitutionGroup="xbrli:item" />
  <element name="RawMaterialsPackagingMaterialsAndOthersMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RawMaterialsPackagingMaterialsAndOthersMember" substitutionGroup="xbrli:item" />
  <element name="FinishedGoodsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinishedGoodsMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfInventoriesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInventoriesLineItems" substitutionGroup="xbrli:item" />
  <element name="ProvisionOfInventoriesWritedown" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionOfInventoriesWritedown" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfTradeAndOtherReceivablesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTradeAndOtherReceivablesAbstract" substitutionGroup="xbrli:item" />
  <element name="OtherCurrentReceivablesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherCurrentReceivablesAbstract" substitutionGroup="xbrli:item" />
  <element name="OtherAccountsReceivableTradeCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherAccountsReceivableTradeCurrent" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CurrentCollateralDeposits" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentCollateralDeposits" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CurrentAdvancesAndLoansToEmployees" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentAdvancesAndLoansToEmployees" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CurrentReceivablesWithPartnersInJaAndOtherAgreements" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CurrentInsuranceReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentInsuranceReceivables" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="Miscellaneous" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_Miscellaneous" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TradeAndOtherCurrentReceivablesOtherThanProvision" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_TradeAndOtherCurrentReceivablesOtherThanProvision" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherNoncurrentReceivablesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherNoncurrentReceivablesAbstract" substitutionGroup="xbrli:item" />
  <element name="OtherAccountsReceivableTradeNonCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherAccountsReceivableTradeNonCurrent" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NoncurrentMiscellaneous" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NoncurrentMiscellaneous" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NoncurrentReceivablesOtherthanProvision" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NoncurrentReceivablesOtherthanProvision" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProvisionForOtherDoubtfulNoncurrentReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForOtherDoubtfulNoncurrentReceivables" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TradeReceivablesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TradeReceivablesAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTradeReceivablesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTradeReceivablesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="AccountsReceivableAndRelatedPartiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AccountsReceivableAndRelatedPartiesMember" substitutionGroup="xbrli:item" />
  <element name="ProvisionForDoubtfulTradeReceivableMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForDoubtfulTradeReceivableMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTradeReceivablesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTradeReceivablesLineItems" substitutionGroup="xbrli:item" />
  <element name="CurrentProvisionForDoubtfulTradeReceivable" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentProvisionForDoubtfulTradeReceivable" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NonCurrentProvisionForDoubtfulTradeReceivable" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NonCurrentProvisionForDoubtfulTradeReceivable" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems" substitutionGroup="xbrli:item" />
  <element name="IncreaseDecreaseChargedToExpensesInTradeReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseChargedToIncomeInTradeReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TradeReceivablesResultFromNetMonetaryPosition" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TradeReceivablesResultFromNetMonetaryPosition" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TradeReceivablesIncurredDueToUtilization" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TradeReceivablesIncurredDueToUtilization" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="TradeReceivablesReclassificationAdjustments" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TradeReceivablesReclassificationAdjustments" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ClassOfProvisionAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassOfProvisionAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ClassOfProvisionDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassOfProvisionDomain" substitutionGroup="xbrli:item" />
  <element name="NonCurrentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NonCurrentMember" substitutionGroup="xbrli:item" />
  <element name="TermDepositsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TermDepositsMember" substitutionGroup="xbrli:item" />
  <element name="CashAndCashEquivalentsTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CashAndCashEquivalentsTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureOfCashAndCashEquivalentsLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfCashAndCashEquivalentsLineItems" substitutionGroup="xbrli:item" />
  <element name="CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="BancoNacionArgentinaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BancoNacionArgentinaMember" substitutionGroup="xbrli:item" />
  <element name="BancoCentralDeLaRepublicaArgentinaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BancoCentralDeLaRepublicaArgentinaMember" substitutionGroup="xbrli:item" />
  <element name="TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfProvisionsTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfProvisionsTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="ProvisionForEnvironmentalLiabilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForEnvironmentalLiabilitiesMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfProvisionsLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfProvisionsLineItems" substitutionGroup="xbrli:item" />
  <element name="IncreasesChargedToProvisionExpenses" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreasesChargedToProvisionExpenses" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DecreasesChargedToProvisionIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DecreasesChargedToProvisionIncome" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ApplicationsDueToUtilization" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ApplicationsDueToUtilization" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="HydrocarbonWellsAbandonmentCostsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_HydrocarbonWellsAbandonmentCostsMember" substitutionGroup="xbrli:item" />
  <element name="TransportadoraDeGasDelNorteSaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TransportadoraDeGasDelNorteSaMember" substitutionGroup="xbrli:item" />
  <element name="AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="MoratoriumAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MoratoriumAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="MoratoriumMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MoratoriumMember" substitutionGroup="xbrli:item" />
  <element name="DetailsAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DetailsAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="DetailsDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DetailsDomain" substitutionGroup="xbrli:item" />
  <element name="AgreementAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AgreementAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="AgreementDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AgreementDomain" substitutionGroup="xbrli:item" />
  <element name="TrustSettlementAgreementMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TrustSettlementAgreementMember" substitutionGroup="xbrli:item" />
  <element name="HydrocarbonWellsAbandonmentObligationsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_HydrocarbonWellsAbandonmentObligationsMember" substitutionGroup="xbrli:item" />
  <element name="EnvironmentalLiabilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EnvironmentalLiabilitiesMember" substitutionGroup="xbrli:item" />
  <element name="ComisionNacionalDeLaDefensaLaCompetenciaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember" substitutionGroup="xbrli:item" />
  <element name="EnvironmentalClaimsLaPlataMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EnvironmentalClaimsLaPlataMember" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfRiskInEnvironmentalClaims" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfRiskInEnvironmentalClaims" substitutionGroup="xbrli:item" />
  <element name="ExtendedPeriodCoveredByFinancialStatements" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExtendedPeriodCoveredByFinancialStatements" substitutionGroup="xbrli:item" />
  <element name="RefineryTermPeriod" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_RefineryTermPeriod" substitutionGroup="xbrli:item" />
  <element name="PercentageOfHydrocarbons" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfHydrocarbons" substitutionGroup="xbrli:item" />
  <element name="LossContingentDamagesSought" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_LossContingentDamagesSought" substitutionGroup="xbrli:item" />
  <element name="PeriodAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PeriodAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="PeriodDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PeriodDomain" substitutionGroup="xbrli:item" />
  <element name="ClaimsAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClaimsAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ClaimsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClaimsMember" substitutionGroup="xbrli:item" />
  <element name="CalculationOfTheIncomeTaxExpenseAccruedAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract" substitutionGroup="xbrli:item" />
  <element name="AdjustedIncomeTaxExpenseBenefit" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustedIncomeTaxExpenseBenefit" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExchangeDifferences" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExchangeDifferences" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="EffectOfTheValuationOfInventories" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EffectOfTheValuationOfInventories" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="MiscellaneousOtherOperatingIncomeExpense" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_MiscellaneousOtherOperatingIncomeExpense" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="BreakdownOfIncomeTaxLiabilityAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BreakdownOfIncomeTaxLiabilityAbstract" substitutionGroup="xbrli:item" />
  <element name="BreakdownofincometaxliabilityTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BreakdownofincometaxliabilityTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="RemainingInstallmentsOfTheRegimesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RemainingInstallmentsOfTheRegimesMember" substitutionGroup="xbrli:item" />
  <element name="InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember" substitutionGroup="xbrli:item" />
  <element name="DetailsOneAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DetailsOneAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="DetailsOneDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DetailsOneDomain" substitutionGroup="xbrli:item" />
  <element name="InstalmentsAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InstalmentsAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="InstalmentsDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InstalmentsDomain" substitutionGroup="xbrli:item" />
  <element name="TwelveInstalmentsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwelveInstalmentsMember" substitutionGroup="xbrli:item" />
  <element name="BreakDownOfIncomeTaxLiabilityLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BreakDownOfIncomeTaxLiabilityLineItems" substitutionGroup="xbrli:item" />
  <element name="ProvisionsAndOtherNonDeductibleLiabilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember" substitutionGroup="xbrli:item" />
  <element name="MiscellaneousDeferredTaxAssetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MiscellaneousDeferredTaxAssetsMember" substitutionGroup="xbrli:item" />
  <element name="PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember" substitutionGroup="xbrli:item" />
  <element name="MiscellaneousDeferredTaxLiabilitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MiscellaneousDeferredTaxLiabilitiesMember" substitutionGroup="xbrli:item" />
  <element name="BreakdownOfDeferredTaxLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BreakdownOfDeferredTaxLineItems" substitutionGroup="xbrli:item" />
  <element name="TaxLossesCarryforwardAndOtherTaxCreditsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember" substitutionGroup="xbrli:item" />
  <element name="AdjustmentForTaxInflationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentForTaxInflationMember" substitutionGroup="xbrli:item" />
  <element name="TemporaryDifferenceRelatingToLeaseLiabilitesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember" substitutionGroup="xbrli:item" />
  <element name="TemporaryDifferenceRelatingToRightOfUseAssetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember" substitutionGroup="xbrli:item" />
  <element name="PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember" substitutionGroup="xbrli:item" />
  <element name="AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AmountsOfDeferredTaxAssetsNotRecognised" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AmountsOfDeferredTaxAssetsNotRecognised" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="RecognizedTaxLossesCarryforward" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_RecognizedTaxLossesCarryforward" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NameOfPlanAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NameOfPlanAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="NameOfPlanMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NameOfPlanMember" substitutionGroup="xbrli:item" />
  <element name="TaxYearAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxYearAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="TaxYearMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxYearMember" substitutionGroup="xbrli:item" />
  <element name="YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTaxesPayableAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTaxesPayableAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTaxesPayableTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTaxesPayableTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="TaxesByTypeAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxesByTypeAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="TaxesByTypeDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxesByTypeDomain" substitutionGroup="xbrli:item" />
  <element name="IvaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IvaMember" substitutionGroup="xbrli:item" />
  <element name="WithholdingsAndPerceptionsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_WithholdingsAndPerceptionsMember" substitutionGroup="xbrli:item" />
  <element name="RoyaltiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RoyaltiesMember" substitutionGroup="xbrli:item" />
  <element name="FuelsTaxMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FuelsTaxMember" substitutionGroup="xbrli:item" />
  <element name="MiscellaneousMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MiscellaneousMember" substitutionGroup="xbrli:item" />
  <element name="TurnoverTaxPayableMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TurnoverTaxPayableMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfTaxesPayableLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfTaxesPayableLineItems" substitutionGroup="xbrli:item" />
  <element name="SalariesAndSocialSecurityPayablesCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_SalariesAndSocialSecurityPayablesCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="BonusesAndIncentivesProvisionCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BonusesAndIncentivesProvisionCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="VacationProvisionCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_VacationProvisionCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NonCurrentCashSettledSharebasedPaymentsProvision" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NonCurrentCashSettledSharebasedPaymentsProvision" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForSeveranceIndemnitiesCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForSeveranceIndemnitiesCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="LaterThanFiveYearsAndNotLaterThanNineYearsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember" substitutionGroup="xbrli:item" />
  <element name="LaterThanNineYearsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaterThanNineYearsMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems" substitutionGroup="xbrli:item" />
  <element name="InterestExpensesOnLeaseLiabilitiesIncurred" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InterestExpensesOnLeaseLiabilitiesIncurred" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="AdditionsToLeaseLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdditionsToLeaseLiabilities" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DeletionsToLeaseLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DeletionsToLeaseLiabilities" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfDetailedInformationAboutLoansAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAboutLoansAbstract" substitutionGroup="xbrli:item" />
  <element name="ExportPreFinancingMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExportPreFinancingMember" substitutionGroup="xbrli:item" />
  <element name="NegotiableObligationsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NegotiableObligationsMember" substitutionGroup="xbrli:item" />
  <element name="AccountOverdraftMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AccountOverdraftMember" substitutionGroup="xbrli:item" />
  <element name="ImportsFinancingMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ImportsFinancingMember" substitutionGroup="xbrli:item" />
  <element name="FinancialLoansMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinancialLoansMember" substitutionGroup="xbrli:item" />
  <element name="StockMarketPromissoryNotesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_StockMarketPromissoryNotesMember" substitutionGroup="xbrli:item" />
  <element name="NegotiableObligationsRepurchased" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NegotiableObligationsRepurchased" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="NegotiableObligationsCancelled" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NegotiableObligationsCancelled" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="LoansGranted" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LoansGranted" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="AccruedInterestOnGroupLoans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AccruedInterestOnGroupLoans" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="BorrowingsReclassifications" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_BorrowingsReclassifications" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreasesOfBorrowingDueToBusinessCombination" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreasesOfBorrowingDueToBusinessCombination" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfDetailedInformationAboutLoansTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAboutLoansTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="ClassThirteenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirteenMember" substitutionGroup="xbrli:item" />
  <element name="ClassSeventeenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassSeventeenMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyNineMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyNineMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyFourMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyFourMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyFiveMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyFiveMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtySixMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtySixMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtySevenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtySevenMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyEightMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyEightMember" substitutionGroup="xbrli:item" />
  <element name="ClassFortyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassFortyMember" substitutionGroup="xbrli:item" />
  <element name="ClassFortyOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassFortyOneMember" substitutionGroup="xbrli:item" />
  <element name="ClassFortyTwoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassFortyTwoMember" substitutionGroup="xbrli:item" />
  <element name="ClassNineteenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassNineteenMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyTwoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyTwoMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyFourMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyFourMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentySixMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentySixMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyEightMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyEightMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyThreeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyThreeMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyNineMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyNineMember" substitutionGroup="xbrli:item" />
  <element name="ClassFiftyThreeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassFiftyThreeMember" substitutionGroup="xbrli:item" />
  <element name="ClassFiftyFourMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassFiftyFourMember" substitutionGroup="xbrli:item" />
  <element name="ClassOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassOneMember" substitutionGroup="xbrli:item" />
  <element name="ClassEighteenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassEighteenMember" substitutionGroup="xbrli:item" />
  <element name="ClassSixteenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassSixteenMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyOneMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyThreeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyThreeMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentyFiveMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentyFiveMember" substitutionGroup="xbrli:item" />
  <element name="ClassTwentySevenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassTwentySevenMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyOneMember" substitutionGroup="xbrli:item" />
  <element name="ClassThirtyTwoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassThirtyTwoMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationAboutLoansLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationAboutLoansLineItems" substitutionGroup="xbrli:item" />
  <element name="Loans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_Loans" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="LoansInterestRate" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LoansInterestRate" substitutionGroup="xbrli:item" />
  <element name="LoansMaturity" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_LoansMaturity" substitutionGroup="xbrli:item" />
  <element name="NoncurrentLoans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NoncurrentLoans" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="CurrentLoans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CurrentLoans" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="TwoThousandFourteenSeptemberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandFourteenSeptemberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandFifteenAprilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandFifteenAprilMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandFifteenOctoberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandFifteenOctoberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandSeventeenDecemberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandSeventeenDecemberMember" substitutionGroup="xbrli:item" />
  <element name="NineteenNinetyEightMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NineteenNinetyEightMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandSeventeenJulyAndDecemberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandSeventeenJulyAndDecemberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandNineteenJuneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandNineteenJuneMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyJulyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyJulyMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyOneFebruaryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyOneFebruaryMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyOneJulyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyOneJulyMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyThreeJanuaryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyThreeJanuaryMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyThreeAprilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyThreeAprilMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyThreeJuneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyThreeJuneMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyThreeSeptemberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyThreeSeptemberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyThreeOctoberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyThreeOctoberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFourJanuaryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFourJanuaryMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFourMayMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFourMayMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFourSeptemberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFourSeptemberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFourOctoberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFourOctoberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveJanuaryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveJanuaryMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveFebruaryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveFebruaryMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveMayMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveMayMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveJulyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveJulyMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveJulyAndAugustMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveJulyAndAugustMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveAugustMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveAugustMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveOctoberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveOctoberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFiveDecemberMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFiveDecemberMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember" substitutionGroup="xbrli:item" />
  <element name="MediumTermNotes1Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MediumTermNotes1Member" substitutionGroup="xbrli:item" />
  <element name="NegotiableAmount" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NegotiableAmount" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NineteenNinetySevenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NineteenNinetySevenMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandEightMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandEightMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfOtherLiabilitiesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfOtherLiabilitiesAbstract" substitutionGroup="xbrli:item" />
  <element name="OtherCurrentLiabilitiesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherCurrentLiabilitiesAbstract" substitutionGroup="xbrli:item" />
  <element name="LiabilitiesForContractualClaimsCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LiabilitiesForContractualClaimsCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="LiabilitiesForConcessionsCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LiabilitiesForConcessionsCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForOperatingOptimizationsCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionForOperatingOptimizationsCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="LiabilitiesForAgreementsCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LiabilitiesForAgreementsCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherNoncurrentLiabilitiesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherNoncurrentLiabilitiesAbstract" substitutionGroup="xbrli:item" />
  <element name="LiabilitiesForContractualClaimsNoncurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LiabilitiesForContractualClaimsNoncurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherMiscellaneousLiabilitiesNoncurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherMiscellaneousLiabilitiesNoncurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="LiabilitiesForConcessionsNoncurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LiabilitiesForConcessionsNoncurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="LiabilitiesForAgreementsNoncurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_LiabilitiesForAgreementsNoncurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfAccountsPayableAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfAccountsPayableAbstract" substitutionGroup="xbrli:item" />
  <element name="PayablesWithPartnersNoncurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PayablesWithPartnersNoncurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="PayablesWithPartnersCurrent" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PayablesWithPartnersCurrent" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherLiabilitiesCurrent1" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_OtherLiabilitiesCurrent1" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfRevenuesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfRevenuesAbstract" substitutionGroup="xbrli:item" />
  <element name="RevenueFromGovernmentIncentives" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_RevenueFromGovernmentIncentives" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="RevenuesFromContractsWithCustomers" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_RevenuesFromContractsWithCustomers" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfRevenueAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfRevenueAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfRevenueTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfRevenueTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureOfRevenueLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfRevenueLineItems" substitutionGroup="xbrli:item" />
  <element name="GasolinesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GasolinesMember" substitutionGroup="xbrli:item" />
  <element name="JetFuelMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_JetFuelMember" substitutionGroup="xbrli:item" />
  <element name="LubricantsAndByproductsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LubricantsAndByproductsMember" substitutionGroup="xbrli:item" />
  <element name="LiquefiedPetroleumGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LiquefiedPetroleumGasMember" substitutionGroup="xbrli:item" />
  <element name="FuelOilMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FuelOilMember" substitutionGroup="xbrli:item" />
  <element name="PetrochemicalsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PetrochemicalsMember" substitutionGroup="xbrli:item" />
  <element name="FertilizersAndCropProtectionProductsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FertilizersAndCropProtectionProductsMember" substitutionGroup="xbrli:item" />
  <element name="FloursOilsAndGrainsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FloursOilsAndGrainsMember" substitutionGroup="xbrli:item" />
  <element name="AsphaltsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AsphaltsMember" substitutionGroup="xbrli:item" />
  <element name="GoodsForResaleAtGasStationsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GoodsForResaleAtGasStationsMember" substitutionGroup="xbrli:item" />
  <element name="IncomeFromServicesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IncomeFromServicesMember" substitutionGroup="xbrli:item" />
  <element name="IncomeFromConstructionContractsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IncomeFromConstructionContractsMember" substitutionGroup="xbrli:item" />
  <element name="VirginNaphthaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_VirginNaphthaMember" substitutionGroup="xbrli:item" />
  <element name="PetroleumCokeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PetroleumCokeMember" substitutionGroup="xbrli:item" />
  <element name="LiquefiedNaturalGasRegasificationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LiquefiedNaturalGasRegasificationMember" substitutionGroup="xbrli:item" />
  <element name="OtherGoodsAndServicesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherGoodsAndServicesMember" substitutionGroup="xbrli:item" />
  <element name="DieselMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DieselMember" substitutionGroup="xbrli:item" />
  <element name="PowerPlantsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PowerPlantsMember" substitutionGroup="xbrli:item" />
  <element name="DistributionCompaniesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DistributionCompaniesMember" substitutionGroup="xbrli:item" />
  <element name="RetailDistributionOfNaturalGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RetailDistributionOfNaturalGasMember" substitutionGroup="xbrli:item" />
  <element name="IndustriesTransportAndAviationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IndustriesTransportAndAviationMember" substitutionGroup="xbrli:item" />
  <element name="AgricultureMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AgricultureMember" substitutionGroup="xbrli:item" />
  <element name="PetrochemicalIndustryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PetrochemicalIndustryMember" substitutionGroup="xbrli:item" />
  <element name="TradingMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TradingMember" substitutionGroup="xbrli:item" />
  <element name="OilCompaniesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OilCompaniesMember" substitutionGroup="xbrli:item" />
  <element name="CommercializationOfLiquefiedPetroleumGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CommercializationOfLiquefiedPetroleumGasMember" substitutionGroup="xbrli:item" />
  <element name="OtherSalesChannelsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherSalesChannelsMember" substitutionGroup="xbrli:item" />
  <element name="RevenueByGeographicalAreaTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RevenueByGeographicalAreaTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="RevenueByGeographicalAreaLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RevenueByGeographicalAreaLineItems" substitutionGroup="xbrli:item" />
  <element name="NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue" substitutionGroup="xbrli:item" />
  <element name="RevenuesFromContractsWithCustomersIncludedInContractLiabilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DomesticMarketMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DomesticMarketMember" substitutionGroup="xbrli:item" />
  <element name="InternationalMarketMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InternationalMarketMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailsOfInventoryCostsAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailsOfInventoryCostsAbstract" substitutionGroup="xbrli:item" />
  <element name="InventoryPurchases" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InventoryPurchases" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="InventoryProductionCosts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InventoryProductionCosts" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="InventoryTranslationEffect" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InventoryTranslationEffect" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="InventoryInflationAdjustment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InventoryInflationAdjustment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ReclassificationOfInventories" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ReclassificationOfInventories" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreasesOfInventoriesFromBusinessCombinations" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreasesOfInventoriesFromBusinessCombinations" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfExpensesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfExpensesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureOfExpensesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfExpensesLineItems" substitutionGroup="xbrli:item" />
  <element name="SalariesAndSocialSecurityTaxes" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_SalariesAndSocialSecurityTaxes" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="SurveyExpenses" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_SurveyExpenses" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OperationServicesAndOtherServiceContracts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OperationServicesAndOtherServiceContracts" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AdvertisingExpenses" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdvertisingExpenses" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="StatementOfComprehensiveIncomeProfitOrLossLocationAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="StatementOfComprehensiveIncomeProfitOrLossLocationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember" substitutionGroup="xbrli:item" />
  <element name="ProductionCostsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProductionCostsMember" substitutionGroup="xbrli:item" />
  <element name="AdministrativeExpensesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AdministrativeExpensesMember" substitutionGroup="xbrli:item" />
  <element name="SellingExpensesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SellingExpensesMember" substitutionGroup="xbrli:item" />
  <element name="ExplorationExpensesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExplorationExpensesMember" substitutionGroup="xbrli:item" />
  <element name="ExpenseByNatureTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExpenseByNatureTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="ExpenseByNatureLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExpenseByNatureLineItems" substitutionGroup="xbrli:item" />
  <element name="ExportWithholdings" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportWithholdings" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExpenseRelatingToShortTermLease" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExpenseRelatingToShortTermLease" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExpenseRelatingToLeaseUnderlyingAsset" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExpenseRelatingToLeaseUnderlyingAsset" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TurnoverTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TurnoverTax" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfOtherOperatingResultsNetAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfOtherOperatingResultsNetAbstract" substitutionGroup="xbrli:item" />
  <element name="LawsuitsOtherOperatingExpense" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_LawsuitsOtherOperatingExpense" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="InsuranceOtherOperatingIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InsuranceOtherOperatingIncome" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="MiscellaneousandOtherOperatingIncomeExpense" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_MiscellaneousandOtherOperatingIncomeExpense" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ResultFromSaleOfAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ResultFromSaleOfAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ExportIncreaseProgramOtherOperatingIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportIncreaseProgramOtherOperatingIncome" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForSeveranceIndemnitiesOtherOperatingIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="GainLossOnChangeInFairValueOfAssetHeldForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_GainLossOnChangeInFairValueOfAssetHeldForSale" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForOperatingOptimizationsOtherOperatingIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ResultFromSaleOfCompanies" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ResultFromSaleOfCompanies" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ResultFromRevaluationOfCompanies" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ResultFromRevaluationOfCompanies" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ProvisionForObsolescenceOfMaterialAndEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvisionForObsolescenceOfMaterialAndEquipment" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfFinancialResultsNetAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFinancialResultsNetAbstract" substitutionGroup="xbrli:item" />
  <element name="FinancialIncomeAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinancialIncomeAbstract" substitutionGroup="xbrli:item" />
  <element name="InterestIncomeOnTradeReceivables" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_InterestIncomeOnTradeReceivables" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="OtherFinancialIncome" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OtherFinancialIncome" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="FinancialCostsAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FinancialCostsAbstract" substitutionGroup="xbrli:item" />
  <element name="HydrocarbonWellAbandonmentProvisionFinancialAccretion" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherFinancialCosts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OtherFinancialCosts" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherFinancialResultsAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherFinancialResultsAbstract" substitutionGroup="xbrli:item" />
  <element name="ResultsFromTransactionsWithFinancialAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ResultsFromTransactionsWithFinancialAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ExchangeDifferencesGeneratedByLoans" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExchangeDifferencesGeneratedByLoans" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherExchangeDifferencesNet" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OtherExchangeDifferencesNet" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AdjustmentForInflation" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdjustmentForInflation" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="EffectOfTranslation" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EffectOfTranslation" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ProductionCost" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProductionCost" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PanAmericanEnergyMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PanAmericanEnergyMember" substitutionGroup="xbrli:item" />
  <element name="TotalAustralMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TotalAustralMember" substitutionGroup="xbrli:item" />
  <element name="TecpetrolMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TecpetrolMember" substitutionGroup="xbrli:item" />
  <element name="EnapSipetrolArgentinaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EnapSipetrolArgentinaMember" substitutionGroup="xbrli:item" />
  <element name="YacimientosPetroliferosFiscalesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_YacimientosPetroliferosFiscalesMember" substitutionGroup="xbrli:item" />
  <element name="PluspetrolSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PluspetrolSAMember" substitutionGroup="xbrli:item" />
  <element name="EquinorArgentinaBvMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EquinorArgentinaBvMember" substitutionGroup="xbrli:item" />
  <element name="EquinorArgentinaAsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EquinorArgentinaAsMember" substitutionGroup="xbrli:item" />
  <element name="EquinorMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EquinorMember" substitutionGroup="xbrli:item" />
  <element name="PampaEnergiaSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PampaEnergiaSAMember" substitutionGroup="xbrli:item" />
  <element name="ShellArgentinaSaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShellArgentinaSaMember" substitutionGroup="xbrli:item" />
  <element name="AcambucoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AcambucoMember" substitutionGroup="xbrli:item" />
  <element name="AguadaPichanaAreaVacaMuertaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaPichanaAreaVacaMuertaMember" substitutionGroup="xbrli:item" />
  <element name="AguadaPichanaResidualMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaPichanaResidualMember" substitutionGroup="xbrli:item" />
  <element name="AguaragueMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguaragueMember" substitutionGroup="xbrli:item" />
  <element name="Cam2aSurMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Cam2aSurMember" substitutionGroup="xbrli:item" />
  <element name="ConsorcioCnq7aMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ConsorcioCnq7aMember" substitutionGroup="xbrli:item" />
  <element name="LinderoAtravesadoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LinderoAtravesadoMember" substitutionGroup="xbrli:item" />
  <element name="MagallanesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MagallanesMember" substitutionGroup="xbrli:item" />
  <element name="LomaCampanaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LomaCampanaMember" substitutionGroup="xbrli:item" />
  <element name="RinconDelMangrulloMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RinconDelMangrulloMember" substitutionGroup="xbrli:item" />
  <element name="SanRoqueMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SanRoqueMember" substitutionGroup="xbrli:item" />
  <element name="NarambuenaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NarambuenaMember" substitutionGroup="xbrli:item" />
  <element name="LaAmargaChicaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaAmargaChicaMember" substitutionGroup="xbrli:item" />
  <element name="ElOrejanoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ElOrejanoMember" substitutionGroup="xbrli:item" />
  <element name="BajoDelToroMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BajoDelToroMember" substitutionGroup="xbrli:item" />
  <element name="BandurriaSurMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BandurriaSurMember" substitutionGroup="xbrli:item" />
  <element name="RioNeuqunMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RioNeuqunMember" substitutionGroup="xbrli:item" />
  <element name="ChachahuenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ChachahuenMember" substitutionGroup="xbrli:item" />
  <element name="PampaYeguasIMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PampaYeguasIMember" substitutionGroup="xbrli:item" />
  <element name="LomaDelMolleMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LomaDelMolleMember" substitutionGroup="xbrli:item" />
  <element name="Can100Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Can100Member" substitutionGroup="xbrli:item" />
  <element name="LaCaleraMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaCaleraMember" substitutionGroup="xbrli:item" />
  <element name="BajadaAeloMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BajadaAeloMember" substitutionGroup="xbrli:item" />
  <element name="Can102Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Can102Member" substitutionGroup="xbrli:item" />
  <element name="Can114Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Can114Member" substitutionGroup="xbrli:item" />
  <element name="AguadaDeCastroAndAguadaPichanaOesteMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaDeCastroAndAguadaPichanaOesteMember" substitutionGroup="xbrli:item" />
  <element name="LasTacanasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LasTacanasMember" substitutionGroup="xbrli:item" />
  <element name="RamosMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RamosMember" substitutionGroup="xbrli:item" />
  <element name="AguadaVillanuevaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaVillanuevaMember" substitutionGroup="xbrli:item" />
  <element name="Aus105Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Aus105Member" substitutionGroup="xbrli:item" />
  <element name="Aus106Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Aus106Member" substitutionGroup="xbrli:item" />
  <element name="LaEscalonadaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaEscalonadaMember" substitutionGroup="xbrli:item" />
  <element name="MesetaNuevaEsperanzaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MesetaNuevaEsperanzaMember" substitutionGroup="xbrli:item" />
  <element name="RinconDeLaCenizaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RinconDeLaCenizaMember" substitutionGroup="xbrli:item" />
  <element name="SierraChataConsorcioChihuidoMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SierraChataConsorcioChihuidoMember" substitutionGroup="xbrli:item" />
  <element name="AguadaDelChaarMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaDelChaarMember" substitutionGroup="xbrli:item" />
  <element name="JOMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_JOMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfShareCapitalAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfShareCapitalAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationOfShareCapitalTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationOfShareCapitalTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="RepsolSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RepsolSAMember" substitutionGroup="xbrli:item" />
  <element name="PetersenEnergiaSauAndAffiliatesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PetersenEnergiaSauAndAffiliatesMember" substitutionGroup="xbrli:item" />
  <element name="FederalGovernmentMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FederalGovernmentMember" substitutionGroup="xbrli:item" />
  <element name="StateOrProvinceMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_StateOrProvinceMember" substitutionGroup="xbrli:item" />
  <element name="CapitalStockMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CapitalStockMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDetailedInformationOfShareCapitalLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems" substitutionGroup="xbrli:item" />
  <element name="SubscribedCapital" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_SubscribedCapital" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NumberOfSharesSubscribed" type="xbrli:sharesItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NumberOfSharesSubscribed" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfClassesOfShares" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfClassesOfShares" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfVotingRights" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfVotingRights" substitutionGroup="xbrli:item" />
  <element name="DescriptionOfGrantBasedOnSharesOutstanding" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DescriptionOfGrantBasedOnSharesOutstanding" substitutionGroup="xbrli:item" />
  <element name="ProportionOfOwnershipInterestInEquity" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProportionOfOwnershipInterestInEquity" substitutionGroup="xbrli:item" />
  <element name="ProportionOfOwnershipInterestInSharesByRelatedParty" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProportionOfOwnershipInterestInSharesByRelatedParty" substitutionGroup="xbrli:item" />
  <element name="PercentageOfSharesSubjectToExpropriation" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfSharesSubjectToExpropriation" substitutionGroup="xbrli:item" />
  <element name="TreasuryStockSharesAcquired1" type="xbrli:sharesItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TreasuryStockSharesAcquired1" substitutionGroup="xbrli:item" />
  <element name="LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum" substitutionGroup="xbrli:item" />
  <element name="MaximumPercentageOfLegalReserve" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_MaximumPercentageOfLegalReserve" substitutionGroup="xbrli:item" />
  <element name="RestrictedDistributionOfRetainedEarnings" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_RestrictedDistributionOfRetainedEarnings" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfContingentAssetsAndLiabilitiesAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfContingentAssetsAndLiabilitiesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfContingentAssetsAndLiabilitiesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="CsjnMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CsjnMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfContingentAssetsAndLiabilitiesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems" substitutionGroup="xbrli:item" />
  <element name="NumberOfInterlocutoryJudgments" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfInterlocutoryJudgments" substitutionGroup="xbrli:item" />
  <element name="ContractualLiabilityPayableValue" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ContractualLiabilityPayableValue" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DirectDamagesPayableForBreachOfContract" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_DirectDamagesPayableForBreachOfContract" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="LegalEntitiesAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LegalEntitiesAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="LegalEntitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LegalEntitiesMember" substitutionGroup="xbrli:item" />
  <element name="AsociacionSuperficiariosDeLaPatagoniaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AsociacionSuperficiariosDeLaPatagoniaMember" substitutionGroup="xbrli:item" />
  <element name="ExchangeRateAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExchangeRateAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ExchangeRateMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExchangeRateMember" substitutionGroup="xbrli:item" />
  <element name="CaseDetailsAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CaseDetailsAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="CaseDetailsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CaseDetailsMember" substitutionGroup="xbrli:item" />
  <element name="PetersonAndEtonParkAndYpfAndTheRepublicMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfContractualCommitmentsTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfContractualCommitmentsTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureOfContractualCommitmentsLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfContractualCommitmentsLineItems" substitutionGroup="xbrli:item" />
  <element name="AmountOfExpenseByNature" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AmountOfExpenseByNature" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PercentageOfTransportationConcession" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfTransportationConcession" substitutionGroup="xbrli:item" />
  <element name="NumberOfUnconventionalWells" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfUnconventionalWells" substitutionGroup="xbrli:item" />
  <element name="NumberOfYearsExploitationConcessionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfYearsExploitationConcessionTerm" substitutionGroup="xbrli:item" />
  <element name="NormalCapacityOfTonExploitation" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NormalCapacityOfTonExploitation" substitutionGroup="xbrli:item" />
  <element name="NumberOfLeaseTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfLeaseTerm" substitutionGroup="xbrli:item" />
  <element name="AdditionalNumberOfLeaseTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdditionalNumberOfLeaseTerm" substitutionGroup="xbrli:item" />
  <element name="NumberOfNaturalGasSupplyAgreementsTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfNaturalGasSupplyAgreementsTerm" substitutionGroup="xbrli:item" />
  <element name="InvestorsAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestorsAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="InvestorsDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestorsDomain" substitutionGroup="xbrli:item" />
  <element name="GuaranteedSecurityAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GuaranteedSecurityAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="GuaranteedSecurityMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GuaranteedSecurityMember" substitutionGroup="xbrli:item" />
  <element name="GolarHilliCorporationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GolarHilliCorporationMember" substitutionGroup="xbrli:item" />
  <element name="GolarMkiiCorporationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GolarMkiiCorporationMember" substitutionGroup="xbrli:item" />
  <element name="BlockAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BlockAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="BlockMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BlockMember" substitutionGroup="xbrli:item" />
  <element name="AguadaDeLaArenaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguadaDeLaArenaMember" substitutionGroup="xbrli:item" />
  <element name="LaAngosturaSurIMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaAngosturaSurIMember" substitutionGroup="xbrli:item" />
  <element name="LaAngosturaSurIiMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LaAngosturaSurIiMember" substitutionGroup="xbrli:item" />
  <element name="CompaniaDeDesarrolloMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CompaniaDeDesarrolloMember" substitutionGroup="xbrli:item" />
  <element name="PAEMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PAEMember" substitutionGroup="xbrli:item" />
  <element name="SurInversionesEnergticasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SurInversionesEnergticasMember" substitutionGroup="xbrli:item" />
  <element name="PampaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PampaMember" substitutionGroup="xbrli:item" />
  <element name="SeArgentinaHoldingBvMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SeArgentinaHoldingBvMember" substitutionGroup="xbrli:item" />
  <element name="GolarSubholdingMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GolarSubholdingMember" substitutionGroup="xbrli:item" />
  <element name="ScheduleOfGrantedGuaranteesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ScheduleOfGrantedGuaranteesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="ScheduleOfGrantedGuaranteesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ScheduleOfGrantedGuaranteesLineItems" substitutionGroup="xbrli:item" />
  <element name="PercentageOfDebtServices" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_PercentageOfDebtServices" substitutionGroup="xbrli:item" />
  <element name="PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid" substitutionGroup="xbrli:item" />
  <element name="BankGuaranteesIssued" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BankGuaranteesIssued" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="AmountOfGranteGuarantees" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AmountOfGranteGuarantees" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ClassXXVIIINOMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassXXVIIINOMember" substitutionGroup="xbrli:item" />
  <element name="DirectInvestmentInForeignCurrency" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_DirectInvestmentInForeignCurrency" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DirectInvestmentInForeignCurrencyAfterAmendment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_DirectInvestmentInForeignCurrencyAfterAmendment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons" substitutionGroup="xbrli:item" />
  <element name="ExportDutyForLiquidAndGaseousHydrocarbonsPercent" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent" substitutionGroup="xbrli:item" />
  <element name="ExportDutyPercentage" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportDutyPercentage" substitutionGroup="xbrli:item" />
  <element name="ConsentExpressionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ConsentExpressionTerm" substitutionGroup="xbrli:item" />
  <element name="PublicDistributionServiceTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PublicDistributionServiceTerm" substitutionGroup="xbrli:item" />
  <element name="LicenseRenewalTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_LicenseRenewalTerm" substitutionGroup="xbrli:item" />
  <element name="LicenseAgreementPeriod" type="xbrli:stringItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_LicenseAgreementPeriod" substitutionGroup="xbrli:item" />
  <element name="PermitOfConventionalExplorationTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PermitOfConventionalExplorationTerm" substitutionGroup="xbrli:item" />
  <element name="PermitOfExtensionOfConventionalExplorationTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PermitOfExtensionOfConventionalExplorationTerm" substitutionGroup="xbrli:item" />
  <element name="PermitOfUnconventionalExplorationTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PermitOfUnconventionalExplorationTerm" substitutionGroup="xbrli:item" />
  <element name="PermitOfExtensionOfUnconventionalExplorationTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PermitOfExtensionOfUnconventionalExplorationTerm" substitutionGroup="xbrli:item" />
  <element name="PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm" substitutionGroup="xbrli:item" />
  <element name="PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm" substitutionGroup="xbrli:item" />
  <element name="ConventionalExploitationConcessionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ConventionalExploitationConcessionTerm" substitutionGroup="xbrli:item" />
  <element name="UnconventionalExploitationConcessionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_UnconventionalExploitationConcessionTerm" substitutionGroup="xbrli:item" />
  <element name="ContinentalShelfAndTerritorialWaterConcessionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ContinentalShelfAndTerritorialWaterConcessionTerm" substitutionGroup="xbrli:item" />
  <element name="PercentageOfAdvanceFee" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfAdvanceFee" substitutionGroup="xbrli:item" />
  <element name="PercentageReductionInTheConcessionFee" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageReductionInTheConcessionFee" substitutionGroup="xbrli:item" />
  <element name="ExportPermitTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportPermitTerm" substitutionGroup="xbrli:item" />
  <element name="CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="PersonalAssetsTaxRate" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PersonalAssetsTaxRate" substitutionGroup="xbrli:item" />
  <element name="FloatingRateForHydrocarbonExportDuties" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_FloatingRateForHydrocarbonExportDuties" substitutionGroup="xbrli:item" />
  <element name="BrentCrudePrice" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BrentCrudePrice" substitutionGroup="xbrli:item" />
  <element name="ExportTaxRate" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExportTaxRate" substitutionGroup="xbrli:item" />
  <element name="PercentageRateVariationInTheCPI" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageRateVariationInTheCPI" substitutionGroup="xbrli:item" />
  <element name="TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries" substitutionGroup="xbrli:item" />
  <element name="PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses" substitutionGroup="xbrli:item" />
  <element name="MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="TransportationConcessionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TransportationConcessionTerm" substitutionGroup="xbrli:item" />
  <element name="TermOfExtensionOfTransportationConcession" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TermOfExtensionOfTransportationConcession" substitutionGroup="xbrli:item" />
  <element name="TaxableIncomeMinimumExcludingTaxLossesCarryForwards" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="MinimumTermForWhichTheExportVolumeShallBeAuthorized" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized" substitutionGroup="xbrli:item" />
  <element name="PercentageOfTaxRateOnContractingServicesAndFreightServices" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices" substitutionGroup="xbrli:item" />
  <element name="PercentageTaxRateForImportOfGoods" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageTaxRateForImportOfGoods" substitutionGroup="xbrli:item" />
  <element name="PercentageOfTaxRateOnServicesAcquiredAbroad" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfTaxRateOnServicesAcquiredAbroad" substitutionGroup="xbrli:item" />
  <element name="PercentageOfExportDutyAfterReduction" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfExportDutyAfterReduction" substitutionGroup="xbrli:item" />
  <element name="NewExploitationConcessionTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NewExploitationConcessionTerm" substitutionGroup="xbrli:item" />
  <element name="PercentageOfRoyaltyAtBidderDiscretion" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfRoyaltyAtBidderDiscretion" substitutionGroup="xbrli:item" />
  <element name="PercentageOfMaximumAuthorizedCapacityFromThirdParties" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties" substitutionGroup="xbrli:item" />
  <element name="AdditionalLicenseRenewalTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AdditionalLicenseRenewalTerm" substitutionGroup="xbrli:item" />
  <element name="ProgramOfShipmentsOrDeliveriesTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProgramOfShipmentsOrDeliveriesTerm" substitutionGroup="xbrli:item" />
  <element name="UpdatedOfExportPermitTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_UpdatedOfExportPermitTerm" substitutionGroup="xbrli:item" />
  <element name="PercentageOfWeightedAverageCostOfCapitalEmployedRate" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate" substitutionGroup="xbrli:item" />
  <element name="PercentageOfGeneralServiceCustomersRate" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfGeneralServiceCustomersRate" substitutionGroup="xbrli:item" />
  <element name="RenewableEnergiesTerm" type="xbrli:durationItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_RenewableEnergiesTerm" substitutionGroup="xbrli:item" />
  <element name="AmountOfReceivedCompensationFromNationalGovernment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AmountOfReceivedCompensationFromNationalGovernment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PlanName1Axis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PlanName1Axis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="PlanName1Domain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PlanName1Domain" substitutionGroup="xbrli:item" />
  <element name="AgriculturalProductsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AgriculturalProductsMember" substitutionGroup="xbrli:item" />
  <element name="WheatCornAndSorghumMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_WheatCornAndSorghumMember" substitutionGroup="xbrli:item" />
  <element name="ImportedGasolineMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ImportedGasolineMember" substitutionGroup="xbrli:item" />
  <element name="ImportedDieselMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ImportedDieselMember" substitutionGroup="xbrli:item" />
  <element name="SoybeanMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SoybeanMember" substitutionGroup="xbrli:item" />
  <element name="SoybeanByproductsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SoybeanByproductsMember" substitutionGroup="xbrli:item" />
  <element name="GrainsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GrainsMember" substitutionGroup="xbrli:item" />
  <element name="CornAndSorghumMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CornAndSorghumMember" substitutionGroup="xbrli:item" />
  <element name="WheatMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_WheatMember" substitutionGroup="xbrli:item" />
  <element name="HydrocarbonDistributionMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_HydrocarbonDistributionMember" substitutionGroup="xbrli:item" />
  <element name="LiquidHydrocarbonExportsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LiquidHydrocarbonExportsMember" substitutionGroup="xbrli:item" />
  <element name="ExportDutyRateMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ExportDutyRateMember" substitutionGroup="xbrli:item" />
  <element name="FreeLngExportAuthorizationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_FreeLngExportAuthorizationMember" substitutionGroup="xbrli:item" />
  <element name="LngExportProjectsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LngExportProjectsMember" substitutionGroup="xbrli:item" />
  <element name="NationalEnergySectorMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NationalEnergySectorMember" substitutionGroup="xbrli:item" />
  <element name="LargeInvestmentIncentiveRegimeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LargeInvestmentIncentiveRegimeMember" substitutionGroup="xbrli:item" />
  <element name="ResolutionTypeAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ResolutionTypeAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ResolutionMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ResolutionMember" substitutionGroup="xbrli:item" />
  <element name="DecreeTypeAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DecreeTypeAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="DecreeTypeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DecreeTypeMember" substitutionGroup="xbrli:item" />
  <element name="InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member" substitutionGroup="xbrli:item" />
  <element name="InstallmentTypeAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InstallmentTypeAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="InstallmentTypeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_InstallmentTypeMember" substitutionGroup="xbrli:item" />
  <element name="TakeRespectiveAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TakeRespectiveAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="TakeRespectiveMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TakeRespectiveMember" substitutionGroup="xbrli:item" />
  <element name="LocationAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LocationAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="LocationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LocationMember" substitutionGroup="xbrli:item" />
  <element name="TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember" substitutionGroup="xbrli:item" />
  <element name="SchemeAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SchemeAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="SchemeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SchemeMember" substitutionGroup="xbrli:item" />
  <element name="TaxRateForAnInclusiveAndSolidaryArgentinaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember" substitutionGroup="xbrli:item" />
  <element name="TaxBenefitsForPriceAgreementsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_TaxBenefitsForPriceAgreementsMember" substitutionGroup="xbrli:item" />
  <element name="PeriodOfApplicabilityAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PeriodOfApplicabilityAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="PeriodOfApplicabilityMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PeriodOfApplicabilityMember" substitutionGroup="xbrli:item" />
  <element name="NotificationAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NotificationAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="NotificationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NotificationMember" substitutionGroup="xbrli:item" />
  <element name="PurposeOfUsageAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PurposeOfUsageAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="PurposeOfUsageMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PurposeOfUsageMember" substitutionGroup="xbrli:item" />
  <element name="StatutoryActAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_StatutoryActAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="StatutoryActMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_StatutoryActMember" substitutionGroup="xbrli:item" />
  <element name="ApplicableStatuteAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ApplicableStatuteAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ApplicableStatuteDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ApplicableStatuteDomain" substitutionGroup="xbrli:item" />
  <element name="MaximumPercentageOfPermissibleInterestsInGasStations" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_MaximumPercentageOfPermissibleInterestsInGasStations" substitutionGroup="xbrli:item" />
  <element name="DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="JointVenturesAndAssociatesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_JointVenturesAndAssociatesMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems" substitutionGroup="xbrli:item" />
  <element name="SustentatorSaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SustentatorSaMember" substitutionGroup="xbrli:item" />
  <element name="GpaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GpaMember" substitutionGroup="xbrli:item" />
  <element name="GasAustralSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GasAustralSAMember" substitutionGroup="xbrli:item" />
  <element name="SecretaryOfIndustryMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SecretaryOfIndustryMember" substitutionGroup="xbrli:item" />
  <element name="CammesaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CammesaMember" substitutionGroup="xbrli:item" />
  <element name="CammesaOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CammesaOneMember" substitutionGroup="xbrli:item" />
  <element name="AerolineasArgentinasSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AerolineasArgentinasSAMember" substitutionGroup="xbrli:item" />
  <element name="AerolineasArgentinasSAOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AerolineasArgentinasSAOneMember" substitutionGroup="xbrli:item" />
  <element name="AguaYSaneamientosArgentinosS.a.Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AguaYSaneamientosArgentinosS.a.Member" substitutionGroup="xbrli:item" />
  <element name="ArcaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ArcaMember" substitutionGroup="xbrli:item" />
  <element name="ENARSAMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ENARSAMember" substitutionGroup="xbrli:item" />
  <element name="ENARSAOneMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ENARSAOneMember" substitutionGroup="xbrli:item" />
  <element name="SeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SeMember" substitutionGroup="xbrli:item" />
  <element name="SecretaryOfTransportMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SecretaryOfTransportMember" substitutionGroup="xbrli:item" />
  <element name="AmountsReceivableOrPayableRelatedPartyTransactions" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AmountsReceivableOrPayableRelatedPartyTransactions" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncomeExpenseForRelatedPartyTransactions" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncomeExpenseForRelatedPartyTransactions" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="PropaneGasSupplyAgreementMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PropaneGasSupplyAgreementMember" substitutionGroup="xbrli:item" />
  <element name="RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember" substitutionGroup="xbrli:item" />
  <element name="NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember" substitutionGroup="xbrli:item" />
  <element name="GasarPlanMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GasarPlanMember" substitutionGroup="xbrli:item" />
  <element name="CompensationToDecreeNo10532018Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CompensationToDecreeNo10532018Member" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfKeyManagementPersonnelCompensationAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract" substitutionGroup="xbrli:item" />
  <element name="CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember" substitutionGroup="xbrli:item" />
  <element name="CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember" substitutionGroup="xbrli:item" />
  <element name="NetBalancePayable" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetBalancePayable" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ComprehensiveIncomeLocationAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ComprehensiveIncomeLocationAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ComprehensiveIncomeLocationDomain" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ComprehensiveIncomeLocationDomain" substitutionGroup="xbrli:item" />
  <element name="IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEmployeeBenefitPlanTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEmployeeBenefitPlanTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="RetirementPlanMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_RetirementPlanMember" substitutionGroup="xbrli:item" />
  <element name="PerformanceBonusProgramsAndPerformanceEvaluationMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfEmployeeBenefitPlanLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfEmployeeBenefitPlanLineItems" substitutionGroup="xbrli:item" />
  <element name="PercentageOfSalaryContributionToMutualFundRetirementPlan" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan" substitutionGroup="xbrli:item" />
  <element name="ValueGenerationPlanMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ValueGenerationPlanMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" type="dtr-types:perShareItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember" substitutionGroup="xbrli:item" />
  <element name="ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember" substitutionGroup="xbrli:item" />
  <element name="Plan20252028Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_Plan20252028Member" substitutionGroup="xbrli:item" />
  <element name="NumberOfConsecutiveAnnualInstalments" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NumberOfConsecutiveAnnualInstalments" substitutionGroup="xbrli:item" />
  <element name="PercentageOfInstallmentAmoritized" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfInstallmentAmoritized" substitutionGroup="xbrli:item" />
  <element name="BorrowingsInterestYieldRate" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_BorrowingsInterestYieldRate" substitutionGroup="xbrli:item" />
  <element name="IssueOfDebtNotesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IssueOfDebtNotesMember" substitutionGroup="xbrli:item" />
  <element name="AssetsExchangeMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_AssetsExchangeMember" substitutionGroup="xbrli:item" />
  <element name="ClassXXXIVMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassXXXIVMember" substitutionGroup="xbrli:item" />
  <element name="ClassxliiMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassxliiMember" substitutionGroup="xbrli:item" />
  <element name="ClassOfBorrowingsAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassOfBorrowingsAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ClassOfBorrowingsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassOfBorrowingsMember" substitutionGroup="xbrli:item" />
  <element name="LetterOfCreditFacilityAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LetterOfCreditFacilityAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="LetterOfCreditFacilityMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_LetterOfCreditFacilityMember" substitutionGroup="xbrli:item" />
  <element name="ClassifiedAsHeldForSaleAxis" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassifiedAsHeldForSaleAxis" substitutionGroup="xbrldt:dimensionItem" />
  <element name="ClassifiedAsHeldForSaleMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ClassifiedAsHeldForSaleMember" substitutionGroup="xbrli:item" />
  <element name="JanuaryTwentyThousandThirtyFourMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_JanuaryTwentyThousandThirtyFourMember" substitutionGroup="xbrli:item" />
  <element name="MarchTwentyThousandTwentyNineMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_MarchTwentyThousandTwentyNineMember" substitutionGroup="xbrli:item" />
  <element name="EquinorArgentinaSauMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_EquinorArgentinaSauMember" substitutionGroup="xbrli:item" />
  <element name="BandurriaSurBlockMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BandurriaSurBlockMember" substitutionGroup="xbrli:item" />
  <element name="BajoDelToroNorteMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_BajoDelToroNorteMember" substitutionGroup="xbrli:item" />
  <element name="ProvedReservesDevelopedMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvedReservesDevelopedMember" substitutionGroup="xbrli:item" />
  <element name="ProvedReservesUndevelopedMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ProvedReservesUndevelopedMember" substitutionGroup="xbrli:item" />
  <element name="ConsolidatedAndEquityaccountedEntitiesMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ConsolidatedAndEquityaccountedEntitiesMember" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilAndCondensate" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NetProvedReservesOfOilAndCondensate" substitutionGroup="xbrli:item" />
  <element name="OilAndCondensateReserveRevisionsOfPreviousEstimates" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates" substitutionGroup="xbrli:item" />
  <element name="OilAndCondensateReserveExtensionsAndDiscoveries" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OilAndCondensateReserveExtensionsAndDiscoveries" substitutionGroup="xbrli:item" />
  <element name="OilAndCondensateReserveImprovedRecovery" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OilAndCondensateReserveImprovedRecovery" substitutionGroup="xbrli:item" />
  <element name="OilAndCondensateReservePurchaseOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OilAndCondensateReservePurchaseOfMinerals" substitutionGroup="xbrli:item" />
  <element name="OilAndCondensateReserveSaleOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OilAndCondensateReserveSaleOfMinerals" substitutionGroup="xbrli:item" />
  <element name="OilAndCondensateReserveProductionForYear" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_OilAndCondensateReserveProductionForYear" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasLiquids" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NetProvedReservesOfNaturalGasLiquids" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasLiquidsProductionForYear" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGas" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NetProvedReservesOfNaturalGas" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasImprovedRecovery" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasImprovedRecovery" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasPurchaseOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasSaleOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasSaleOfMinerals" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfNaturalGasProductionForYear" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfNaturalGasProductionForYear" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalent" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NetProvedReservesOfOilEquivalent" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalentImprovedRecovery" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfOilEquivalentImprovedRecovery" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalentPurchaseOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalentSaleOfMinerals" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesOfOilEquivalentProductionForYear" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesOfOilEquivalentProductionForYear" substitutionGroup="xbrli:item" />
  <element name="WorldwideMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_WorldwideMember" substitutionGroup="xbrli:item" />
  <element name="VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel" substitutionGroup="xbrli:item" />
  <element name="EstimatedCrudeOilProductionDuringPeriod" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedCrudeOilProductionDuringPeriod" substitutionGroup="xbrli:item" />
  <element name="EstimatedProvedCrudeOilReserves" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedProvedCrudeOilReserves" substitutionGroup="xbrli:item" />
  <element name="EstimatedNaturalGasLiquidsProduction" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedNaturalGasLiquidsProduction" substitutionGroup="xbrli:item" />
  <element name="EstimatedProvedNaturalGasLiquidsReserves" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedProvedNaturalGasLiquidsReserves" substitutionGroup="xbrli:item" />
  <element name="EstimatedNaturalGasProduction" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedNaturalGasProduction" substitutionGroup="xbrli:item" />
  <element name="EstimatedBarrelOfOilEquivalentProduction" type="dtr-types:energyItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedBarrelOfOilEquivalentProduction" substitutionGroup="xbrli:item" />
  <element name="EstimatedProvedOilEquivalentReserves" type="dtr-types:energyItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedProvedOilEquivalentReserves" substitutionGroup="xbrli:item" />
  <element name="EstimatedProvedNaturalGasReservesConsumedAsFuel" type="dtr-types:volumeItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDiscountedFutureNetCashFlowAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract" substitutionGroup="xbrli:item" />
  <element name="DisclosureOfDiscountedFutureNetCashFlowTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDiscountedFutureNetCashFlowTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="CrudeOil1Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CrudeOil1Member" substitutionGroup="xbrli:item" />
  <element name="CrudeOilAndNaturalGasMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_CrudeOilAndNaturalGasMember" substitutionGroup="xbrli:item" />
  <element name="ChangesInOurEstimatedProvedReservesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_ChangesInOurEstimatedProvedReservesLineItems" substitutionGroup="xbrli:item" />
  <element name="ExtensionsAndDiscoveriesOfProvedDevelopedReserves" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves" substitutionGroup="xbrli:item" />
  <element name="ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves" substitutionGroup="xbrli:item" />
  <element name="NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease" substitutionGroup="xbrli:item" />
  <element name="AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" type="xbrli:integerItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices" substitutionGroup="xbrli:item" />
  <element name="ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease" substitutionGroup="xbrli:item" />
  <element name="ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules" substitutionGroup="xbrli:item" />
  <element name="IncreaseDecreaseInEstimatedReserve" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInEstimatedReserve" substitutionGroup="xbrli:item" />
  <element name="IncreaseDecreaseInTotalProvedReserve" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInTotalProvedReserve" substitutionGroup="xbrli:item" />
  <element name="IncreaseInProvedReservesOnAccountOfProjectPerformance" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance" substitutionGroup="xbrli:item" />
  <element name="ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" type="xbrli:decimalItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments" substitutionGroup="xbrli:item" />
  <element name="VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" type="dtr-types:energyItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil" substitutionGroup="xbrli:item" />
  <element name="ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="CostsIncurredOfAssetsHeldForSale" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CostsIncurredOfAssetsHeldForSale" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="PercentageOfDisposalOfInterests" type="dtr-types:percentItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_PercentageOfDisposalOfInterests" substitutionGroup="xbrli:item" />
  <element name="GolfoSanJorgeBasinMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_GolfoSanJorgeBasinMember" substitutionGroup="xbrli:item" />
  <element name="SierraChataLaEscalonadaAndRincnDeLaCenizaMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember" substitutionGroup="xbrli:item" />
  <element name="MineralPropertyWellsAndRelatedEquipment" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_MineralPropertyWellsAndRelatedEquipment" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="SupportEquipmentAndFacilities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_SupportEquipmentAndFacilities" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DrillingAndWorkInProgress" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_DrillingAndWorkInProgress" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="UnprovedOilAndGasProperties" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_UnprovedOilAndGasProperties" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="GrossCapitalizedCost" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_GrossCapitalizedCost" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AccumulatedDepreciationAndValuationAllowances" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AccumulatedDepreciationAndValuationAllowances" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NetCapitalizedCost" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_NetCapitalizedCost" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="UpstreamContractsComprisedInRightOfUseAssetsMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_UpstreamContractsComprisedInRightOfUseAssetsMember" substitutionGroup="xbrli:item" />
  <element name="IFRS16Member" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_IFRS16Member" substitutionGroup="xbrli:item" />
  <element name="AcquisitionOfUnprovedProperties" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AcquisitionOfUnprovedProperties" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AcquisitionOfProvedProperties" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AcquisitionOfProvedProperties" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ExplorationCost" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExplorationCost" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DevelopmentCost" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DevelopmentCost" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="CostsIncurredInOilAndGasProductivity" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_CostsIncurredInOilAndGasProductivity" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="OtherForeignMember" type="dtr-types:domainItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_OtherForeignMember" substitutionGroup="xbrli:item" />
  <element name="DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable" substitutionGroup="xbrldt:hypercubeItem" />
  <element name="DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems" substitutionGroup="xbrli:item" />
  <element name="NetSalesToUnaffiliatedParties" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetSalesToUnaffiliatedParties" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="NetIntersegmentSales" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_NetIntersegmentSales" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="ExplorationExpenses" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ExplorationExpenses" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="ResultsOfOilAndGasProducingActivities" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_ResultsOfOilAndGasProducingActivities" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="DisclosureOfDiscountedFutureNetCashFlowLineItems" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems" substitutionGroup="xbrli:item" />
  <element name="StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="instant" nillable="true" id="ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DisclosureOfFutureNetCashFlowAbstract" type="xbrli:stringItemType" abstract="true" xbrli:periodType="duration" nillable="true" id="ypf_DisclosureOfFutureNetCashFlowAbstract" substitutionGroup="xbrli:item" />
  <element name="SalesAndTransfersNetOfProductionCosts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_SalesAndTransfersNetOfProductionCosts" substitutionGroup="xbrli:item" xbrli:balance="credit" />
  <element name="IncreaseDecreaseInReservesAndProductionRates" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInReservesAndProductionRates" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="AccretionOfDiscount1" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_AccretionOfDiscount1" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves" substitutionGroup="xbrli:item" xbrli:balance="debit" />
  <element name="StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" type="xbrli:monetaryItemType" abstract="false" xbrli:periodType="duration" nillable="true" id="ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments" substitutionGroup="xbrli:item" xbrli:balance="debit" />
</schema>
