XML 100 R83.htm IDEA: XBRL DOCUMENT
v3.23.1

Financial Risk Management - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Provision for doubtful trade receivables | $ 131 |  |
Provision for other doubtful receivables | 1 |  |
Guarantees granted by third parties | 873 | $ 737 | $ 456
Financial assets at amortized cost | $ 2,770 | $ 2,507 | $ 2,266
Average foreign exchange rate | 73.00% |  |
Percentage of variable rate financial loans to total loans | 7.00% |  |
Credit risk other financial assets national government and direct agencies accounts [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Maximum exposure to credit risk | $ 815 |  |
SOFR [Member] | Bottom of range [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Variable interest rate | 1.50% |  |
SOFR [Member] | Top of range [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Variable interest rate | 7.05% |  |
Interest rate risk [member] | LIBOR [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Loans accrued | $ 52 |  |
Interest rate risk [member] | LIBOR [member] | Bottom of range [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Variable interest rate | 1.50% |  |
Interest rate risk [member] | LIBOR [member] | Top of range [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Variable interest rate | 8.50% |  |
Interest rate risk [member] | BADLAR [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Loans accrued | $ 75 |  |
Variable interest rate | 9.85% |  |
Interest rate risk [member] | SOFR [Member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Loans accrued | $ 326 |  |
Interest rate risk [member] | CDI Rate [Member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Loans accrued | $ 12 |  |
Interest rate risk [member] | CDI Rate [Member] | Bottom of range [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Variable interest rate | 2.75% |  |
Interest rate risk [member] | CDI Rate [Member] | Top of range [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Variable interest rate | 6.00% |  |
Liquidity risk [member] |  |  |
Disclosure of nature and extent of risks arising from financial instruments [line items] |  |  |
Amount available for liquidity | $ 773 |  |
Cash | 369 |  |
Other liquid financial assets | 404 |  |
Financial assets at amortized cost | $ 239 |  |

X
- Definition The adjustment to the basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 7 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_7&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_BorrowingsAdjustmentToInterestRateBasis
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of cash on hand and demand deposits. [Refer: Cash on hand] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2022-03-24 -Paragraph 45 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2022-en-r&anchor=para_45&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_Cash
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_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of financial assets at amortised cost. The amortised cost is the amount at which financial assets are measured at initial recognition minus principal repayments, plus or minus the cumulative amortisation using the effective interest method of any difference between that initial amount and the maturity amount, and adjusted for any impairment. [Refer: Financial assets] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 8 -Subparagraph f -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_8_f&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_FinancialAssetsAtAmortisedCost
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The amount that best represents the maximum exposure to credit risk without taking into account any collateral held or other credit enhancements (for example, netting agreements that do not qualify for offset in accordance with IAS 32). [Refer: Credit risk [member]] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 35K -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2022-en-r&anchor=para_35K_a&doctype=Standard -URIDate 2022-03-24 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Note Expiry date 2023-01-01 -Name IFRS -Number 7 -IssueDate 2022-03-24 -Paragraph 36 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_36_a&doctype=Standard&book=b -URIDate 2022-03-24 + Details
Name: | ifrs-full_MaximumExposureToCreditRisk
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of cash and cash equivalents that the entity does not separately disclose in the same statement or note. [Refer: Cash and cash equivalents] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 7 -IssueDate 2022-03-24 -Paragraph 45 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2022-en-r&anchor=para_45&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_OtherCashAndCashEquivalents
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount available for liquidity. + References No definition available. + Details
Name: | ypf_AmountAvailableForLiquidity
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Financial loans accrued. + References No definition available. + Details
Name: | ypf_FinancialLoansAccrued
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Foreign exchange rate percentage. + References No definition available. + Details
Name: | ypf_ForeignExchangeRatePercentage
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Guarantees Granted by Third Parties + References No definition available. + Details
Name: | ypf_GuaranteesGrantedByThirdParties
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of variable rate financial loans to total loans. + References No definition available. + Details
Name: | ypf_PercentageOfVariableRateFinancialLoansToTotalLoans
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Provision for doubtful trade receivables. + References No definition available. + Details
Name: | ypf_ProvisionForDoubtfulTradeReceivables
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Provision for other doubtful receivables + References No definition available. + Details
Name: | ypf_ProvisionForOtherDoubtfulReceivables
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_InternalCreditGradesAxis=ypf_NationalGovernmentAndDirectAgenciesAccountsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=ypf_SofrMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_BottomOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_TopOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=ypf_LIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=ypf_BadlarMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_TypesOfInterestRatesAxis=ypf_CdiRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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