XML 161 R140.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Loans - Schedule of Loans (Parenthetical) (Detail) - USD ($) $ in Millions | Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | --- | ---
Disclosure of detailed information about borrowings [line items] |  |  |  |
Repurchase of negotiable obligations | $ 3 | $ 9 | $ 4 |
Loans accrued | 8,190 | 7,088 | 7,379 | $ 8,070
Cancellation of negotiable obligations in Argentine pesos | 1,327 | $ 523 | 602 |
Cancellation of negotiable obligations in U.S. dollars |  |  | 45 |
Export Pre financing [member] | Banco Nacion Argentina [member] |  |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |  |
Loans accrued | $ 85 |  | $ 2 |
Weighted average rate |  |  | 5.50% |
Fixed interest rate | 1.90% |  |  |

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 2023-01-01 -Paragraph 55 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_55&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_Borrowings
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition The adjustment to the basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 7 -IssueDate 2023-01-01 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2023-en-r&anchor=para_7&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_BorrowingsAdjustmentToInterestRateBasis
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
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 Cancellation of negotiable obligations in U.S. dollars. + References No definition available. + Details
Name: | ypf_CancellationOfNegotiableObligationsInUSDollars
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The interest rate on loans. + References No definition available. + Details
Name: | ypf_LoansInterestRate
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
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_BorrowingsByNameAxis=ypf_ExportPreFinancingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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