XML 221 R205.htm IDEA: XBRL DOCUMENT
v3.25.1

Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Upstream Contracts comprised in right-of-use assets [member] |  |  |
Disclosure of information about consolidated entities [line items] |  |  |
Development cost related to Upstream contracts comprised in right-of-use assets | $ 206 | $ 313 | $ 223

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

X
- Definition Development cost related to Upstream contracts comprised in right-of-use assets. + References No definition available. + Details
Name: | ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_TypesOfContractsAxis=ypf_UpstreamContractsComprisedInRightOfUseAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |