XML 102 R85.htm IDEA: XBRL DOCUMENT
v3.23.1

Financial Risk Management - Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments (Detail) - Price Risk [member] $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 USD ($)
Positive variation impact on net income before income tax [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Increase (+) / decrease (-) in the prices of investments in financial | 10.00%
Income before income tax for fiscal year ended December 31, 2022 | $ 41
Negative variation impact on net income before income tax [member] |
Disclosure of nature and extent of risks arising from financial instruments [line items] |
Increase (+) / decrease (-) in the prices of investments in financial | (10.00%)
Income before income tax for fiscal year ended December 31, 2022 | $ (41)

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

X
- Definition Effect of change in prices of investment on gains (losses) on financial assets at fair value through profit or loss. + References No definition available. + Details
Name: | ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Percentage of increase (decrease) in prices of investments + References No definition available. + Details
Name: | ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfRisksAxis=ypf_PriceRiskMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ForeignCurrencyRiskAxis=ypf_PositiveVariationImpactOnNetIncomeBeforeIncomeTaxMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_ForeignCurrencyRiskAxis=ypf_NegativeVariationImpactOnNetIncomeBeforeIncomeTaxMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |