XML 112 R95.htm IDEA: XBRL DOCUMENT
v3.23.1

Financial Instruments by Category - Additional Information (Detail) - USD ($) $ in Millions | 12 Months Ended |  |  |
--- | --- | --- | --- | ---
Dec. 31, 2020 | Dec. 31, 2022 | Dec. 31, 2021 | Aug. 31, 2020
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Exchange of outstanding principal amount of bonds, percentage |  |  |  | 99.01%
Gain on fair value changes of bonds | $ 18 |  |  |
Level 3 [member] | Estimated Fair Value of Loans [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Other remaining financial loans | $ 6,666 | $ 5,812 | $ 5,483 |

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

X
- Definition Exchange of outstanding principal amount of bonds percentage. + References No definition available. + Details
Name: | ypf_ExchangeOfOtstandingPrincipalAmountOfBondsPercentage
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Gain on fair value changes of bonds. + References No definition available. + Details
Name: | ypf_GainOnFairValueChangesOfBonds
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Other remaining financial loans. + References No definition available. + Details
Name: | ypf_OtherRemainingFinancialLoans
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_LevelsOfFairValueHierarchyAxis=ifrs-full_Level3OfFairValueHierarchyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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