XML 112 R78.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Acquisitions and Dispositions - Summary of Capital Structure After Issuance of Shares (Detail) - YPF EE [member] | 12 Months Ended
--- | ---
Dec. 31, 2017 shares
Disclosure of classes of share capital [line items] |
Number of Shares | 3,747,070,355
Participation in the capital stock | 100.00%
YPF [member] |
Disclosure of classes of share capital [line items] |
Number of Shares | 2,723,826,879
Participation in the capital stock | 72.69218%
Kind of Share | A
OPESSA [member] |
Disclosure of classes of share capital [line items] |
Number of Shares | 86,476,112
Participation in the capital stock | 2.30783%
Kind of Share | A
Group [member] |
Disclosure of classes of share capital [line items] |
Number of Shares | 2,810,302,991
Participation in the capital stock | 75.00001%
Kind of Share | A
GEFS Global Energy B V [member] |
Disclosure of classes of share capital [line items] |
Number of Shares | 936,767,364
Participation in the capital stock | 24.99999%
Kind of Share | B

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

X
- Definition The number of shares issued by the entity. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 106 -Subparagraph d -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_106_d&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_NumberOfSharesIssued
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Description of type of shares. + References No definition available. + Details
Name: | ypf_DescriptionOfTypeOfShares
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Proportion of ownership interest in shares by related party. + References No definition available. + Details
Name: | ypf_ProportionOfOwnershipInterestInSharesByRelatedParty
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_YpfEeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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

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