XML 171 R150.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Revenues - Summary of Breakdown of Revenues by Sales Channels (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | $ 16,995 | $ 18,437 | $ 13,384
Gas stations [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 6,541 | 6,673 | 4,898
Power plants [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 458 | 474 | 639
Distribution companies [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 171 | 179 | 187
Retail distribution of natural gas [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 170 | 308 | 329
Industries, transport and aviation [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 5,163 | 4,933 | 2,855
Agriculture [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 1,804 | 2,697 | 1,917
Petrochemical industry [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 614 | 722 | 671
Trading [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 1,043 | 901 | 576
Oil companies [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 141 | 688 | 570
Commercialization of LPG [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 143 | 177 | 149
Other sales channels [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 747 | 685 | 593
Upstream [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 171 | 174 | 147
Upstream [member] | Other sales channels [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 171 | 174 | 147
Downstream [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 14,774 | 15,898 | 11,145
Downstream [member] | Gas stations [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 6,541 | 6,673 | 4,898
Downstream [member] | Power plants [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 46 | 13 | 131
Downstream [member] | Industries, transport and aviation [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 4,202 | 3,890 | 2,104
Downstream [member] | Agriculture [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 1,804 | 2,697 | 1,917
Downstream [member] | Petrochemical industry [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 614 | 722 | 671
Downstream [member] | Trading [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 1,043 | 901 | 576
Downstream [member] | Oil companies [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 141 | 688 | 570
Downstream [member] | Commercialization of LPG [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 143 | 177 | 149
Downstream [member] | Other sales channels [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 240 | 137 | 129
Gas and power [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 1,815 | 2,104 | 1,852
Gas and power [member] | Power plants [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 412 | 461 | 508
Gas and power [member] | Distribution companies [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 171 | 179 | 187
Gas and power [member] | Retail distribution of natural gas [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 170 | 308 | 329
Gas and power [member] | Industries, transport and aviation [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 961 | 1,043 | 751
Gas and power [member] | Other sales channels [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 101 | 113 | 77
Central Administration and Others [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | 235 | 261 | 240
Central Administration and Others [member] | Other sales channels [member] |  |  |
Disclosure of revenue [line items] |  |  |
Revenue from contracts with customers | $ 235 | $ 261 | $ 240

X
- Definition The amount of revenue from contracts with customers. A customer is a party that has contracted with an entity to obtain goods or services that are an output of the entity’s ordinary activities in exchange for consideration. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 15 -IssueDate 2023-01-01 -Paragraph 114 -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_114&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IFRS -Number 15 -IssueDate 2023-01-01 -Paragraph 113 -Subparagraph a -URI https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2023-en-r&anchor=para_113_a&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_RevenueFromContractsWithCustomers
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Disclosure of revenue [line items] + References No definition available. + Details
Name: | ypf_DisclosureOfRevenueLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_GasStationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_PowerPlantsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_DistributionCompaniesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_RetailDistributionOfNaturalGasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_IndustriesTransportAndAviationMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_AgricultureMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_PetrochemicalIndustryMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_TradingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_OilCompaniesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_CommercializationOfLiquefiedPetroleumGasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_SalesChannelsAxis=ypf_OtherSalesChannelsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ypf_UpstreamMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ypf_DownstreamMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ypf_GasAndPowerMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MarketsOfCustomersAxis=ypf_CentralAdministrationAndOthersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |