XML 191 R170.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Contractual Commitments - Agreement for Settlement - Additional information (Detail) - Exmar energy netherlands BV exmar argentina SAU and exmar NV [member] $ in Millions | Oct. 19, 2020 USD ($)
--- | ---
Disclosure of Contractual Commitments [Line Items] |
Agreement Termination Settlemnt Amount | $ 150
Down Payment Amount | $ 22
Other Liability |
Disclosure of Contractual Commitments [Line Items] |
Amount Payable in Monthly Installment Period | 18 months

X
- Definition Amount Payable in Monthly Installment Period. + References No definition available. + Details
Name: | ypf_AmountPayableInMonthlyInstallmentPeriod
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Disclosure of contractual commitments. + References No definition available. + Details
Name: | ypf_DisclosureOfContractualCommitmentsLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Down Payment Amount. + References No definition available. + Details
Name: | ypf_DownPaymentAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Termination Settlement Amount. + References No definition available. + Details
Name: | ypf_TerminationSettlementAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_CounterpartiesAxis=ypf_ExmarEnergyNetherlandsBvExmarArgentinaSauAndExmarNvMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_LiabilityClassAxis=ypf_OtherLiabilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |