v3.10.0.1

Indebtedness - Additional Information (Details) - USD ($) | 6 Months Ended |
--- | --- | ---
Jun. 30, 2018 | Dec. 31, 2017
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 1,497,609,000 | $ 1,294,945,000
Recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | 247,000,000 | 247,000,000
Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | 1,250,609,000 | 1,047,945,000
Non-recourse debt | Aggregation facility, March 2023 |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | 313,800,000 |
Non-recourse debt | Aggregation facility, December 2021 |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | 195,400,000 |
Non-recourse debt | Line of credit | Aggregation facility, March 2023 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | 595,000,000 |
Non-recourse debt | Line of credit | Aggregation facility, December 2021 |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 161,600,000 |
Non-recourse debt | London Interbank Offered Rate (LIBOR) | Line of credit | Aggregation facility, March 2023 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.50% |
Facility available period | 3 years |
Debt instrument basis spread on variable rate, periodic increase | 2.75% |
Revolving line of credit facility available period, period increase | 2 years |
Bank line of credit | Recourse debt |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | $ 250,000,000 |
Minimum unencumbered liquid assets to be maintained | $ 30,000,000 |
Interest coverage ratio | 300.00% |
Loan outstanding balance | $ 247,000,000 | 247,000,000
Bank line of credit | Recourse debt | London Interbank Offered Rate (LIBOR) |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 3.25% |
Bank line of credit | Recourse debt | Base Rate |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.25% |
Bank line of credit | Recourse debt | Federal Funds Rate |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 0.50% |
Bank line of credit | Recourse debt | LIBOR Floor Rate |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 1.00% |
Term Loan | Non-recourse debt | Minimum | Aggregation facility, March 2023 |  |
Debt Instrument [Line Items] |  |
Term loan prepayment penalty, percent | 0.00% |
Term Loan | Non-recourse debt | Maximum | Aggregation facility, March 2023 |  |
Debt Instrument [Line Items] |  |
Term loan prepayment penalty, percent | 1.00% |
Term Loan | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, March 2023 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 5.00% |
Facility available period | 3 years |
Debt instrument basis spread on variable rate, periodic increase | 6.50% |
Term Loan Due in October 2024 | Non-recourse debt | Senior secured revolving letter of credit facility | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | $ 303,000,000 |
Loan outstanding balance | 286,700,000 |
Term Loan Due in October 2024 | Non-recourse debt | Revolving debt | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | 10,000,000 |
Term Loan Due in October 2024 | Non-recourse debt | Term Loan | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | $ 293,000,000 |
Term Loan A | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.75% |
Term Loan A | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, December 2021 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.75% |
Debt instrument basis spread on variable rate, periodic increase | 3.00% |
Term Loan A | Non-recourse debt | Base Rate | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 1.75% |
Term Loan B | Non-recourse debt | Minimum | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Term loan prepayment penalty, percent | 0.00% |
Term Loan B | Non-recourse debt | Maximum | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Term loan prepayment penalty, percent | 5.00% |
Term Loan B | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, December 2021 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 5.00% |
Term Loan B, Class A | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 7.03% |
Term Loan B, Class B | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 5.00% |
Basis spread on Federal Funds Rate | 1.00% |
Term Loan B, Class B | Non-recourse debt | Base Rate | Aggregation facility, October 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 4.00% |
Basis spread on Federal Funds Rate | 0.50% |
Term Loan Due in April 2024 | Non-recourse debt | Senior secured revolving letter of credit facility | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | $ 202,000,000 |
Loan outstanding balance | 188,100,000 |
Term Loan Due in April 2024 | Non-recourse debt | Delayed draw term loan | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | 195,000,000 |
Term Loan Due in April 2024 | Non-recourse debt | Revolving debt | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Line of credit, maximum borrowing capacity | $ 7,000,000 |
Term Loan Due in April 2024 | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.25% |
Facility available period | 4 years |
Term Loan Due in April 2024 | Non-recourse debt | Base Rate | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 1.25% |
Term Loan Due in April 2024 | Non-recourse debt | Federal Funds Rate | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 0.50% |
Term Loan Due in April 2024 | Non-recourse debt | LIBOR Floor Rate | Aggregation facility, April 2024 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 1.00% |
Senior debt | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 1,003,688,000 | 808,455,000
Senior debt | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Revolving loan facility, September 2020 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.75% |
Bank term loan due September 2020 | Non-recourse debt | Revolving loan facility, September 2020 |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 154,400,000 |
Subordinated debt | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 153,674,000 | 111,488,000
Subordinated debt | Non-recourse debt | London Interbank Offered Rate (LIBOR) | Revolving loan facility, September 2020 |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 5.50% |
Banke Term Loan Due April 2022 | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 22,900,000 |
Bank term loans due September 2022, Tranche One | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 3.00% |
Loan outstanding balance | $ 11,600,000 |
Bank term loans due September 2022, Tranche Two | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Basis spread on variable rate | 2.25% |
Loan outstanding balance | $ 18,300,000 |
Securitization loans |  |
Debt Instrument [Line Items] |  |
Secured borrowings assets carrying amount | 168,500,000 | 172,800,000
Securitization loans | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance | $ 93,200,000 |
SREC Loans | Non-recourse debt |  |
Debt Instrument [Line Items] |  |
Loan outstanding balance |  | $ 32,181,000

X
- Definition Debt Instrument Basis Spread On Variable Rate Periodic Increase + References No definition available. + Details
Name: | run_DebtInstrumentBasisSpreadOnVariableRatePeriodicIncrease
Namespace Prefix: | run_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Debt Instrument, Basis Spread on Variable Rate, Federal Funds Rate + References No definition available. + Details
Name: | run_DebtInstrumentBasisSpreadonVariableRateFederalFundsRate
Namespace Prefix: | run_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Interest coverage ratio. + References No definition available. + Details
Name: | run_InterestCoverageRatio
Namespace Prefix: | run_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Minimum unencumbered liquid assets. + References No definition available. + Details
Name: | run_MinimumUnencumberedLiquidAssets
Namespace Prefix: | run_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Revolving line of credit facility available period increase. + References No definition available. + Details
Name: | run_RevolvingLineOfCreditFacilityAvailablePeriodIncrease
Namespace Prefix: | run_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Revolving Line Of Credit Facility Available Period, Period Increase + References No definition available. + Details
Name: | run_RevolvingLineOfCreditFacilityAvailablePeriodPeriodIncrease
Namespace Prefix: | run_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term Loan Prepayment Penalty Percent + References No definition available. + Details
Name: | run_TermLoanPrepaymentPenaltyPercent
Namespace Prefix: | run_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Percentage points added to the reference rate to compute the variable rate on the debt instrument. + References No definition available. + Details
Name: | us-gaap_DebtInstrumentBasisSpreadOnVariableRate1
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
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_DebtInstrumentLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Maximum borrowing capacity under the credit facility without consideration of any current restrictions on the amount that could be borrowed or the amounts currently outstanding under the facility. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02.19(b),22(b)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(16)) -URI http://asc.fasb.org/extlink&oid=6879938&loc=d3e572229-122910 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(16)) -URI http://asc.fasb.org/extlink&oid=6876686&loc=d3e534808-122878 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(22)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 + Details
Name: | us-gaap_LongTermDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Carrying amount of financial assets accounted for as secured borrowings recognized in the transferor's statement of financial position at the end of each period presented. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 860 -SubTopic 30 -Section 50 -Paragraph 1A -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=64858031&loc=SL6224234-111729 + Details
Name: | us-gaap_TransfersAccountedForAsSecuredBorrowingsAssetsCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=run_RecourseDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LongtermDebtTypeAxis=run_NonRecourseDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=run_AggregationFacilityMarch2023Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=run_AggregationFacilityDecember2021Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_LondonInterbankOfferedRateLIBORMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_BankLineOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_BaseRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=us-gaap_FederalFundsEffectiveSwapRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_VariableRateAxis=run_LiborFloorRateMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_RangeAxis=us-gaap_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanDueinOctober2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=run_SeniorSecuredRevolvingLetterOfCreditFacilityMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=run_AggregationFacilityOctober2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=us-gaap_LetterOfCreditMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=run_TermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanBClassAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanBClassBMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_TermLoanDueinApril2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=run_AggregationFacilityApril2024Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_CreditFacilityAxis=run_DelayedDrawTermLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_SeniorDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_LineOfCreditFacilityAxis=run_RevolvingLoanFacilitySeptember2020Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_BankLoanDueSeptember2020Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=us-gaap_SubordinatedDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_BankTermLoanDueAprilTwentyTwentyTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_BankTermLoanDueSeptemberTwentyTwentyTwoTrancheOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_BankTermLoanDueSeptemberTwentyTwentyTwoTrancheTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_SecuritizationDebtMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=run_SRECLoansMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |