XML 193 R177.htm IDEA: XBRL DOCUMENT
v3.25.1

Contractual Commitments - Granted Guarantees - Additional Information (Detail) - USD ($) $ in Millions | 1 Months Ended | 12 Months Ended |  |
--- | --- | --- | --- | ---
Jan. 31, 2024 | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Class XVI NO [Member] |  |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |  |
Balance of reserve and payment account for holders of class XVI NO |  | $ 165 | $ 138 | $ 160
Percentage of debt services |  | 125.00% |  |
Period within which the amount deposited in the reserves shall be paid |  | 6 months |  |
Reserve and payment account outstanding amount |  |  | 40 | 25
Reserve and payment account maximum amount |  |  | $ 178 | $ 185
Class XXVIII NO [Member] |  |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |  |
Balance of reserve and payment account for holders of class XXVIII NO |  | $ 48 |  |
Percentage of debt services | 125.00% |  |  |
Period within which the amount deposited in the reserves shall be paid | 6 months |  |  |
Granted Guarantees [member] |  |  |  |
Schedule of Granted Guarantees [Line Items] |  |  |  |
Assumed other commitments |  | 77 |  |
Bank guarantees issued |  | $ 12 |  |

X
- Definition The amount of related-party commitments made by the entity to do something if a particular event occurs or does not occur in the future, including executory contracts (recognised and unrecognised). [Refer: Total for all related parties [member]] + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 24 -IssueDate 2024-01-01 -Paragraph 21 -Subparagraph i -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2024-en-r&anchor=para_21_i&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition Balance of reserve and payment account for holders of Class XVI NO. + References No definition available. + Details
Name: | ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXVINO
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Balance of reserve and payment account for holders of Class XXVIII NO. + References No definition available. + Details
Name: | ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Bank guarantees issued. + References No definition available. + Details
Name: | ypf_BankGuaranteesIssued
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage of debt services. + References No definition available. + Details
Name: | ypf_PercentageOfDebtServices
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period within which the amount deposited in the reserves shall be paid. + References No definition available. + Details
Name: | ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Reserve and payment account maximum amount. + References No definition available. + Details
Name: | ypf_ReserveAndPaymentAccountMaximumAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Reserve and payment account outstanding amount. + References No definition available. + Details
Name: | ypf_ReserveAndPaymentAccountOutstandingAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Schedule of Granted Guarantees [Line Items] + References No definition available. + Details
Name: | ypf_ScheduleOfGrantedGuaranteesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ypf_InvestorsAxis=ypf_ClassXVINOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_InvestorsAxis=ypf_ClassXXVIIINOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis=ifrs-full_GuaranteesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |