Annual report pursuant to Section 13 and 15(d)

Stock-Based Compensation - Additional Information (Details)

v3.22.4
Stock-Based Compensation - Additional Information (Details)
1 Months Ended 12 Months Ended
Jul. 31, 2015
shares
Mar. 31, 2015
shares
Jul. 31, 2013
planPool
tranche
shares
Dec. 31, 2022
USD ($)
purchase_period
grantee
$ / shares
shares
Dec. 31, 2021
USD ($)
$ / shares
shares
Dec. 31, 2020
USD ($)
$ / shares
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Common stock reserved for issuance (in shares)       49,898,000 55,467,000  
Weighted-average grant-date fair value of stock options granted (in usd per share) | $ / shares       $ 17.21 $ 27.72 $ 9.33
Total intrinsic value of options exercised | $       $ 30,800,000 $ 106,100,000 $ 251,700,000
Total fair value of options vested | $       $ 16,700,000 $ 36,400,000 104,800,000
Warrants issued (in shares)       846,943    
Number of warrants exercised (in shares)       346,269 69,309  
Compensation expense recognized | $       $ 110,633,000 $ 211,000,000 170,587,000
Stock-based compensation expense capitalized | $       12,400,000 10,900,000  
Total unrecognized compensation cost | $       $ 142,300,000 175,800,000  
Weighted-average period of recognition       2 years 8 months 12 days    
Share-based compensation expense due to accelerated vesting | $       $ 4,600,000    
Number of grantees | grantee       30    
Annual contribution limit | $       $ 19,500    
Defined contribution expense | $       $ 21,500,000 $ 14,700,000 $ 9,600,000
Restricted Stock Units (RSUs)            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Common stock reserved for issuance (in shares)       4,542,000 4,485,000  
Outstanding stock options            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Common stock reserved for issuance (in shares)       5,217,000 6,257,000  
Warrants            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Warrant, exercise price (in dollars per share) | $ / shares       $ 0.01    
Compensation expense recognized | $       $ 10,700,000 $ 4,300,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 | 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%        
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        
Sunrun - VSI 2014 Equity Incentive Plan            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Common stock available for grant (in shares)       9,500,000    
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]            
Number of long-term incentive plan pools | planPool     6      
Shares awarded (in shares)     1,500,000      
Number of tranches | tranche     3      
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          
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)       0 8,056,251  
2015 Equity Incentive Plan | Restricted Stock Units (RSUs)            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Award vesting period 4 years          
2015 Equity Incentive Plan | Outstanding stock options            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Award vesting period 4 years          
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 One | Outstanding stock options            
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 | Outstanding stock options            
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%          
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          
2015 Equity Incentive Plan | Maximum | Outstanding stock options            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Stock options granted, expiration period 10 years          
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)       0 4,028,125  
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    
Sunrun 401 (k) | First threshold            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Employer matching contribution, percentage       100.00%    
Percent of pay matched       1.00%    
Sunrun 401 (k) | Second threshold            
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]            
Employer matching contribution, percentage       50.00%    
Percent of pay matched       5.00%    
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%