XML 225 R203.htm IDEA: XBRL DOCUMENT
v3.21.1

Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Parenthetical) (Detail) - IFRS 16 [member] $ in Millions | Dec. 31, 2020 ARS ($)
--- | ---
Upstream Contracts comprised in right-of-use assets [member] |
Disclosure of information about consolidated structured entities [line items] |
All Upstream Contracts Excepted For Drilling Contract | $ 9,899
Accumulated Depreciation Of All Upstream Contracts | (21,032)
Drilling contracts comprised in right-of-use assets [member] |
Disclosure of information about consolidated structured entities [line items] |
Drilling Contracts | $ 40,829

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 Accumulated Depreciation of all Upstream contracts + References No definition available. + Details
Name: | ypf_AccumulatedDepreciationOfAllUpstreamContracts
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition All Upstream contracts excepted for Drilling Contracts + References No definition available. + Details
Name: | ypf_AllUpstreamContractsExceptedForDrillingContract
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Drilling contracts + References No definition available. + Details
Name: | ypf_DrillingContracts
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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: |

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