Annual report pursuant to Section 13 and 15(d)

Cover Page

Cover Page - USD ($)
$ in Billions
12 Months Ended
Dec. 31, 2022
Feb. 17, 2023
Jun. 30, 2022
Cover [Abstract]      
Document Type 10-K    
Document Annual Report true    
Document Period End Date Dec. 31, 2022    
Current Fiscal Year End Date --12-31    
Document Transition Report false    
Entity File Number 001-37511    
Entity Registrant Name Sunrun Inc.    
Entity Incorporation, State or Country Code DE    
Entity Tax Identification Number 26-2841711    
Entity Address, Address Line One 225 Bush Street    
Entity Address, Address Line Two Suite 1400    
Entity Address, City or Town San Francisco    
Entity Address, State or Province CA    
Entity Address, Postal Zip Code 94104    
City Area Code 415    
Local Phone Number 580-6900    
Title of 12(b) Security Common Stock, $0.0001 par value per share    
Trading Symbol RUN    
Security Exchange Name NASDAQ    
Entity Well-known Seasoned Issuer Yes    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Interactive Data Current Yes    
Entity Filer Category Large Accelerated Filer    
Entity Small Business false    
Entity Emerging Growth Company false    
ICFR Auditor Attestation Flag true    
Entity Shell Company false    
Entity Public Float     $ 4.8
Entity Common Stock, Shares Outstanding   214,416,497  
Documents Incorporated by Reference Portions of the information called for by Part III of this Form 10-K is hereby incorporated by reference from the definitive Proxy Statements for our annual meeting of stockholders, which will be filed with the Securities and Exchange Commission not later than 120 days after December 31, 2022.    
Amendment Flag false    
Document Fiscal Year Focus 2022    
Document Fiscal Period Focus FY    
Entity Central Index Key 0001469367