v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Operating activities      
Net income $ 76,033 $ 40,269 $ 34,343
Adjustments:      
Depreciation and impairment of property and equipment 11,555 12,905 10,856
Amortization and impairment of intangible assets 886 792 925
Stock-based compensation expense 15,376 12,991 10,794
Deferred income taxes 1,808 1,390 173
Gain on debt and equity securities, net (12,270) (6,317) (2,798)
Other (213) 1,267 (592)
Changes in assets and liabilities, net of effects of acquisitions:      
Accounts receivable (9,095) (6,524) (4,340)
Income taxes, net (625) 1,209 (3,128)
Other assets (1,846) (1,330) (621)
Accounts payable 283 694 428
Accrued expenses and other liabilities 7,304 5,504 7,170
Accrued revenue share 1,682 1,639 1,273
Deferred revenue 774 635 37
Net cash provided by operating activities 91,652 65,124 54,520
Investing activities      
Purchases of property and equipment (24,640) (22,281) (23,548)
Purchases of marketable securities (135,196) (136,576) (100,315)
Maturities and sales of marketable securities 128,294 132,906 97,825
Purchases of non-marketable securities (2,838) (7,175) (1,932)
Maturities and sales of non-marketable securities 934 1,023 405
Acquisitions, net of cash acquired, and purchases of intangible assets (2,618) (738) (2,515)
Other investing activities 541 68 589
Net cash used in investing activities (35,523) (32,773) (29,491)
Financing activities      
Net payments related to stock-based award activities (10,162) (5,720) (4,765)
Repurchases of common and capital stock (50,274) (31,149) (18,396)
Proceeds from issuance of debt, net of costs 20,199 11,761 317
Repayments of debt (21,435) (2,100) (585)
Proceeds from sale of interest in consolidated entities, net 310 2,800 220
Net cash used in financing activities (61,362) (24,408) (23,209)
Effect of exchange rate changes on cash and cash equivalents (287) 24 (23)
Net increase (decrease) in cash and cash equivalents (5,520) 7,967 1,797
Cash and cash equivalents at beginning of period 26,465 18,498 16,701
Cash and cash equivalents at end of period 20,945 26,465 18,498
Supplemental disclosures of cash flow information      
Cash paid for income taxes, net of refunds $ 13,412 $ 4,990 $ 8,203