XML 205 R183.htm IDEA: XBRL DOCUMENT
v3.21.1

Balances and Transactions with Related Parties - Additional Information (Detail) - CHNC [member] - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
Disclosure of transactions between related parties [line items] |  |  |
Purchase of gas and crude oil | $ 14,962 | $ 21,595 | $ 14,295
Net balance payable | $ 6,462 | $ 2,066 | $ 2,064

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_DisclosureOfTransactionsBetweenRelatedPartiesLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow for the purchase of oil and gas assets. [Refer: Oil and gas assets] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2020-01-01 -Paragraph 16 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=7&code=ifrs-tx-2020-en-r&anchor=para_16&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_PurchaseOfOilAndGasAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Net balance payable. + References No definition available. + Details
Name: | ypf_NetBalancePayable
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ifrs-full_CounterpartiesAxis=ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |