v3.6.0.2
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2016
Dec. 31, 2015
Dec. 31, 2014
Cash Flows From Operating Activities      
Net loss $ (773,046) $ (888,663) $ (294,040)
Adjustments to reconcile net loss to net cash used in operating activities:      
Depreciation and amortization 947,099 422,590 231,931
Stock-based compensation 334,225 197,999 156,496
Amortization of discount on convertible debt 87,286 72,063 69,734
Inventory write-downs 65,520 44,940 15,609
Loss on disposal of property and equipment 34,633 37,723 14,178
Foreign currency transaction (gain) loss (29,183) 55,765 (1,891)
Gain on the acquisition of SolarCity (88,727)    
Non-cash interest and other operating activities (7,775) 26,373 7,471
Changes in operating assets and liabilities, net of effect of business combinations      
Accounts receivable (216,565) 46,267 (183,658)
Inventories and operating lease vehicles (2,465,703) (1,573,860) (1,050,264)
Prepaid expenses and other current assets 56,806 (29,595) (60,637)
MyPower notes receivable 3,468    
Other assets (52,821) (24,362) (4,493)
Accounts payable and accrued liabilities 750,640 263,345 414,856
Deferred revenue 382,962 322,203 209,681
Customer deposits 388,361 36,721 106,230
Resale value guarantee 326,934 442,295 249,492
Other long-term liabilities 132,057 23,697 61,968
Net cash used in operating activities (123,829) (524,499) (57,337)
Cash Flows From Investing Activities      
Purchases of property and equipment excluding capital leases, net of sales (1,280,802) (1,634,850) (969,885)
Purchase of solar energy system, leased to be leased (159,669)    
Purchases of short-term investments and marketable securities     (205,841)
Maturities of short-term marketable securities 16,667   189,131
Increase in other restricted cash (206,149) (26,441) (3,849)
Cash acquired through (used in) business combinations 213,523 (12,260)  
Net cash used in investing activities (1,416,430) (1,673,551) (990,444)
Cash Flows From Financing Activities      
Proceeds from issuance of common stock in public offering 1,701,734 730,000  
Proceeds from issuance of convertible and other debt 2,852,964 318,972 2,300,000
Repayments of convertible and other debt (1,857,594)    
Collateralized lease borrowing 769,709 568,745 3,271
Proceeds from exercise of stock options and other stock issuances 163,817 106,611 100,455
Principal payments on capital leases (46,889) (203,780) (11,179)
Common stock and debt issuance costs (20,042) (17,025) (35,149)
Proceeds from issuance of warrants     389,160
Proceeds from issuance of common stock in private placement   20,000  
Purchase of convertible note hedges     (603,428)
Proceeds from investment by noncontrolling interests in subsidiaries 201,527    
Distributions paid to noncontrolling interests in subsidiaries (21,250)    
Net cash provided by financing activities 3,743,976 1,523,523 2,143,130
Effect of exchange rate changes on cash and cash equivalents (7,409) (34,278) (35,525)
Net increase (decrease) in cash and cash equivalents 2,196,308 (708,805) 1,059,824
Cash and cash equivalents at beginning of year 1,196,908 1,905,713 845,889
Cash and cash equivalents at end of year 3,393,216 1,196,908 1,905,713
Supplemental noncash investing activities      
Shares issued in connection of business combination and assumed vested awards 2,145,977    
Acquisition of property and equipment included in accounts payable and accrued liabilities 663,771 267,334 254,393
Estimated fair value of facilities under build-to-suit lease 307,879 174,749 50,076
Supplemental Disclosures      
Cash paid during the period for interest 38,693 32,060 20,539
Cash paid during the period for taxes, net of refunds $ 16,385 $ 9,461 $ 3,120