XML 172 R150.htm IDEA: XBRL DOCUMENT
v3.21.1

Loans - Details of Negotiable Obligations (Parenthetical) (Detail) - Medium Term Notes [member] $ in Millions | Dec. 31, 2020 USD ($)
--- | ---
Nineteen Ninety Seven [member] |
Disclosure of detailed information about loans [line items] |
Negotiable amount | $ 1,000
Two Thousand Eight [member] |
Disclosure of detailed information about loans [line items] |
Negotiable amount | $ 10,000

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 Negotiable amount. + References No definition available. + Details
Name: | ypf_NegotiableAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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

X
- Details
Name: | ifrs-full_MaturityAxis=ypf_NineteenNinetySevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ypf_TwoThousandEightMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |