XML 176 R159.htm IDEA: XBRL DOCUMENT
v3.23.1

Earnings Per Share - Summary of Earnings Per Share (Detail) - USD ($) $ / shares in Units, $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 | Dec. 31, 2021 | Dec. 31, 2020
Earnings per share [abstract] |  |  |
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)

X
- References No definition available. + Details
Name: | ifrs-full_EarningsPerShareAbstract
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2022-03-24 -Paragraph 81B -Subparagraph a -Clause ii -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2022-en-r&anchor=para_81B_a_ii&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_ProfitLossAttributableToOwnersOfParent
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The number of ordinary shares outstanding at the beginning of the period, adjusted by the number of ordinary shares bought back or issued during the period multiplied by a time-weighting factor. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 33 -IssueDate 2022-03-24 -Paragraph 70 -Subparagraph b -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2022-en-r&anchor=para_70_b&doctype=Standard -URIDate 2022-03-24 + Details
Name: | ifrs-full_WeightedAverageShares
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Basic and diluted earnings per share. + References No definition available. + Details
Name: | ypf_BasicAndDilutedEarningsPerShare
Namespace Prefix: | ypf_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | duration