XML 59 R38.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Earnings Per Share | 12 Months Ended
--- | ---
Dec. 31, 2023
Text block [abstract] |
Earnings Per Share | 31. EARNINGS PER SHARE The following table shows the net profit or loss and the number of shares that have been used for the calculation of the basic and diluted earnings per share:
|  | 2023 |  |  |  |  |  | 2022 |  |  |  |  |  | 2021 |
Net profit or loss |  |  | (1,312) |  |  |  |  |  |  |  | 2,228 |  |  |  |  |  |  |  | 26 |
Weighted average number of shares outstanding |  |  | 391,722,944 |  |  |  |  |  |  |  | 392,719,453 |  |  |  |  |  |  |  | 392,792,602 |
Basic and diluted earnings per share |  |  | (3.35) |  |  |  |  |  |  |  | 5.67 |  |  |  |  |  |  |  | 0.07 |
There are no YPF financial instruments or other contracts outstanding that imply the existence of potential ordinary shares, thus the diluted earnings per share matches the basic earnings per share.

X
- Definition The entire disclosure for earnings per share. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 33 -IssueDate 2023-01-01 -Section Disclosure -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2023-en-r&doctype=Standard&dita_xref=IAS33_g70-73A_TI -URIDate 2023-03-23 + Details
Name: | ifrs-full_DisclosureOfEarningsPerShareExplanatory
Namespace Prefix: | ifrs-full_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Text block [abstract] + References No definition available. + Details
Name: | ypf_TextBlockAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration