XML 227 R205.htm IDEA: XBRL DOCUMENT
v3.21.1

Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Parenthetical) (Detail) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 ARS ($)
Upstream Contracts comprised in right-of-use assets [member] | IFRS 16 [Member] |
Disclosure of information about consolidated structured entities [line items] |
Additions of Upstream contracts comprised in right-of-use assets | $ 11,505

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Additions of Upstream contracts comprised in right-of-use assets + References No definition available. + Details
Name: | ypf_DevelopmentCosts
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfContractsAxis=ypf_UpstreamContractsComprisedInRightOfUseAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_NewIFRSsAxis=ypf_IFRS16Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |