XML 189 R168.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Contractual Commitments - Contractual Commitments - Additional Information (Detail) - USD ($) |  |  |  |  | 12 Months Ended
--- | --- | --- | --- | --- | ---
Dec. 12, 2023 | Oct. 12, 2023 | Oct. 10, 2023 | Feb. 09, 2023 | Dec. 31, 2023
Statement [Line Items] |  |  |  |  |
Total Expenses untill the completion of Concessions |  |  |  |  | $ 3,241
Transportation concession percentage |  |  |  | 24.80% |
Uruguay [Member] | Exploration And Exploitation Period [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Term of contract | 30 years |  |  |  |
Uruguay [Member] | Extension Of The Exploration And Exploitation Period [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Term of extension | 10 years |  |  |  |
Palermo Aike [Member] | Extension Of The Exploration And Exploitation Period [Member] | El Campamento Este Block [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Term of extension |  | 4 years |  |  |
Palermo Aike [Member] | Extension Of The Exploration And Exploitation Period [Member] | La Azucena Block [Member] |  |  |  |  |
Statement [Line Items] |  |  |  |  |
Term of contract |  |  | 4 years |  |

X
- Definition Amount of expense by nature. + References No definition available. + Details
Name: | ypf_AmountOfExpenseByNature
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Percentage of transportation concession. + References No definition available. + Details
Name: | ypf_PercentageOfTransportationConcession
Namespace Prefix: | ypf_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | ypf_StatementLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of contract. + References No definition available. + Details
Name: | ypf_TermOfContract
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of extension. + References No definition available. + Details
Name: | ypf_TermOfExtension
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | srt_StatementGeographicalAxis=country_UY
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_AgreementAxis=ypf_ExplorationAndExploitationPeriodMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_AgreementAxis=ypf_ExtensionOfTheExplorationAndExploitationPeriodMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_StatementGeographicalAxis=ypf_PalermoAikeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_BlockAxis=ypf_ElCampamentoEsteBlockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_BlockAxis=ypf_LaAzucenaBlockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |