v3.22.0.1
Financial Instruments (Narrative) (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Financial Instruments and Fair Value [Line Items]      
Fair value of debt securities with fair value option elected $ 4,700 $ 2,000  
Gross realized gains on the sale of our marketable securities 432 899 $ 292
Gross realized losses on the sale of our marketable securities 329 184 $ 143
Fair value of non-marketable equity securities 27,571 18,893  
Equity method investments 1,500 1,400  
Foreign currency gain (loss) to be reclassified during next 12 months 518    
Debt Securities      
Financial Instruments and Fair Value [Line Items]      
Net gain on debt securities with fair value option elected $ (35) $ 87  
Cash flow hedges | Foreign exchange contracts      
Financial Instruments and Fair Value [Line Items]      
Foreign exchange option contracts, maximum maturities 24 months    
Valuation, Market Approach      
Financial Instruments and Fair Value [Line Items]      
Fair value of non-marketable equity securities $ 18,600    
Unrealized gain on equity securities $ 9,800