v3.22.4
Financial Instruments - Narrative (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2022
Dec. 31, 2021
Dec. 31, 2020
Financial Instruments and Fair Value [Line Items]      
Fair value of non-marketable equity securities $ 28,529 $ 27,571  
Gross realized gain on debt securities 103 432 $ 899
Gross realized loss on debt securities 1,588 329 $ 184
Unrealized gain on equity securities 16,800 14,100  
Equity method investments 1,500 $ 1,500  
Foreign currency gain (loss) to be reclassified during next 12 months 171    
Valuation, Market Approach      
Financial Instruments and Fair Value [Line Items]      
Fair value of non-marketable equity securities $ 14,100    
Cash flow hedges | Foreign exchange contracts      
Financial Instruments and Fair Value [Line Items]      
Foreign exchange option contracts, maximum maturities 24 months