v3.24.0.1
Financial Instruments - Narrative (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2023
Dec. 31, 2022
Dec. 31, 2021
Financial Instruments and Fair Value [Line Items]      
Fair value of non-marketable equity securities $ 28,766 $ 28,529  
Gross realized gain on debt securities 182 103 $ 432
Gross realized loss on debt securities 1,833 1,588 $ 329
Unrealized gain on equity securities 18,100 16,800  
Equity method investments 1,700 $ 1,500  
Foreign currency gain (loss) to be reclassified during next 12 months 47    
Level 2      
Financial Instruments and Fair Value [Line Items]      
Fair value of non-marketable equity securities $ 13,700    
Cash flow hedges | Foreign exchange contracts      
Financial Instruments and Fair Value [Line Items]      
Foreign exchange option contracts, maximum maturities 24 months