XML 192 R170.htm IDEA: XBRL DOCUMENT
v3.21.1

Contractual Commitments - Agreements of Extension of Concessions - Additional Information (Detail) |  |  |  |  | 1 Months Ended | 12 Months Ended
--- | --- | --- | --- | --- | --- | ---
Dec. 10, 2020 | Oct. 02, 2013 | Jul. 24, 2013 | Oct. 23, 2012 | Nov. 30, 2012 | Apr. 30, 2011 | Dec. 31, 2020 | Dec. 31, 2019
Unconventional exploration concessions |  |  |  |  |  |  |  |
Second Exploratiory Commitment Term | 4 years |  |  |  |  |  |  |
Province Of Chubut [member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Exploitation concessions, extended term |  | 30 years |  |  |  |  |  |
Province of Neuquen [member] | Other concessions [member] | Bottom of range [member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Expire period |  |  |  |  |  |  | 2026 |
Province of Neuquen [member] | Other concessions [member] | Top of range [member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Expire period |  |  |  |  |  |  | 2027 |
Province of Neuquen [member] | Loma La Lata - Sierra Barrosa [Member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Extended period |  |  | 22 years |  |  |  |  |
Province of Neuquen [member] | Loma La Lata - Sierra Barrosa areas [member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Extended of additional period |  |  |  |  |  |  |  | 10 years
Province of Mendoza [member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Extended period |  |  |  |  |  | 10 years |  |
Province of Santa Cruz [member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Extended period |  |  |  |  | 25 years |  |  |
Salta [Member] |  |  |  |  |  |  |  |
Unconventional exploration concessions |  |  |  |  |  |  |  |
Extended period |  |  |  | 10 years |  |  |  |

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfGeographicalAreasLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Expiration year. + References No definition available. + Details
Name: | ypf_ExpirationYear
Namespace Prefix: | ypf_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Exploitation concessions extended period. + References No definition available. + Details
Name: | ypf_ExploitationConcessionsExtendedPeriod
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Extended of additional period. + References No definition available. + Details
Name: | ypf_ExtendedOfAdditionalPeriod
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Extended period. + References No definition available. + Details
Name: | ypf_ExtendedPeriod
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Second exploratory commitment term. + References No definition available. + Details
Name: | ypf_SecondExploratoryCommitmentTerm
Namespace Prefix: | ypf_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ypf_ProvinceOfChubutMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | ifrs-full_ServiceConcessionArrangementsAxis=ypf_OtherConcessionsMember
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: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ypf_LomaLaLataSierraBarrosaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_GeographicalAreasAxis=ypf_LomaLaLataSierraBarrosaAreasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

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

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