v3.22.2.2
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Millions
9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Cash Flows from Operating Activities    
Net income $ 8,880 $ 3,301
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation, amortization and impairment 2,758 2,063
Stock-based compensation 1,141 1,563
Inventory and purchase commitments write-downs 118 128
Foreign currency transaction net unrealized loss 1 8
Non-cash interest and other operating activities 159 213
Digital assets loss (gain), net 106 (27)
Changes in operating assets and liabilities:    
Accounts receivable (426) (148)
Inventory (4,492) (1,175)
Operating lease vehicles (1,136) (1,526)
Prepaid expenses and other current assets (865) (287)
Other non-current assets (1,580) (744)
Accounts payable and accrued liabilities 4,659 2,764
Deferred revenue 856 452
Customer deposits 251 80
Other long-term liabilities 1,016 247
Net cash provided by operating activities 11,446 6,912
Cash Flows from Investing Activities    
Purchases of property and equipment excluding finance leases, net of sales (5,300) (4,672)
Purchases of solar energy systems, net of sales (5) (28)
Purchases of digital assets 0 (1,500)
Proceeds from sales of digital assets 936 272
Purchase of intangible assets (9) 0
Purchases of marketable securities (1,467) (30)
Proceeds from maturities of marketable securities 3 0
Receipt of government grants 0 6
Net cash used in investing activities (5,842) (5,952)
Cash Flows from Financing Activities    
Proceeds from issuances of convertible and other debt 0 7,633
Repayments of convertible and other debt (3,000) (11,589)
Collateralized lease repayments 0 (9)
Proceeds from exercises of stock options and other stock issuances 474 445
Principal payments on finance leases (369) (311)
Debt issuance costs 0 (9)
Proceeds from investments by noncontrolling interests in subsidiaries 0 2
Distributions paid to noncontrolling interests in subsidiaries (118) (108)
Payments for buy-outs of noncontrolling interests in subsidiaries (19) 0
Net cash used in financing activities (3,032) (3,946)
Effect of exchange rate changes on cash and cash equivalents and restricted cash (567) (221)
Net decrease in cash and cash equivalents and restricted cash 2,005 (3,207)
Cash and cash equivalents and restricted cash, beginning of period 18,144 19,901
Cash and cash equivalents and restricted cash, end of period 20,149 16,694
Supplemental Non-Cash Investing and Financing Activities    
Acquisitions of property and equipment included in liabilities 1,877 2,040
Leased assets obtained in exchange for finance lease liabilities 36 355
Leased assets obtained in exchange for operating lease liabilities $ 691 $ 670