XML 124 R102.htm IDEA: XBRL DOCUMENT
v3.21.1

Financial Instruments by Category - Additional Information (Detail) - ARS ($) $ in Millions | Aug. 31, 2020 | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
--- | --- | --- | --- | ---
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Exchange of outstanding principal amount of bonds, percentage | 99.01% |  |  |
Gain on fair value changes of bonds | $ 1,330 |  |  |
Level 3 [member] | Estimated Fair Value of Loans [member] |  |  |  |
Disclosure of detailed information about financial instruments [line items] |  |  |  |
Other remaining financial loans |  | $ 560,267 | $ 476,750 | $ 293,972

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

X
- Definition Exchange of outstanding principal amount of bonds percentage. + References No definition available. + Details
Name: | ypf_ExchangeOfOtstandingPrincipalAmountOfBondsPercentage
Namespace Prefix: | ypf_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Gain on fair value changes of bonds. + References No definition available. + Details
Name: | ypf_GainOnFairValueChangesOfBonds
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Other remaining financial loans. + References No definition available. + Details
Name: | ypf_OtherRemainingFinancialLoans
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_LevelsOfFairValueHierarchyAxis=ifrs-full_Level3OfFairValueHierarchyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfFinancialInstrumentsAxis=ypf_EstimatedFairValueOfLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |