XML 137 R121.htm IDEA: XBRL DOCUMENT
v3.25.1

Investments in Associates and Joint Ventures - Summary of Investments Information (Parenthetical) (Detail) | 12 Months Ended
--- | ---
Dec. 31, 2024
CDS [member] |
Disclosure of investments in associates and joint ventures [line items] |
The Group indirect holding in capital stock through YPF EE | 22.36%

X
- Definition Disclosure of investments in associates and joint ventures. + References No definition available. + Details
Name: | ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Proportion of indirect ownership interest in associates. + References No definition available. + Details
Name: | ypf_ProportionOfIndirectOwnershipInterestInAssociates
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_CategoriesOfRelatedPartiesAxis=ypf_CDSMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |