XML 135 R118.htm IDEA: XBRL DOCUMENT
v3.23.1

Investment In Financial Assets - Summary of Investment In Financial Asset (Detail) - USD ($) $ in Millions | Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
--- | --- | --- | ---
Disclosure of financial assets [line items] |  |  |
Non-current | $ 201 | $ 25 | $ 0
Current | 319 | 497 | 344
Financial assets at amortized cost, category [member] |  |  |
Disclosure of financial assets [line items] |  |  |
Non-current | 201 | 25 | 0
Current | 245 | 399 | 226
Financial assets at fair value through profit or loss, category [member] |  |  |
Disclosure of financial assets [line items] |  |  |
Non-current | 0 | 0 | 0
Current | 74 | 98 | 118
Public securities [member] | Financial assets at amortized cost, category [member] |  |  |
Disclosure of financial assets [line items] |  |  |
Non-current | 201 | 22 | 0
Current | 162 | 332 | 226
Public securities [member] | Financial assets at fair value through profit or loss, category [member] |  |  |
Disclosure of financial assets [line items] |  |  |
Non-current | 0 | 0 | 0
Current | 74 | 98 | 118
Private Securities - NO [Member] | Financial assets at amortized cost, category [member] |  |  |
Disclosure of financial assets [line items] |  |  |
Non-current | 0 | 3 | 0
Current | 3 | 8 | 0
Term Deposits [Member] | Financial assets at amortized cost, category [member] |  |  |
Disclosure of financial assets [line items] |  |  |
Non-current | 0 | 0 | 0
Current | $ 80 | $ 59 | $ 0

X
- Definition The amount of current financial assets. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_25&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_CurrentFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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

X
- Definition The amount of non-current financial assets. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 25 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_25&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_NoncurrentFinancialAssets
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_CategoriesOfFinancialAssetsAxis=ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ypf_PublicSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ypf_PrivateSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialAssetsAxis=ypf_TermDepositsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |