XML 143 R121.htm IDEA: XBRL DOCUMENT
v3.21.1

Investments in Associates and Joint Ventures - Summary of Investments Information (Parenthetical) (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2020
YPF EE [member] |
Disclosure of investments in associates and joint ventures [line items] |
The Group indirect holding in capital stock through YPF EE | 22.49%

X
- Definition Disclosure of investments in associates and joint ventures. + References No definition available. + Details
Name: | ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Proportion of indirect ownership interest in associates. + References No definition available. + Details
Name: | ypf_ProportionOfIndirectOwnershipInterestInAssociates
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ypf_YPFEEMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |