XML 163 R142.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Loans - Additional Information (Detail) - Negotiable Obligations [member] - USD ($) $ in Millions |  | 12 Months Ended |  |
--- | --- | --- | --- | ---
Jan. 07, 2021 | Dec. 31, 2021 | Feb. 12, 2021 | Feb. 11, 2021
Disclosure of detailed information about loans [line items] |  |  |  |
Percentage of discounted present value of the remaining cash flows |  | 10.00% |  |
Result from debt exchange |  | $ 21.0 |  |
Debt Exchange [Member] | Class XVI [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Percentage of outstanding loan principal | 50.00% |  |  |
Percentage of outstanding capital stock | 50.00% |  |  |
Debt Exchange [Member] | Class XLVII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Refinancing percentage |  |  |  | 60.00%
Major Issuance Of Negotiable Obligations [Member] | Class XVI [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | $ 775.8 |
Major Issuance Of Negotiable Obligations [Member] | Class XVIII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 575.6 |
Major Issuance Of Negotiable Obligations [Member] | Class XVII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 747.8 |
Major Debt Swap [Member] | Class XLVII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 247.3 |
Major Debt Swap [Member] | Class XIII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 201.7 |
Major Debt Swap [Member] | Class XXXIX [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 368.2 |
Major Debt Swap [Member] | Class LIII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 190.7 |
Major Debt Swap [Member] | Class I [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 101.0 |
Major Debt Swap [Member] | Class LIV [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | 213.4 |
Major Debt Swap [Member] | Class XXVIII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Principal value |  |  | $ 656.4 |
Top of range [member] | Debt Exchange [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Percentage of appreciation or depreciation on exchange rate | 9.00% |  |  |
Top of range [member] | Debt Exchange [Member] | Class XLVII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Proportion of global exchange participation in loans |  |  |  | 59.80%
Bottom of range [member] | Debt Exchange [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Percentage of appreciation or depreciation on exchange rate | 1.50% |  |  |
Bottom of range [member] | Debt Exchange [Member] | Class XLVII [Member] |  |  |  |
Disclosure of detailed information about loans [line items] |  |  |  |
Proportion of global exchange participation in loans |  |  |  | 32.00%

X
- Definition Disclosure of detailed information about loans. + References No definition available. + Details
Name: | ypf_DisclosureOfDetailedInformationAboutLoansLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The amount of outstanding funds that the entity is obligated to repay. + References No definition available. + Details
Name: | ypf_Loans
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Percentage of appreciation or depreciation on exchange rate + References No definition available. + Details
Name: | ypf_PercentageOfAppreciationOrDepreciationOnExchangeRate
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of discounted present value of the remaining cash flows. + References No definition available. + Details
Name: | ypf_PercentageOfDiscountedPresentValueOfTheRemainingCashFlows
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of outstanding capital stock. + References No definition available. + Details
Name: | ypf_PercentageOfOutstandingCapitalStock
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage of outstanding loan principal. + References No definition available. + Details
Name: | ypf_PercentageOfOutstandingLoanPrincipal
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Proportion of global exchange participation in loans. + References No definition available. + Details
Name: | ypf_ProportionOfGlobalExchangeParticipationInLoans
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Refinancing percentage. + References No definition available. + Details
Name: | ypf_RefinancingPercentage
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Result from debt exchange. + References No definition available. + Details
Name: | ypf_ResultFromDebtExchange
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | ifrs-full_BorrowingsByNameAxis=ypf_NegotiableObligationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_NonadjustingEventsAfterReportingPeriodAxis=ypf_DebtExchangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassXviMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassxlviiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_NonadjustingEventsAfterReportingPeriodAxis=ypf_MajorIssuanceOfNegotiableObligationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassXviiiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassXviiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_NonadjustingEventsAfterReportingPeriodAxis=ypf_MajorDebtSwapMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassxiiiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassxxxixMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassliiiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassiMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClasslivMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_ClassxxviiiMember
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_RangeAxis=ifrs-full_BottomOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |