Financial Instruments - Narrative (Details) - USD ($) $ in Millions |
3 Months Ended | ||
|---|---|---|---|
Mar. 31, 2024 |
Mar. 31, 2023 |
Dec. 31, 2023 |
|
| Financial Instruments and Fair Value [Line Items] | |||
| Non-marketable equity securities | $ 31,430 | $ 28,766 | |
| Gross realized gain on debt securities | 68 | $ 57 | |
| Gross realized losses on the sale of our marketable securities | 480 | $ 492 | |
| Equity method investments | 2,000 | $ 1,700 | |
| Foreign currency gain to be reclassified during next 12 months | $ 128 | ||
| Derivative Asset, Statement of Financial Position [Extensible Enumeration] | Other current assets | ||
| Derivative Liability, Statement of Financial Position [Extensible Enumeration] | Other long-term liabilities | ||
| 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] | |||
| Non-marketable equity securities | $ 13,600 | ||