XML 38 R157.htm IDEA: XBRL DOCUMENT
v3.20.1

Costs - Detailed Information of Inventory Costs (Parenthetical) (Detail) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2017 ARS ($)
Disclosure of details of inventory costs [abstract] |
Reclassification of inventory | $ 142
Reclassifications in inventories at beginning of fiscal year | 12

X
- Definition Disclosure of details of inventory costs. + References No definition available. + Details
Name: | ypf_DisclosureOfDetailsOfInventoryCostsAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Reclassification of inventory in accordance with change in accounting policy + References No definition available. + Details
Name: | ypf_ReclassificationOfInventoryInAccordanceWithChangeInAccountingPolicy
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Reclassifications in inventories at beginning of fiscal year. + References No definition available. + Details
Name: | ypf_ReclassificationsInInventoriesAtBeginningOfFiscalYear
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration