XML 191 R169.htm IDEA: XBRL DOCUMENT
v3.21.1

Contingent Assets and Liabilities - Additional Information (Detail) |  | 12 Months Ended
--- | --- | ---
Dec. 30, 2014 Judgment | Dec. 31, 2020 Companies
Dock Sud, Province of Buenos Aires [Member] |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |
Number of companies sued | Companies |  | 44
CSJN [member] | Asociacion Superficiarios de la Patagonia [Member] |  |
Disclosure Of Contingent Assets And Liabilities [line items] |  |
Number of interlocutory judgments issued | Judgment | 2 |

X
- Definition Disclosure of contingent assets and liabilities. + References No definition available. + Details
Name: | ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of companies sued. + References No definition available. + Details
Name: | ypf_NumberOfCompaniesSued
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of interlocutory judgments. + References No definition available. + Details
Name: | ypf_NumberOfInterlocutoryJudgments
Namespace Prefix: | ypf_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfProvisionsAxis=ypf_DockSudRoMatanzaRiachueloQuilmesAndRefineriaLujanDeCuyoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfProvisionsAxis=ypf_CsjnMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ypf_LegalEntitiesAxis=ypf_AsociacionSuperficiariosDeLaPatagoniaMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |