v3.10.0.1

Summary of Significant Accounting Policies - Schedule of Revenues from External Customers (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended
--- | --- | ---
Jun. 30, 2018 | Jun. 30, 2017 | Jun. 30, 2018 | Jun. 30, 2017
Revenue, Major Customer [Line Items] |  |  |  |
Customer agreements | $ 66,658 | $ 51,220 | $ 128,307 | $ 97,545
Incentives | 24,947 | 6,891 | 30,288 | 9,656
Customer agreements and incentives | 91,605 | 58,111 | 158,595 | 107,201
Solar energy systems and product sales | 78,933 | 72,511 | 156,306 | 128,530
Total revenue | 170,538 | 130,622 | 314,901 | 235,731
Solar energy systems |  |  |  |
Revenue, Major Customer [Line Items] |  |  |  |
Solar energy systems and product sales | 40,734 | 28,079 | 74,732 | 48,698
Products |  |  |  |
Revenue, Major Customer [Line Items] |  |  |  |
Solar energy systems and product sales | $ 38,199 | $ 44,432 | $ 81,574 | $ 79,832

X
- Definition Government tax rebates and other incentives. + References No definition available. + Details
Name: | run_GovernmentTaxRebatesAndOtherIncentives
Namespace Prefix: | run_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_EntityWideRevenueMajorCustomerLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The total amount of revenue recognized for the period from operating leases, including minimum lease revenue, contingent revenue, percentage revenue and sublease revenue. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 25 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=77902458&loc=d3e39896-112707 + Details
Name: | us-gaap_OperatingLeasesIncomeStatementLeaseRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition The total amount of lease revenue recognized for the period for which the lessee was obligated under leasing arrangements regardless of any other events or conditions. This amount excludes contingent revenue and sublease revenue. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 840 -SubTopic 20 -Section 25 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=77902458&loc=d3e39896-112707 + Details
Name: | us-gaap_OperatingLeasesIncomeStatementMinimumLeaseRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of revenue recognized from goods sold, services rendered, insurance premiums, or other activities that constitute an earning process. Includes, but is not limited to, investment and interest income before deduction of interest expense when recognized as a component of revenue, and sales and trading gain (loss). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_Revenues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Aggregate revenue during the period from the sale of goods in the normal course of business, after deducting returns, allowances and discounts. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 225 -SubTopic 10 -Section S99 -Paragraph 2 -Subparagraph (SX 210.5-03.1(a)) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_SalesRevenueGoodsNet
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_ProductOrServiceAxis=run_SolarEnergySystemsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ProductOrServiceAxis=run_ProductsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |