Annual report pursuant to Section 13 and 15(d)

Stock-Based Compensation - Additional Information (Details)

v3.20.4
Stock-Based Compensation - Additional Information (Details)
1 Months Ended 12 Months Ended
Jan. 01, 2018
Jul. 31, 2019
shares
Jul. 31, 2015
shares
Mar. 31, 2015
shares
Sep. 30, 2014
Dec. 31, 2020
USD ($)
grantee
purchase_period
$ / shares
shares
Dec. 31, 2019
USD ($)
$ / shares
shares
Dec. 31, 2018
USD ($)
$ / shares
Dec. 31, 2014
shares
Dec. 31, 2017
shares
Aug. 31, 2014
shares
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)           47,311,000 36,077,000        
Unvested options exercisable (in shares)           0 0        
Weighted-average grant-date fair value of stock options granted (in usd per share) | $ / shares           $ 9.33 $ 8.27 $ 4.21      
Total intrinsic value of options exercised | $           $ 251,700,000 $ 37,800,000 $ 21,400,000      
Total fair value of options vested | $           104,800,000 9,500,000 8,800,000      
Compensation expense recognized | $           170,587,000 26,306,000 27,856,000      
Total unrecognized compensation cost | $           $ 280,100,000 30,000,000.0        
Weighted-average period of recognition           1 year 6 months          
Share-based compensation expense due to accelerated vesting | $           $ 30,800,000          
Number of grantees | grantee           21          
Annual contribution limit | $           $ 19,500          
Defined contribution expense | $           $ 9,600,000 $ 8,500,000        
Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)           7,103,000 3,943,000        
Stock option plan, number of shares granted (in shares)           5,295,000 2,258,000   947,342    
Performance-based Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Compensation expense recognized | $               $ 3,500,000      
2013 Equity Incentive Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Additional common stock shares reserved for issuance (in shares)       3,000,000              
Common stock reserved for issuance (in shares)       4,500,000              
Award vesting period       4 years              
2013 Equity Incentive Plan | Maximum                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)       8,044,829              
Stock options granted, expiration period       10 years              
2013 Equity Incentive Plan | Tranche One                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period       1 year              
Vesting award percentage       25.00%              
2013 Equity Incentive Plan | Tranche Two                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period       3 years              
Vesting award percentage       75.00%              
2014 Equity Incentive Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)     1,197,342               947,342
2014 Equity Incentive Plan | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Stock option plan, number of shares granted (in shares)     1,197,342                
Vivint Solar 2014 Equity Incentive Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock available for grant (in shares)           8,900,000          
2013 Omnibus Incentive Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Stock options granted, expiration period         10 years            
Long-term Incentive Plan 2013                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock available for grant (in shares)           0          
Long-term Incentive Plan 2013 | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Shares awarded (in shares)   1,500,000                  
Long-term Incentive Plan 2013 | Tranche One | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period           30 days          
Vesting award percentage           33.33%          
Long-term Incentive Plan 2013 | Tranche Two | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period           9 months          
Vesting award percentage           33.33%          
Long-term Incentive Plan 2013 | Tranche Three | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period           18 months          
Vesting award percentage           33.33%          
2015 Equity Incentive Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)     11,400,000     15,033,000 14,828,000        
Award vesting period     4 years                
Minimum annual automatic increase included in common stock reserved for future issuance as of first day of each fiscal year (in shares)     10,000,000                
Minimum percentage of annual automatic increase included in common stock reserved for future issuance as of last day of immediately preceding fiscal year     4.00%                
Additional common stock shares reserved for issuance (in shares)           4,738,048 4,525,946        
2015 Equity Incentive Plan | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period     4 years                
Outstanding RSUs (in shares)                   350,000  
2015 Equity Incentive Plan | Maximum                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)     15,439,334                
Stock options granted, expiration period     10 years                
2015 Equity Incentive Plan | Tranche One                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period     1 year                
Vesting award percentage     25.00%                
2015 Equity Incentive Plan | Tranche One | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period     1 year                
Vesting award percentage     25.00%                
2015 Equity Incentive Plan | Tranche Two                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period     3 years                
Vesting award percentage     75.00%                
2015 Equity Incentive Plan | Tranche Three | Restricted Stock Units (RSUs)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Award vesting period     3 years                
Vesting award percentage     75.00%                
Employee Stock Purchase Plan                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Common stock reserved for issuance (in shares)           1,000,000          
Minimum percentage of annual automatic increase included in common stock reserved for future issuance as of last day of immediately preceding fiscal year           2.00%          
Additional common stock shares reserved for issuance (in shares)           2,369,024 2,262,973        
Offering period           24 months          
Number of purchase periods | purchase_period           4          
Purchase period           6 months          
Maximum percentage in payroll deductions to acquire shares of common stock           15.00%          
Maximum deductible fair market value of shares available for employee to purchase per calendar year | $           $ 25,000          
Maximum number of shares available for employee to purchase per offering period (in shares)           10,000          
Maximum annual shares reserved for issuance (in shares)           5,000,000          
Vivint Solar 401 (k)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Employer matching contribution, percentage           33.00%          
Percent of pay matched           6.00%          
First threshold | Sunrun 401 (k)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Employer matching contribution, percentage 100.00%                    
Percent of pay matched 1.00%                    
Second threshold | Sunrun 401 (k)                      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]                      
Employer matching contribution, percentage 50.00%                    
Percent of pay matched 5.00%