XML 200 R166.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Employee Benefit Plans and Share-Based Payments - Summary of Share Based Compensation Plan (Plan 2014-2017) (Parenthetical) (Detail) - Plan 2014-17 [Member] | 12 Months Ended
--- | ---
Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015
Disclosure of terms and conditions of share-based payment arrangement [line items] |  |  |
Remaining life of plan | 7 months | 7 months |
Bottom of range [member] |  |  |
Disclosure of terms and conditions of share-based payment arrangement [line items] |  |  |
Remaining life of plan |  |  | 7 months
Top of range [member] |  |  |
Disclosure of terms and conditions of share-based payment arrangement [line items] |  |  |
Remaining life of plan |  |  | 19 months

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_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Share Based Benefit Plan Average Remaining Life + References No definition available. + Details
Name: | ypf_ShareBasedBenefitPlanAverageRemainingLife
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfSharebasedPaymentArrangementsAxis=ypf_ShareBasedBenefitPlanTwoThousandAndFourteenToSeventeenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_BottomOfRangeMember
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: |