XML 165 R141.htm IDEA: XBRL DOCUMENT
v3.19.1

Costs - Detailed Information of Inventory Costs (Parenthetical) (Detail) - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2018 | Dec. 31, 2017 | Dec. 31, 2016
Disclosure of details of inventory costs [abstract] |  |  |
Reclassification of inventory | $ 142 | $ 12 | $ 85

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