XML 177 R155.htm IDEA: XBRL DOCUMENT
v3.21.1

Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Parenthetical) (Detail) - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Disclosure of revenue [abstract] |  |  |
Revenue from natural gas produced by the Company | $ 70,256 | $ 71,491 | $ 55,882

X
- Definition The amount of revenue arising from the sale of natural gas. [Refer: Current natural gas; Revenue] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 112 -Subparagraph c -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_112_c&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_RevenueFromSaleOfNaturalGas
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Disclosure of revenue [abstract] + References No definition available. + Details
Name: | ypf_DisclosureOfRevenueAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration