Income Taxes - Summary of Activity Related to Gross Unrecognized Tax Benefits (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Beginning Balance | $ 7,055 | $ 5,158 | $ 3,837 |
| Increases related to prior year tax positions | 740 | 253 | 529 |
| Decreases related to prior year tax positions | (682) | (437) | (263) |
| Decreases related to settlement with tax authorities | (21) | (140) | (329) |
| Increases related to current year tax positions | 2,346 | 2,221 | 1,384 |
| Ending Balance | $ 9,438 | $ 7,055 | $ 5,158 |