XML 204 R182.htm IDEA: XBRL DOCUMENT
v3.21.1

Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Parenthetical) (Detail) - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Disclosure of key management personnel compensation [abstract] |  |  |
Social Security contributions | $ 182 | $ 133 | $ 66

X
- Definition A class of employee benefits expense that represents social security contributions. [Refer: Employee benefits expense] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 19 -IssueDate 2020-01-01 -Paragraph 9 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=19&code=ifrs-tx-2020-en-r&anchor=para_9&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_SocialSecurityContributions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Disclosure of key management personnel compensation. + References No definition available. + Details
Name: | ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration