Commitments and Contingencies - Additional Information (Details) - USD ($) $ in Millions |
6 Months Ended | |||
|---|---|---|---|---|
Aug. 08, 2018 |
May 04, 2018 |
Jun. 30, 2018 |
Dec. 31, 2017 |
|
| Other Commitments [Line Items] | ||||
| Letters of credit outstanding, amount | $ 11.9 | $ 16.4 | ||
| Purchase commitment | $ 220.0 | |||
| Letter of Credit | Minimum | ||||
| Other Commitments [Line Items] | ||||
| Letter of credit, fee percentage | 2.50% | |||
| Letter of Credit | Maximum | ||||
| Other Commitments [Line Items] | ||||
| Letter of credit, fee percentage | 3.25% | |||
| Settled litigation | Cohen, et al. v. Sunrun Inc., et al. | ||||
| Other Commitments [Line Items] | ||||
| Settlement amount | $ 32.0 | |||
| Settlement amount, funded by insurers | 30.1 | |||
| Settlement amount, accrual | $ 1.9 | |||
| Subsequent event | Settled litigation | Fink, et al. v. Sunrun Inc., et al. | ||||
| Other Commitments [Line Items] | ||||
| Settlement amount | $ 2.5 |