v3.10.0.1

Redeemable Noncontrolling Interests and Equity - Schedule of Changes in Redeemable Noncontrolling Interest,Total Stockholders' Equity and Noncontrolling Interests (Details) $ in Thousands | 6 Months Ended
--- | ---
Jun. 30, 2018 USD ($) fund | Jun. 30, 2017 USD ($)
Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward] |  |
Balance at beginning of period | $ 123,801 |
Balance at end of period | 129,929 |
Balance at beginning of period | 1,240,516 | $ 995,728
Cumulative effect of adoption of ASU 2016-16 and ASU 2016-09 |  | 2,996
Exercise of stock options | 8,068 | 529
Issuance of restricted stock units, net of tax withholdings | (4,878) | (2,099)
Shares issued in connection with the Employee Stock Purchase Plan | 1,755 | 1,145
Stock based compensation | 16,251 | 11,416
Contributions from noncontrolling interests and redeemable noncontrolling interests | 116,021 | 231,123
Distributions to noncontrolling interests and redeemable noncontrolling interests | (29,396) | (19,527)
Net income (loss) | (123,213) | (104,399)
Other comprehensive loss, net of taxes | 20,197 | (3,569)
Balance at end of period | $ 1,245,321 | 1,113,343
Number of funds, carrying value adjusted to redemption value | fund | 5 |
Redeemable Noncontrolling Interests |  |
Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward] |  |
Balance at beginning of period | $ 123,801 | 140,996
Contributions from redeemable noncontrolling interests | 51,447 | 75,169
Distributions to redeemable noncontrolling interests | (5,385) | (7,666)
Net income (loss) | (39,934) | (44,366)
Balance at end of period | 129,929 | 164,133
Total Stockholders' Equity |  |
Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward] |  |
Balance at beginning of period | 881,582 | 742,771
Cumulative effect of adoption of ASU 2016-16 and ASU 2016-09 |  | 2,996
Exercise of stock options | 8,068 | 529
Issuance of restricted stock units, net of tax withholdings | (4,878) | (2,099)
Shares issued in connection with the Employee Stock Purchase Plan | 1,755 | 1,145
Stock based compensation | 16,251 | 11,416
Net income (loss) | 35,441 | 28,228
Other comprehensive loss, net of taxes | 20,197 | (3,569)
Balance at end of period | 958,416 | 781,417
Noncontrolling Interests |  |
Stockholders' Equity Attributable to Noncontrolling Interest [Roll Forward] |  |
Balance at beginning of period | 358,934 | 252,957
Contributions from noncontrolling interests and redeemable noncontrolling interests | 116,021 | 231,123
Distributions to noncontrolling interests and redeemable noncontrolling interests | (29,396) | (19,527)
Net income (loss) | (158,654) | (132,627)
Balance at end of period | $ 286,905 | $ 331,926

X
- Definition Number of Funds, Carrying Value Adjusted to Redemption Value + References No definition available. + Details
Name: | run_NumberofFundsCarryingValueAdjustedtoRedemptionValue
Namespace Prefix: | run_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Redeemable noncontrolling interest decrease from distributions. + References No definition available. + Details
Name: | run_RedeemableNoncontrollingInterestDecreaseFromDistributions
Namespace Prefix: | run_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Redeemable noncontrolling interest increase from subsidiary equity issuance. + References No definition available. + Details
Name: | run_RedeemableNoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance
Namespace Prefix: | run_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Restricted stock value share issued net of tax withholdings. + References No definition available. + Details
Name: | run_RestrictedStockValueShareIssuedNetOfTaxWithholdings
Namespace Prefix: | run_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of increase to additional paid-in capital (APIC) from recognition of equity-based compensation. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 35 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=79507207&loc=d3e4534-113899 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=96867065&loc=d3e5047-113901 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 20 -Section 55 -Paragraph 12 -URI http://asc.fasb.org/extlink&oid=96864182&loc=d3e11149-113907 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 20 -Section 55 -Paragraph 13 -URI http://asc.fasb.org/extlink&oid=96864182&loc=d3e11178-113907 + Details
Name: | us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Decrease in noncontrolling interest balance from payment of dividends or other distributions by the non-wholly owned subsidiary or partially owned entity, included in the consolidation of the parent entity, to the noncontrolling interest holders. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 + Details
Name: | us-gaap_MinorityInterestDecreaseFromDistributionsToNoncontrollingInterestHolders
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition A roll forward is a reconciliation of a concept from the beginning of a period to the end of a period. + References No definition available. + Details
Name: | us-gaap_MovementInMinorityInterestRollForward
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of Net Income (Loss) attributable to redeemable noncontrolling interest. + 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.19) -URI http://asc.fasb.org/extlink&oid=63488584&loc=d3e20235-122688 + Details
Name: | us-gaap_NetIncomeLossAttributableToRedeemableNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount after income tax of income (loss) including the portion attributable to nonredeemable noncontrolling interest. Excludes the portion attributable to redeemable noncontrolling interest recognized as temporary equity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (a)(2) -URI http://asc.fasb.org/extlink&oid=84161450&loc=SL4573702-111684 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=84161450&loc=SL4573702-111684 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 480 -SubTopic 10 -Section S99 -Paragraph 3A -Subparagraph (3) -URI http://asc.fasb.org/extlink&oid=65877616&loc=SL6540498-122764 + Details
Name: | us-gaap_NetIncomeLossIncludingPortionAttributableToNonredeemableNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of increase in noncontrolling interest from subsidiary issuance of equity interests to noncontrolling interest holders. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=84161450&loc=SL4573702-111684 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 23 -URI http://asc.fasb.org/extlink&oid=96868048&loc=SL4569655-111683 + Details
Name: | us-gaap_NoncontrollingInterestIncreaseFromSubsidiaryEquityIssuance
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount after tax of other comprehensive income (loss) attributable to parent entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 50 -Paragraph 1A -Subparagraph (c)(3) -URI http://asc.fasb.org/extlink&oid=84161450&loc=SL4573702-111684 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 19 -URI http://asc.fasb.org/extlink&oid=96868048&loc=SL4569616-111683 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 20 -URI http://asc.fasb.org/extlink&oid=96868048&loc=SL4569643-111683 + Details
Name: | us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount after tax of reclassification adjustments of other comprehensive income (loss). + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 45 -Paragraph 14A -URI http://asc.fasb.org/extlink&oid=84228862&loc=SL7669686-108580 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 220 -SubTopic 10 -Section 55 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=84158357&loc=d3e1436-108581 + Details
Name: | us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodNetOfTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition As of the reporting date, the aggregate carrying amount of all noncontrolling interests which are redeemable by the (parent) entity (1) at a fixed or determinable price on a fixed or determinable date, (2) at the option of the holder of the noncontrolling interest, or (3) upon occurrence of an event that is not solely within the control of the (parent) entity. This item includes noncontrolling interest holder's ownership (or holders' ownership) regardless of the type of equity interest (common, preferred, other) including all potential organizational (legal) forms of the investee entity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 480 -SubTopic 10 -Section S99 -Paragraph 3A -Subparagraph (12)(c) -URI http://asc.fasb.org/extlink&oid=65877616&loc=SL6540498-122764 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 480 -SubTopic 10 -Section S99 -Paragraph 3A -Subparagraph (16)(c) -URI http://asc.fasb.org/extlink&oid=65877616&loc=SL6540498-122764 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 480 -SubTopic 10 -Section S99 -Paragraph 3A -Subparagraph 15 -URI http://asc.fasb.org/extlink&oid=65877616&loc=SL6540498-122764 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 480 -SubTopic 10 -Section S99 -Paragraph 3A -Subparagraph 14 -URI http://asc.fasb.org/extlink&oid=65877616&loc=SL6540498-122764 + Details
Name: | us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Aggregate change in value for stock issued during the period as a result of employee stock purchase plan. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 2: 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(28)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 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(29)) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 4: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 + Details
Name: | us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Value of stock issued as a result of the exercise of stock options. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=84159872&loc=d3e21463-112644 Reference 2: 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.29-31) -URI http://asc.fasb.org/extlink&oid=6877327&loc=d3e13212-122682 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI http://asc.fasb.org/extlink&oid=27012166&loc=d3e187085-122770 + Details
Name: | us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of stockholders' equity (deficit), net of receivables from officers, directors, owners, and affiliates of the entity, attributable to both the parent and noncontrolling interests. Amount excludes temporary equity. Alternate caption for the concept is permanent equity. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 55 -Paragraph 4I -URI http://asc.fasb.org/extlink&oid=84234705&loc=SL4590271-111686 Reference 2: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 16 -URI http://asc.fasb.org/extlink&oid=96868048&loc=SL4568740-111683 Reference 3: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 810 -SubTopic 10 -Section 45 -Paragraph 15 -URI http://asc.fasb.org/extlink&oid=96868048&loc=SL4568447-111683 + Details
Name: | us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=run_RedeemableNonControllingInterestsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_ParentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementEquityComponentsAxis=us-gaap_NoncontrollingInterestMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |