XML 166 R150.htm IDEA: XBRL DOCUMENT
v3.25.1

Loans - Schedule of Loans (Parenthetical) (Detail) - USD ($) $ in Millions | Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
--- | --- | --- | --- | ---
Disclosure of detailed information about borrowings [line items] |  |  |  |
Repurchase of negotiable obligations | $ 18 | $ 3 | $ 9 |
Loans accrued | 8,942 | 8,190 | 7,088 | $ 7,379
Cancellation of negotiable obligations in Argentine pesos | 1,496 | 1,327 | $ 523 |
Banco Nacion Argentina [member] |  |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |  |
Loans granted | 28 |  |  |
Export Pre financing [member] | Banco Nacion Argentina [member] |  |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |  |
Loans accrued | $ 133 | $ 86 |  |

X
- Definition The amount of outstanding funds that the entity is obligated to repay. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2024-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2024-en-r&anchor=para_55&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_Borrowings
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Loans granted. + References No definition available. + Details
Name: | ypf_LoansGranted
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Negotiable obligations cancelled. + References No definition available. + Details
Name: | ypf_NegotiableObligationsCancelled
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Negotiable obligations repurchased. + References No definition available. + Details
Name: | ypf_NegotiableObligationsRepurchased
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ypf_ExportPreFinancingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |