XML 175 R154.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Costs - Detailed Information of Inventory Costs (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Disclosure of details of inventory costs [abstract] |  |  |  |  |  |
Inventories at the beginning of the fiscal year |  | $ 1,738 | [1] | $ 1,500 | [1] | $ 1,191
Purchases |  | 5,106 |  | 6,212 |  | 4,052
Production costs | [2] | 8,703 |  | 7,704 |  | 6,880
Translation differences |  | (29) |  | (13) |  | (6)
Adjustment for inflation | [3] | 18 |  | 19 |  | 12
Inventories at the end of the fiscal year | [1] | (1,683) |  | (1,738) |  | (1,500)
Total |  | $ 13,853 |  | $ 13,684 |  | $ 10,629
[1] | As of December 31, 2023, 2022 and 2021, the cost of inventories does not exceed their net realizable value.
[2] | See Note 26.
[3] | Corresponds to adjustment for inflation of opening balances of inventories of subsidiaries with the peso as functional currency, which was charged to “Other comprehensive income” in the statement of comprehensive income.

X
- Definition The amount of all expenses directly or indirectly attributed to the goods or services sold. Attributed expenses include, but are not limited to, costs previously included in the measurement of inventory that has now been sold, such as depreciation and maintenance of factory buildings and equipment used in the production process, unallocated production overheads, and abnormal amounts of production costs of inventories. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 99 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_99&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 103 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_103&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_CostOfSales
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The amount of current inventories. [Refer: Inventories] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 2 -IssueDate 2023-01-01 -Paragraph 36 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2023-en-r&anchor=para_36_b&doctype=Standard -URIDate 2023-03-23 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 54 -Subparagraph g -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_54_g&doctype=Standard -URIDate 2023-03-23 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2023-01-01 -Paragraph 68 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2023-en-r&anchor=para_68&doctype=Standard -URIDate 2023-03-23 + Details
Name: | ifrs-full_Inventories
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure of details of inventory costs. + References No definition available. + Details
Name: | ypf_DisclosureOfDetailsOfInventoryCostsAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Inventory inflation adjustment. + References No definition available. + Details
Name: | ypf_InventoryInflationAdjustment
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory production costs. + References No definition available. + Details
Name: | ypf_InventoryProductionCosts
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory purchases. + References No definition available. + Details
Name: | ypf_InventoryPurchases
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Inventory translation effect. + References No definition available. + Details
Name: | ypf_InventoryTranslationEffect
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration