XML 55 R38.htm IDEA: XBRL DOCUMENT
v3.23.1

Earnings Per Share | 12 Months Ended
--- | ---
Dec. 31, 2022
Text block [abstract] |
Earnings Per Share |
31. | EARNINGS PER SHARE
The following table shows the net income and the number of shares that have been used for the calculation of the basic and diluted earnings per share:
|  | 2022 |  | 2021 |  | 2020
Net profit / (loss) |  |  | 2,228 |  |  |  | 26 |  |  |  | (1,004) |
Average number of shares outstanding |  |  | 392,719,453 |  |  |  | 392,792,602 |  |  |  | 392,555,569 |
Basic and diluted earnings per share |  |  | 5.67 |  |  |  | 0.07 |  |  |  | (2.56) |
Basic and diluted earnings per share are calculated as shown in Note 2.b.13).

X
- Definition The entire disclosure for earnings per share. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 33 -IssueDate 2022-03-24 -Section Disclosure -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2022-en-r&doctype=Standard&dita_xref=IAS33_g70-73A__IAS33_g70-73A_TI -URIDate 2022-03-24 + 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