XML 199 R178.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Balances and Transactions with Related Parties - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
CHNC [member] |  |  |
Disclosure of transactions between related parties [line items] |  |  |
Purchase of gas and crude oil | $ 453 | $ 442 | $ 424
Net balance payable | $ 38 | $ 46 | $ 29
Proportion of explotation concession of Loma Campana | 50.00% |  |
CDNC and CHNC [member] |  |  |
Disclosure of transactions between related parties [line items] |  |  |
Proportion of ownership interest | 100.00% |  |

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with 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 proportion of ownership interest in a joint operation attributable to the entity. [Refer: Joint operations [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 21 -Subparagraph a -Clause iv -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_21_a_iv&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInJointOperation
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition The proportion of ownership interest in a subsidiary attributable to the entity. [Refer: Subsidiaries [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 17 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_17_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 27 -IssueDate 2023-01-01 -Paragraph 16 -Subparagraph b -Clause iii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2023-en-r&anchor=para_16_b_iii&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 12 -IssueDate 2023-01-01 -Paragraph 19B -Subparagraph c -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2023-en-r&anchor=para_19B_c&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_ProportionOfOwnershipInterestInSubsidiary
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
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 2023-01-01 -Paragraph 16 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2023-en-r&anchor=para_16&doctype=Standard -URIDate 2023-03-23 + 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: |

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