XML 209 R193.htm IDEA: XBRL DOCUMENT
v3.25.1

Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2022-2025) (Parenthetical) (Detail) - Plan 2022-2025 [member] | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Disclosure of terms and conditions of share-based payment arrangement [line items] |  |  |
Average life of plan | 8 months |  |
Bottom of range [member] |  |  |
Disclosure of terms and conditions of share-based payment arrangement [line items] |  |  |
Average life of plan |  | 8 months | 8 months
Top of range [member] |  |  |
Disclosure of terms and conditions of share-based payment arrangement [line items] |  |  |
Average life of plan |  | 20 months | 32 months

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

X
- Definition Share Based Benefit Plan Average Life. + References No definition available. + Details
Name: | ypf_ShareBasedBenefitPlanAverageLife
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfSharebasedPaymentArrangementsAxis=ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember
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: |