v3.10.0.1

Summary of Significant Accounting Policies - Deferred Revenue (Details) - USD ($) $ in Thousands | 3 Months Ended | 6 Months Ended |  |
--- | --- | --- | --- | ---
Jun. 30, 2018 | Jun. 30, 2017 | Jun. 30, 2018 | Jun. 30, 2017 | Dec. 31, 2017 | Dec. 31, 2016
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Power purchase or lease agreement term |  |  | 20 years |  |  |
Deferred revenue | $ 580,042 |  | $ 580,042 |  | $ 564,852 | $ 525,400
Deferred revenue, revenue recognized | 13,000 | $ 11,500 | 25,800 | $ 23,000 |  |
Contract with customer, liability | 4,400,000 |  | $ 4,400,000 |  |  |
Revenue expected to recognize over next twelve months, percent |  |  | 6.00% |  |  |
Revenue recognized, term |  |  | 20 years |  |  |
Revenue recognized, term, existing deferred revenue |  |  | 10 years |  |  |
Under Customer Agreements: |  |  |  |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Deferred revenue | 564,261 |  | $ 564,261 |  | 548,280 |
Under Customer Agreements: | Payments received |  |  |  |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Deferred revenue | 530,010 |  | 530,010 |  | 517,544 |
Under Customer Agreements: | Financing component balance |  |  |  |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Deferred revenue | 34,251 |  | 34,251 |  | 30,736 |
Under SREC contracts: |  |  |  |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Deferred revenue | 15,781 |  | 15,781 |  | 16,572 |
Under SREC contracts: | Payments received |  |  |  |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Deferred revenue | 13,916 |  | 13,916 |  | 14,805 |
Under SREC contracts: | Financing component balance |  |  |  |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |  |  |  |
Deferred revenue | $ 1,865 |  | $ 1,865 |  | $ 1,767 |

X
- Definition Contract With Customer, Revenue Expected to Recognize Over Next Twelve Months, Percent + References No definition available. + Details
Name: | run_ContractWithCustomerRevenueExpectedtoRecognizeOverNextTwelveMonthsPercent
Namespace Prefix: | run_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Revenue, Remaining Performance Obligation, Expected Timing of Satisfaction, Period, Prior + References No definition available. + Details
Name: | run_RevenueRemainingPerformanceObligationExpectedTimingofSatisfactionPeriodPrior
Namespace Prefix: | run_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of obligation to transfer good or service to customer for which consideration has been received or is receivable. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=82913815&loc=SL49130532-203044 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 8 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=82913847&loc=SL49130549-203045 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 45 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=82913815&loc=SL49130531-203044 + Details
Name: | us-gaap_ContractWithCustomerLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred revenue as of balance sheet date. Deferred revenue represents collections of cash or other assets related to a revenue producing activity for which revenue has not yet been recognized. Generally, an entity records deferred revenue when it receives consideration from a customer before achieving certain criteria that must be met for revenue to be recognized in conformity with GAAP. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 13.A.3) -URI http://asc.fasb.org/extlink&oid=65893310&loc=d3e214044-122780 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB Topic 13.A.4(a).Q1) -URI http://asc.fasb.org/extlink&oid=65893310&loc=d3e214044-122780 + Details
Name: | us-gaap_DeferredRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

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_DeferredRevenueArrangementLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of revenue recognized that was previously reported as deferred or unearned revenue. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 605 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 13.A.4(a).Q1 Response)) -URI http://asc.fasb.org/extlink&oid=65893310&loc=d3e214044-122780 + Details
Name: | us-gaap_DeferredRevenueRevenueRecognized1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Term of the lessor's leasing arrangement, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_LessorLeasingArrangementsOperatingLeasesTermOfContract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Period in which remaining performance obligation is expected to be recognized as revenue, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 606 -SubTopic 10 -Section 50 -Paragraph 13 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=82913847&loc=SL49130556-203045 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 270 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=84173487&loc=SL51747714-108306 + Details
Name: | us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_DeferredRevenueArrangementTypeAxis=run_PaymentsUnderCustomerAgreementsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | run_DeferredRevenueStatusAxis=run_PaymentsReceivedMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | run_DeferredRevenueStatusAxis=run_FinancingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DeferredRevenueArrangementTypeAxis=run_SRECContractsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |