XML 147 R145.htm IDEA: XBRL DOCUMENT
v3.20.1

Loans - Additional Information (Detail) - USD ($) $ in Millions | Dec. 31, 2019 | Apr. 28, 2017
--- | --- | ---
Frequent Issuer regime [member] |  |
Disclosure of detailed information about loans [line items] |  |
Principal value | $ 2,000 |
Top of range [member] | Medium Term Notes [member] |  |
Disclosure of detailed information about loans [line items] |  |
Notes outstanding |  | $ 10,000

X
- Definition The amount of notes and debentures issued by the entity. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2019-01-01 -Paragraph 112 -Subparagraph c -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2019-en-r&anchor=para_112_c&doctype=Standard -URIDate 2019-03-27 + Details
Name: | ifrs-full_NotesAndDebenturesIssued
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Disclosure of detailed information about loans. + References No definition available. + Details
Name: | ypf_DisclosureOfDetailedInformationAboutLoansLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of outstanding funds that the entity is obligated to repay. + References No definition available. + Details
Name: | ypf_Loans
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ypf_LoansByNameAxis=ypf_FrequentIssuerRegimeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_TopOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_MediumTermNotes1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |