XML 168 R146.htm IDEA: XBRL DOCUMENT
v3.21.1

Loans - Schedule of Loans (Parenthetical) (Detail) $ in Millions, $ in Millions | Dec. 31, 2020 ARS ($) | Dec. 31, 2020 USD ($) | Dec. 31, 2019 ARS ($) | Dec. 31, 2019 USD ($) | Dec. 31, 2018 ARS ($) | Dec. 31, 2018 USD ($) | Dec. 31, 2017 ARS ($)
--- | --- | --- | --- | --- | --- | --- | ---
Disclosure of detailed information about borrowings [line items] |  |  |  |  |  |  |
Repurchase of negotiable obligations |  |  | $ 326 |  | $ 410 |  |
Loans accrued | $ 678,306 |  | 526,760 |  | 335,078 |  | $ 191,063
Cancellation of negotiable obligations | 20,496 |  | 4,643 |  | 2,634 |  |
Cancellation of negotiable obligations in U.S. dollars |  | $ 4,602 |  | $ 15,850 |  | $ 15,850 |
Banco Nacion Argentina [member] |  |  |  |  |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |  |  |  |  |
Loans accrued |  |  |  |  | 500 |  |
Export Pre financing [member] | Banco Nacion Argentina [member] |  |  |  |  |  |  |
Disclosure of detailed information about borrowings [line items] |  |  |  |  |  |  |
Loans accrued | $ 4,791 |  | $ 4,933 |  | $ 5,264 |  |
Interest rate | 5.85% | 5.85% | 6.89% | 6.89% | 3.93% | 3.93% |

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 2020-01-01 -Paragraph 55 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_55&doctype=Standard -URIDate 2020-01-01 + 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 2020-01-01 -Paragraph 7 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2020-en-r&anchor=para_7&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_BorrowingsAdjustmentToInterestRateBasis
Namespace Prefix: | ifrs-full_
Data Type: | num: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 domain 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 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: |