XML 194 R172.htm IDEA: XBRL DOCUMENT
v3.21.1

Contractual Commitments - Contractual Commitments - Additional Information (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2020 USD ($)
Disclosure of geographical areas [abstract] |
Total Expenses untill the completion of Concessions | $ 572,631

X
- References No definition available. + Details
Name: | ifrs-full_DisclosureOfGeographicalAreasAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of expense by nature. + References No definition available. + Details
Name: | ypf_AmountOfExpenseByNature
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration