XML 190 R173.htm IDEA: XBRL DOCUMENT
v3.23.1

Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Disclosure of key management personnel compensation [abstract] |  |  |
Social Security contributions | $ 3 | $ 3 | $ 2

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 2022-03-24 -Paragraph 9 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2022-en-r&anchor=para_9&doctype=Standard -URIDate 2022-03-24 + 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