<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.sunrun.com/role/AccruedExpensesAndOtherLiabilities" xlink:href="run-20181231.xsd#AccruedExpensesAndOtherLiabilities" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesDetails" xlink:href="run-20181231.xsd#AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/AccruedExpensesAndOtherLiabilitiesTables" xlink:href="run-20181231.xsd#AccruedExpensesAndOtherLiabilitiesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/Acquisitions" xlink:href="run-20181231.xsd#Acquisitions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/AcquisitionsAdditionalInformationDetails" xlink:href="run-20181231.xsd#AcquisitionsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CashEquityFinancing" xlink:href="run-20181231.xsd#CashEquityFinancing" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CommitmentsAndContingencies" xlink:href="run-20181231.xsd#CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CommitmentsAndContingenciesAdditionalInformationDetails" xlink:href="run-20181231.xsd#CommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CommitmentsAndContingenciesComponentsOfLeaseExpenseDetails" xlink:href="run-20181231.xsd#CommitmentsAndContingenciesComponentsOfLeaseExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails" xlink:href="run-20181231.xsd#CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CommitmentsAndContingenciesOtherInformationRelatedToLeasesDetails" xlink:href="run-20181231.xsd#CommitmentsAndContingenciesOtherInformationRelatedToLeasesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/CommitmentsAndContingenciesTables" xlink:href="run-20181231.xsd#CommitmentsAndContingenciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedBalanceSheets" xlink:href="run-20181231.xsd#ConsolidatedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:href="run-20181231.xsd#ConsolidatedBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsOfCashFlows" xlink:href="run-20181231.xsd#ConsolidatedStatementsOfCashFlows" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:href="run-20181231.xsd#ConsolidatedStatementsOfComprehensiveIncome" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsOfOperations" xlink:href="run-20181231.xsd#ConsolidatedStatementsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsOfRedeemableNoncontrollingInterestsAndStockholdersEquity" xlink:href="run-20181231.xsd#ConsolidatedStatementsOfRedeemableNoncontrollingInterestsAndStockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/Derivatives" xlink:href="run-20181231.xsd#Derivatives" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/DerivativesAccumlatedOtherComprehensiveIncomeLossDetails" xlink:href="run-20181231.xsd#DerivativesAccumlatedOtherComprehensiveIncomeLossDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/DerivativesAdditionalInformationDetails" xlink:href="run-20181231.xsd#DerivativesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/DerivativesOffsettingArrangementsLossDetails" xlink:href="run-20181231.xsd#DerivativesOffsettingArrangementsLossDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/DerivativesSummaryOfDesignatedDerivativeInstrumentsClassifiedAsDerivativeAssetsDetails" xlink:href="run-20181231.xsd#DerivativesSummaryOfDesignatedDerivativeInstrumentsClassifiedAsDerivativeAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/DerivativesTables" xlink:href="run-20181231.xsd#DerivativesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/DocumentAndEntityInformation" xlink:href="run-20181231.xsd#DocumentAndEntityInformation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/FairValueMeasurement" xlink:href="run-20181231.xsd#FairValueMeasurement" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/FairValueMeasurementScheduleOfCarryingValuesAndFairValuesOfDebtInstrumentsDetails" xlink:href="run-20181231.xsd#FairValueMeasurementScheduleOfCarryingValuesAndFairValuesOfDebtInstrumentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/FairValueMeasurementScheduleOfFairValueFinancialInstrumentsMeasuredOnRecurringBasisDetails" xlink:href="run-20181231.xsd#FairValueMeasurementScheduleOfFairValueFinancialInstrumentsMeasuredOnRecurringBasisDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/FairValueMeasurementTables" xlink:href="run-20181231.xsd#FairValueMeasurementTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNet" xlink:href="run-20181231.xsd#GoodwillAndIntangibleAssetsNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetAdditionalInformationDetails" xlink:href="run-20181231.xsd#GoodwillAndIntangibleAssetsNetAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationOfIntangibleAssetsDetails" xlink:href="run-20181231.xsd#GoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationOfIntangibleAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetSummaryOfIntangibleAssetsNetDetails" xlink:href="run-20181231.xsd#GoodwillAndIntangibleAssetsNetSummaryOfIntangibleAssetsNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetTables" xlink:href="run-20181231.xsd#GoodwillAndIntangibleAssetsNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxes" xlink:href="run-20181231.xsd#IncomeTaxes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesAdditionalInformationDetails" xlink:href="run-20181231.xsd#IncomeTaxesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails" xlink:href="run-20181231.xsd#IncomeTaxesIncomeTaxProvisionBenefitDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesIncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:href="run-20181231.xsd#IncomeTaxesIncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesLossBeforeIncomeTaxesDetails" xlink:href="run-20181231.xsd#IncomeTaxesLossBeforeIncomeTaxesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesReconciliationOfStatutoryFederalRateAndCompanysEffectiveTaxRateDetails" xlink:href="run-20181231.xsd#IncomeTaxesReconciliationOfStatutoryFederalRateAndCompanysEffectiveTaxRateDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesSignificantComponentsOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:href="run-20181231.xsd#IncomeTaxesSignificantComponentsOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesSummaryOfTaxYearsThatRemainOpenAndSubjectToExaminationByTaxAuthoritiesDetails" xlink:href="run-20181231.xsd#IncomeTaxesSummaryOfTaxYearsThatRemainOpenAndSubjectToExaminationByTaxAuthoritiesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IncomeTaxesTables" xlink:href="run-20181231.xsd#IncomeTaxesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/Indebtedness" xlink:href="run-20181231.xsd#Indebtedness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IndebtednessAdditionalInformationDetails" xlink:href="run-20181231.xsd#IndebtednessAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IndebtednessScheduleOfDebtDetails" xlink:href="run-20181231.xsd#IndebtednessScheduleOfDebtDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IndebtednessScheduleOfMaturitiesOfDebtExcludingDebtDiscountDetails" xlink:href="run-20181231.xsd#IndebtednessScheduleOfMaturitiesOfDebtExcludingDebtDiscountDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/IndebtednessTables" xlink:href="run-20181231.xsd#IndebtednessTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/Inventories" xlink:href="run-20181231.xsd#Inventories" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/InventoriesScheduleOfInventoriesDetails" xlink:href="run-20181231.xsd#InventoriesScheduleOfInventoriesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/InventoriesTables" xlink:href="run-20181231.xsd#InventoriesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/NetIncomePerShare" xlink:href="run-20181231.xsd#NetIncomePerShare" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/NetIncomePerShareComputationOfBasicAndDilutedNetIncomeLossPerShareDetails" xlink:href="run-20181231.xsd#NetIncomePerShareComputationOfBasicAndDilutedNetIncomeLossPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/NetIncomePerShareScheduleOfSharesExcludedFromComputationOfDilutedNetIncomeLossPerShareDetails" xlink:href="run-20181231.xsd#NetIncomePerShareScheduleOfSharesExcludedFromComputationOfDilutedNetIncomeLossPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/NetIncomePerShareTables" xlink:href="run-20181231.xsd#NetIncomePerShareTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/Organization" xlink:href="run-20181231.xsd#Organization" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/OrganizationAdditionalInformationDetails" xlink:href="run-20181231.xsd#OrganizationAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/OtherAssets" xlink:href="run-20181231.xsd#OtherAssets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/OtherAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:href="run-20181231.xsd#OtherAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/OtherAssetsTables" xlink:href="run-20181231.xsd#OtherAssetsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/PassThroughFinancingObligations" xlink:href="run-20181231.xsd#PassThroughFinancingObligations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/PassThroughFinancingObligationsAdditionalInformationDetails" xlink:href="run-20181231.xsd#PassThroughFinancingObligationsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/PropertyAndEquipmentNet" xlink:href="run-20181231.xsd#PropertyAndEquipmentNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/PropertyAndEquipmentNetAdditionalInformationDetails" xlink:href="run-20181231.xsd#PropertyAndEquipmentNetAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails" xlink:href="run-20181231.xsd#PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/PropertyAndEquipmentNetTables" xlink:href="run-20181231.xsd#PropertyAndEquipmentNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/QuarterlyResultsOfOperations" xlink:href="run-20181231.xsd#QuarterlyResultsOfOperations" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/QuarterlyResultsOfOperationsDetails" xlink:href="run-20181231.xsd#QuarterlyResultsOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/QuarterlyResultsOfOperationsTables" xlink:href="run-20181231.xsd#QuarterlyResultsOfOperationsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/RedeemableNoncontrollingInterests" xlink:href="run-20181231.xsd#RedeemableNoncontrollingInterests" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/RedeemableNoncontrollingInterestsDetails" xlink:href="run-20181231.xsd#RedeemableNoncontrollingInterestsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/RelatedPartyTransactions" xlink:href="run-20181231.xsd#RelatedPartyTransactions" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/RelatedPartyTransactionsAdditionalInformationDetails" xlink:href="run-20181231.xsd#RelatedPartyTransactionsAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SolarEnergySystemsNet" xlink:href="run-20181231.xsd#SolarEnergySystemsNet" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SolarEnergySystemsNetAdditionalInformationDetails" xlink:href="run-20181231.xsd#SolarEnergySystemsNetAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SolarEnergySystemsNetDetails" xlink:href="run-20181231.xsd#SolarEnergySystemsNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SolarEnergySystemsNetTables" xlink:href="run-20181231.xsd#SolarEnergySystemsNetTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensation" xlink:href="run-20181231.xsd#StockBasedCompensation" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:href="run-20181231.xsd#StockBasedCompensationAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensationEstimatedFairValueOfStockOptionsDetails" xlink:href="run-20181231.xsd#StockBasedCompensationEstimatedFairValueOfStockOptionsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensationSummaryOfActivityForAllRsusDetails" xlink:href="run-20181231.xsd#StockBasedCompensationSummaryOfActivityForAllRsusDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails" xlink:href="run-20181231.xsd#StockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensationSummaryOfStockOptionActivityDetails" xlink:href="run-20181231.xsd#StockBasedCompensationSummaryOfStockOptionActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockBasedCompensationTables" xlink:href="run-20181231.xsd#StockBasedCompensationTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockholdersEquity" xlink:href="run-20181231.xsd#StockholdersEquity" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockholdersEquityAdditionalInformationDetails" xlink:href="run-20181231.xsd#StockholdersEquityAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockholdersEquityScheduleOfReserveShareOfCommonStockForIssuanceDetails" xlink:href="run-20181231.xsd#StockholdersEquityScheduleOfReserveShareOfCommonStockForIssuanceDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/StockholdersEquityTables" xlink:href="run-20181231.xsd#StockholdersEquityTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPolicies" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableNetDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesAccountsReceivableNetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesAdditionalInformationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842BalanceSheetDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842BalanceSheetDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842CashFlowsDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842CashFlowsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842StatementOfOperationsDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842StatementOfOperationsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAmortizedFiniteLivedIntangibleAssetsEstimatedUsefulLivesDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesAmortizedFiniteLivedIntangibleAssetsEstimatedUsefulLivesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesCashAndRestrictedCashDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesCashAndRestrictedCashDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesDeferredRevenueDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesDeferredRevenueDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesDepreciatedPropertyAndEquipmentNetEstimatedUsefulLivesDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesDepreciatedPropertyAndEquipmentNetEstimatedUsefulLivesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfRevenuesFromExternalCustomersDetails" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesScheduleOfRevenuesFromExternalCustomersDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:href="run-20181231.xsd#SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/VieArrangements" xlink:href="run-20181231.xsd#VieArrangements" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/VieArrangementsCarryingAmountsAndClassificationOfViesAssetsAndLiabilitiesIncludedInConsolidatedBalanceSheetsDetails" xlink:href="run-20181231.xsd#VieArrangementsCarryingAmountsAndClassificationOfViesAssetsAndLiabilitiesIncludedInConsolidatedBalanceSheetsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.sunrun.com/role/VieArrangementsTables" xlink:href="run-20181231.xsd#VieArrangementsTables" xlink:type="simple" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/AccruedExpensesAndOtherLiabilities" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/AccruedExpensesAndOtherLiabilitiesScheduleOfAccruedExpensesAndOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedEmployeeBenefitsCurrent" xlink:label="loc_us-gaap_AccruedEmployeeBenefitsCurrent_c7f7eb62-cfa0-f151-36ae-c1d591e39819" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:to="loc_us-gaap_AccruedEmployeeBenefitsCurrent_c7f7eb62-cfa0-f151-36ae-c1d591e39819" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_9971afa9-a425-6ec5-0b0e-1ed715222b5f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_9971afa9-a425-6ec5-0b0e-1ed715222b5f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepositLiabilitiesAccruedInterest" xlink:label="loc_us-gaap_DepositLiabilitiesAccruedInterest_98cafd8d-5801-5b1c-9052-f642cd7e38f4" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:to="loc_us-gaap_DepositLiabilitiesAccruedInterest_98cafd8d-5801-5b1c-9052-f642cd7e38f4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedProfessionalFeesCurrent" xlink:label="loc_us-gaap_AccruedProfessionalFeesCurrent_98d31a39-575d-6ddd-42a2-18a0e94f1b32" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:to="loc_us-gaap_AccruedProfessionalFeesCurrent_98d31a39-575d-6ddd-42a2-18a0e94f1b32" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_00b000cf-7f1d-4891-7244-daf9f6335db0" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_00b000cf-7f1d-4891-7244-daf9f6335db0" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/AccruedExpensesAndOtherLiabilitiesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/Acquisitions" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/AcquisitionsAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CashEquityFinancing" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CommitmentsAndContingencies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CommitmentsAndContingenciesAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CommitmentsAndContingenciesComponentsOfLeaseExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LeaseCost" xlink:label="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseRightOfUseAssetAmortization" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_0c1bcc61-7804-dcf5-dd47-a9300776192f" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetAmortization_0c1bcc61-7804-dcf5-dd47-a9300776192f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseInterestExpense" xlink:label="loc_us-gaap_FinanceLeaseInterestExpense_e9f4bb5f-aafb-2af3-1e31-d861ee2463b7" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:to="loc_us-gaap_FinanceLeaseInterestExpense_e9f4bb5f-aafb-2af3-1e31-d861ee2463b7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeaseExpense" xlink:label="loc_us-gaap_OperatingLeaseExpense_04418663-b356-48c8-7010-6b0d6142f419" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:to="loc_us-gaap_OperatingLeaseExpense_04418663-b356-48c8-7010-6b0d6142f419" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShortTermLeaseCost" xlink:label="loc_us-gaap_ShortTermLeaseCost_75d81425-8873-89ef-dc91-39c256e67d0d" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:to="loc_us-gaap_ShortTermLeaseCost_75d81425-8873-89ef-dc91-39c256e67d0d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_VariableLeaseCost" xlink:label="loc_us-gaap_VariableLeaseCost_aa3d7207-63b7-41f9-d02f-e7cabf383590" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:to="loc_us-gaap_VariableLeaseCost_aa3d7207-63b7-41f9-d02f-e7cabf383590" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SubleaseIncome" xlink:label="loc_us-gaap_SubleaseIncome_dc10fed0-3c26-6ce9-d482-3546b69e7244" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_2c458fb6-1579-cbe0-fa49-ac8c90fa335a" xlink:to="loc_us-gaap_SubleaseIncome_dc10fed0-3c26-6ce9-d482-3546b69e7244" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CommitmentsAndContingenciesFutureMinimumLeasePaymentsDetails" xlink:type="extended">
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDue" xlink:label="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:type="locator" />
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDueNextTwelveMonths" xlink:label="loc_run_SubleaseIncomePaymentsDueNextTwelveMonths_CACCABDD5619A31F9144322D14EA565B" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:to="loc_run_SubleaseIncomePaymentsDueNextTwelveMonths_CACCABDD5619A31F9144322D14EA565B" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDueYearTwo" xlink:label="loc_run_SubleaseIncomePaymentsDueYearTwo_1C2692AEC2698224DB9A322DB3A284FC" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:to="loc_run_SubleaseIncomePaymentsDueYearTwo_1C2692AEC2698224DB9A322DB3A284FC" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDueYearThree" xlink:label="loc_run_SubleaseIncomePaymentsDueYearThree_D7A52319E2B1EBAAF820322E0A3A70AD" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:to="loc_run_SubleaseIncomePaymentsDueYearThree_D7A52319E2B1EBAAF820322E0A3A70AD" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDueYearFour" xlink:label="loc_run_SubleaseIncomePaymentsDueYearFour_752DBC2B53360E9F8078322E5EBE8923" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:to="loc_run_SubleaseIncomePaymentsDueYearFour_752DBC2B53360E9F8078322E5EBE8923" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDueYearFive" xlink:label="loc_run_SubleaseIncomePaymentsDueYearFive_963F7A37F96B94DFEB4F322EBB8F4D00" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:to="loc_run_SubleaseIncomePaymentsDueYearFive_963F7A37F96B94DFEB4F322EBB8F4D00" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_SubleaseIncomePaymentsDueAfterYearFive" xlink:label="loc_run_SubleaseIncomePaymentsDueAfterYearFive_63F9C47130EA14250447322F211F08EB" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_SubleaseIncomePaymentsDue_6CAF9EE975043BB7C154322FB7574917" xlink:to="loc_run_SubleaseIncomePaymentsDueAfterYearFive_63F9C47130EA14250447322F211F08EB" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeOperatingLeaseLiabilityUndiscountedExcessAmountRevised" xlink:label="loc_run_LesseeOperatingLeaseLiabilityUndiscountedExcessAmountRevised_796AB68FBEBA42144763096DD8886397" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_92a886fe-a438-0e66-1f69-c021ff737659" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeOperatingLeaseLiabilityUndiscountedExcessAmountRevised_796AB68FBEBA42144763096DD8886397" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_92a886fe-a438-0e66-1f69-c021ff737659" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeOperatingLeaseLiabilityOffBalanceSheet" xlink:label="loc_run_LesseeOperatingLeaseLiabilityOffBalanceSheet_ED2579437118A209FC3B098216B040C5" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeOperatingLeaseLiabilityUndiscountedExcessAmountRevised_796AB68FBEBA42144763096DD8886397" xlink:to="loc_run_LesseeOperatingLeaseLiabilityOffBalanceSheet_ED2579437118A209FC3B098216B040C5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_4f078243-d7bb-98ea-fc29-8775b9cb1d29" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_4f078243-d7bb-98ea-fc29-8775b9cb1d29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9ae85d5a-3597-15dc-9f7d-54768ef1f006" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_9ae85d5a-3597-15dc-9f7d-54768ef1f006" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_ec9b62cf-b4a7-5e2e-d2cd-5a1d24f5e7e6" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_ec9b62cf-b4a7-5e2e-d2cd-5a1d24f5e7e6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_cb1443c4-2a44-05fb-8cc4-775c5b49860d" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_cb1443c4-2a44-05fb-8cc4-775c5b49860d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_1cca95ce-efd9-0081-bba5-460f648f5375" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_1cca95ce-efd9-0081-bba5-460f648f5375" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_f3b7076a-a72b-878f-bf54-0772ea24ed04" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue_2e43173b-4def-1f33-241f-784f8fd97fb0" xlink:to="loc_us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_f3b7076a-a72b-878f-bf54-0772ea24ed04" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDue" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:type="locator" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_0EB5522AE49177D9B9260973D7A7CDAC" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:to="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_0EB5522AE49177D9B9260973D7A7CDAC" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearTwo_EBC1EC2D07D2F40E885C097460FEE3ED" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:to="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearTwo_EBC1EC2D07D2F40E885C097460FEE3ED" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearThree_8141AB850CCAC06F97F909750FB9E45D" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:to="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearThree_8141AB850CCAC06F97F909750FB9E45D" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearFour_A007EA3195E6C844628109759034724B" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:to="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearFour_A007EA3195E6C844628109759034724B" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearFive_D95842F5102C18EE692909763E35754D" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:to="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueYearFive_D95842F5102C18EE692909763E35754D" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LesseeNetOperatingLeaseLiabilityPaymentsDueafterYearFive" xlink:label="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueafterYearFive_03BB271E3F9EA61816C4097931366A55" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDue_2CA5811559BF683CB916097A57C2548F" xlink:to="loc_run_LesseeNetOperatingLeaseLiabilityPaymentsDueafterYearFive_03BB271E3F9EA61816C4097931366A55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount" xlink:label="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_b21b4a93-929a-a7c4-4769-a69bc327e1e6" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDue" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_b21b4a93-929a-a7c4-4769-a69bc327e1e6" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_350ce0e4-e27f-bd00-4c87-9fc7b14dee91" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueNextTwelveMonths_350ce0e4-e27f-bd00-4c87-9fc7b14dee91" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f29a29c6-d600-c05e-017b-736a06859dbd" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearTwo_f29a29c6-d600-c05e-017b-736a06859dbd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f6d40fb0-8f91-b4a0-aafe-94e795d17b5f" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearThree_f6d40fb0-8f91-b4a0-aafe-94e795d17b5f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_e201f15a-e04a-5244-1007-13b0febd76c1" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFour_e201f15a-e04a-5244-1007-13b0febd76c1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_31c1f282-76f7-9998-bc5f-856b39464561" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueYearFive_31c1f282-76f7-9998-bc5f-856b39464561" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_7d95b267-ab94-cdc5-dbc2-1c7b3d0ccba7" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityPaymentsDue_881390a9-e88a-84e9-f803-4fbeab119cb7" xlink:to="loc_us-gaap_FinanceLeaseLiabilityPaymentsDueAfterYearFive_7d95b267-ab94-cdc5-dbc2-1c7b3d0ccba7" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_FinanceLeaseFutureMinimumPaymentsInterestIncludedinPayments" xlink:label="loc_run_FinanceLeaseFutureMinimumPaymentsInterestIncludedinPayments_D1E6A2745E8EF5420DC9C6F2C6CF0D45" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FinanceLeaseLiabilityUndiscountedExcessAmount_b21b4a93-929a-a7c4-4769-a69bc327e1e6" xlink:to="loc_run_FinanceLeaseFutureMinimumPaymentsInterestIncludedinPayments_D1E6A2745E8EF5420DC9C6F2C6CF0D45" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CommitmentsAndContingenciesOtherInformationRelatedToLeasesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/CommitmentsAndContingenciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Liabilities" xlink:label="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="loc_us-gaap_AccountsPayableCurrent_7a72b51a-735c-1ad4-bd3f-d9bcf2d6a26d" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_AccountsPayableCurrent_7a72b51a-735c-1ad4-bd3f-d9bcf2d6a26d" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_DistributionsPayableToNoncontrollingInterestsAndRedeemableNoncontrollingInterests" xlink:label="loc_run_DistributionsPayableToNoncontrollingInterestsAndRedeemableNoncontrollingInterests_27885ac2-2511-e15c-b1af-d904916aa7e9" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_run_DistributionsPayableToNoncontrollingInterestsAndRedeemableNoncontrollingInterests_27885ac2-2511-e15c-b1af-d904916aa7e9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_29766439-8b87-9812-7936-6bf8074f7891" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerLiabilityCurrent" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_06a8bc6d-0a67-7d01-441e-cd6865c4697c" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_06a8bc6d-0a67-7d01-441e-cd6865c4697c" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_DeferredGrantCurrentPortion" xlink:label="loc_run_DeferredGrantCurrentPortion_ff86ec2a-247d-5894-ed79-d904921c7f2a" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_run_DeferredGrantCurrentPortion_ff86ec2a-247d-5894-ed79-d904921c7f2a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityCurrent" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_3c13e49e-7e83-1637-47cb-be0f441cf8f1" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_3c13e49e-7e83-1637-47cb-be0f441cf8f1" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_NonRecourseDebtCurrent" xlink:label="loc_run_NonRecourseDebtCurrent_a7998c1b-6998-6976-d520-d9049230f55e" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_run_NonRecourseDebtCurrent_a7998c1b-6998-6976-d520-d9049230f55e" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LeasePassThroughFinancingObligationCurrentPortion" xlink:label="loc_run_LeasePassThroughFinancingObligationCurrentPortion_bc769ed5-4a5d-9c07-a51b-d904904f5498" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_f5e246cf-e80f-d00b-c8ed-4796aa2df4b4" xlink:to="loc_run_LeasePassThroughFinancingObligationCurrentPortion_bc769ed5-4a5d-9c07-a51b-d904904f5498" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_ba1d46a8-6ebe-b4b5-e10e-899fee502d4f" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_ba1d46a8-6ebe-b4b5-e10e-899fee502d4f" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_DeferredGrantIncomeNoncurrent" xlink:label="loc_run_DeferredGrantIncomeNoncurrent_2b711f4a-5a99-8d10-9505-d904918a2996" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_run_DeferredGrantIncomeNoncurrent_2b711f4a-5a99-8d10-9505-d904918a2996" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_30609b29-63b7-ecbd-374d-2ce22e2d9b00" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_30609b29-63b7-ecbd-374d-2ce22e2d9b00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LineOfCredit" xlink:label="loc_us-gaap_LineOfCredit_c78bc05d-b19b-ac91-0020-0d2031650dcf" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_LineOfCredit_c78bc05d-b19b-ac91-0020-0d2031650dcf" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_NonRecourseDebtNoncurrent" xlink:label="loc_run_NonRecourseDebtNoncurrent_67e2bcb2-c3b8-4f80-b830-d904904db803" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_run_NonRecourseDebtNoncurrent_67e2bcb2-c3b8-4f80-b830-d904904db803" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_LeasePassThroughFinancingObligationNetOfCurrentPortion" xlink:label="loc_run_LeasePassThroughFinancingObligationNetOfCurrentPortion_23aea9f7-3c78-901a-f91b-d904914794fa" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_run_LeasePassThroughFinancingObligationNetOfCurrentPortion_23aea9f7-3c78-901a-f91b-d904914794fa" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_f234998c-5e05-09d0-d53e-5c44423c97c0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9a73c768-7e07-f56f-7aba-2b93110d3715" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_d8bb821f-d155-9d4e-1738-736b4bf4cb19" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_9a73c768-7e07-f56f-7aba-2b93110d3715" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommitmentsAndContingencies" xlink:label="loc_us-gaap_CommitmentsAndContingencies_058e01e4-b9a1-623e-29f5-1b5c79bf095a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_CommitmentsAndContingencies_058e01e4-b9a1-623e-29f5-1b5c79bf095a" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount" xlink:label="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_c3b9426a-456e-2e20-8220-9338acf9491e" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_c3b9426a-456e-2e20-8220-9338acf9491e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_159dcb00-b17e-17db-7098-be4159799459" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:to="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PreferredStockValue" xlink:label="loc_us-gaap_PreferredStockValue_4fb6195d-d905-dac7-e5a0-79f324993f79" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_PreferredStockValue_4fb6195d-d905-dac7-e5a0-79f324993f79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CommonStockValue" xlink:label="loc_us-gaap_CommonStockValue_c3f7606a-e7e9-61d5-b60b-b4b059f68b26" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_CommonStockValue_c3f7606a-e7e9-61d5-b60b-b4b059f68b26" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="loc_us-gaap_AdditionalPaidInCapital_2d1b9d27-8b19-82d9-2843-5b3d292b7fbb" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AdditionalPaidInCapital_2d1b9d27-8b19-82d9-2843-5b3d292b7fbb" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_04f0961a-a0bc-88cf-6658-3f950da4a458" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_065cb284-7fca-cc9b-5752-2feaf74d0011" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_4b158f76-5f04-5e4d-ead3-d80e1f9943db" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_065cb284-7fca-cc9b-5752-2feaf74d0011" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_MinorityInterest" xlink:label="loc_us-gaap_MinorityInterest_cb565c4d-35c2-d825-4672-f1619e51c133" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_00443492-92dd-7fc1-13b6-792f3e163e73" xlink:to="loc_us-gaap_MinorityInterest_cb565c4d-35c2-d825-4672-f1619e51c133" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Assets" xlink:label="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Cash" xlink:label="loc_us-gaap_Cash_94c137c7-bb31-5444-c8e6-a4a41bb54d97" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_Cash_94c137c7-bb31-5444-c8e6-a4a41bb54d97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCashCurrent" xlink:label="loc_us-gaap_RestrictedCashCurrent_2c642bd3-af0e-2712-c577-dff033ad00ba" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_RestrictedCashCurrent_2c642bd3-af0e-2712-c577-dff033ad00ba" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_StateTaxCreditsReceivableCurrent" xlink:label="loc_run_StateTaxCreditsReceivableCurrent_41a747fb-1359-b802-7092-d9049173684d" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_run_StateTaxCreditsReceivableCurrent_41a747fb-1359-b802-7092-d9049173684d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2294e6a2-7bab-43ed-d02c-bdf73b8fa561" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_8a47066b-3628-88d1-49db-ed09aecc7fc7" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_2294e6a2-7bab-43ed-d02c-bdf73b8fa561" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCashNoncurrent" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_fb3f4117-3448-7901-1609-fbf2b3e475d2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_fb3f4117-3448-7901-1609-fbf2b3e475d2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_ffecafea-37c9-5116-f0f9-6df0dbffc0f2" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_ffecafea-37c9-5116-f0f9-6df0dbffc0f2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Goodwill" xlink:label="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_Goodwill_93a64cae-271a-5e6b-8c83-5adf9f941142" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_c6057b1d-6685-8249-2051-6c57f3a16a9e" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedBalanceSheetsParenthetical" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_84cc24ed-d44c-2db0-9066-6b54091db5c7" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_84cc24ed-d44c-2db0-9066-6b54091db5c7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DepreciationAndAmortization" xlink:label="loc_us-gaap_DepreciationAndAmortization_cfab4180-0727-b022-76c1-dcd34f4a6382" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_DepreciationAndAmortization_cfab4180-0727-b022-76c1-dcd34f4a6382" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_e3eecf87-b290-4567-8a59-5b0a8e27c85b" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_ShareBasedCompensation_e3eecf87-b290-4567-8a59-5b0a8e27c85b" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_InterestOnLeaseFinancing" xlink:label="loc_run_InterestOnLeaseFinancing_bf2bf064-f86e-903d-0428-d90491fe197e" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_run_InterestOnLeaseFinancing_bf2bf064-f86e-903d-0428-d90491fe197e" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_ReductionInLeasePassThroughFinancingObligations" xlink:label="loc_run_ReductionInLeasePassThroughFinancingObligations_b85d46b9-9152-76e2-2268-d904922a5341" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_run_ReductionInLeasePassThroughFinancingObligations_b85d46b9-9152-76e2-2268-d904922a5341" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherNoncashExpense" xlink:label="loc_us-gaap_OtherNoncashExpense_3943ec30-15aa-3a14-5596-f901a0dae382" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_OtherNoncashExpense_3943ec30-15aa-3a14-5596-f901a0dae382" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_dd4bfa5e-1979-c817-e8a9-371104c0d4f7" xlink:type="locator" />
    <link:calculationArc order="8" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_dd4bfa5e-1979-c817-e8a9-371104c0d4f7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInInventories" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_bf3f9720-ba63-7ecd-52ae-e754a6f349db" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_bf3f9720-ba63-7ecd-52ae-e754a6f349db" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_c998cbd2-a633-c2ec-1932-e3bfedecbc9f" xlink:type="locator" />
    <link:calculationArc order="10" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_c998cbd2-a633-c2ec-1932-e3bfedecbc9f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a8b6fe35-4809-bddf-7ef6-3144a6c89165" xlink:type="locator" />
    <link:calculationArc order="11" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_a8b6fe35-4809-bddf-7ef6-3144a6c89165" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_06dd9f1c-1525-26ac-8777-af6cdc28e5fc" xlink:type="locator" />
    <link:calculationArc order="12" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_06dd9f1c-1525-26ac-8777-af6cdc28e5fc" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_IncreaseDecreaseinContractwithCustomerLiability" xlink:label="loc_run_IncreaseDecreaseinContractwithCustomerLiability_A20E5015A16A5094D334462861AF8BB5" xlink:type="locator" />
    <link:calculationArc order="13" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_444b1ac7-f47a-4ce3-0caa-537f7e4ab8c3" xlink:to="loc_run_IncreaseDecreaseinContractwithCustomerLiability_A20E5015A16A5094D334462861AF8BB5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_84cc24ed-d44c-2db0-9066-6b54091db5c7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_PaymentsForCostOfSolarEnergySystemsToBeLeased" xlink:label="loc_run_PaymentsForCostOfSolarEnergySystemsToBeLeased_53b7fb4c-c537-6bf4-ac46-d9049186c1dc" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_run_PaymentsForCostOfSolarEnergySystemsToBeLeased_53b7fb4c-c537-6bf4-ac46-d9049186c1dc" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fee12b15-6b42-6245-2e2f-ff030b98332c" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_fee12b15-6b42-6245-2e2f-ff030b98332c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired" xlink:label="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9d35c912-5b2d-89f7-eeb3-812a0511db5e" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_70319186-e7bd-7189-88d2-eba26fb93350" xlink:to="loc_us-gaap_PaymentsToAcquireBusinessesNetOfCashAcquired_9d35c912-5b2d-89f7-eeb3-812a0511db5e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_84cc24ed-d44c-2db0-9066-6b54091db5c7" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_ProceedsFromStateTaxCreditsNetOfRecapture" xlink:label="loc_run_ProceedsFromStateTaxCreditsNetOfRecapture_a5a11896-6d94-a9d4-e3ca-d904919324a6" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_run_ProceedsFromStateTaxCreditsNetOfRecapture_a5a11896-6d94-a9d4-e3ca-d904919324a6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_f19a6911-0ca9-0f7f-0ae8-f18c6d766244" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_f19a6911-0ca9-0f7f-0ae8-f18c6d766244" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_ProceedsFromLeasePassThroughFinancingObligations" xlink:label="loc_run_ProceedsFromLeasePassThroughFinancingObligations_6fb9f564-2e23-e035-9868-d904915f7923" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_run_ProceedsFromLeasePassThroughFinancingObligations_6fb9f564-2e23-e035-9868-d904915f7923" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromMinorityShareholders" xlink:label="loc_us-gaap_ProceedsFromMinorityShareholders_6a660996-9291-b132-478c-dc07edd8fb2c" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromMinorityShareholders_6a660996-9291-b132-478c-dc07edd8fb2c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PaymentsToMinorityShareholders" xlink:label="loc_us-gaap_PaymentsToMinorityShareholders_f5111bee-d5f6-1852-97c9-8d4d4881d906" xlink:type="locator" />
    <link:calculationArc order="5" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_PaymentsToMinorityShareholders_f5111bee-d5f6-1852-97c9-8d4d4881d906" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_PaymentsToAcquireNonControllingInterest" xlink:label="loc_run_PaymentsToAcquireNonControllingInterest_753797ca-0974-119c-b5b6-d9049209af42" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_run_PaymentsToAcquireNonControllingInterest_753797ca-0974-119c-b5b6-d9049209af42" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_PaymentsforProceedsfromFromStockOptionsExercisedAndIssuanceOfSharesInConnectionWithEmployeeStockPurchasePlan" xlink:label="loc_run_PaymentsforProceedsfromFromStockOptionsExercisedAndIssuanceOfSharesInConnectionWithEmployeeStockPurchasePlan_57c2d8e6-da4d-bd2b-9ba2-d90491744580" xlink:type="locator" />
    <link:calculationArc order="7" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_run_PaymentsforProceedsfromFromStockOptionsExercisedAndIssuanceOfSharesInConnectionWithEmployeeStockPurchasePlan_57c2d8e6-da4d-bd2b-9ba2-d90491744580" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_ProceedsFromPaymentsForOfferingCostsPaidRelatedToInitialPublicOfferingNet" xlink:label="loc_run_ProceedsFromPaymentsForOfferingCostsPaidRelatedToInitialPublicOfferingNet_48e7897f-3938-0548-d0ba-d90490fd4069" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_run_ProceedsFromPaymentsForOfferingCostsPaidRelatedToInitialPublicOfferingNet_48e7897f-3938-0548-d0ba-d90490fd4069" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RepaymentsOfLongTermCapitalLeaseObligations" xlink:label="loc_us-gaap_RepaymentsOfLongTermCapitalLeaseObligations_8f563464-80d3-5024-06bd-d0b7c03ce96e" xlink:type="locator" />
    <link:calculationArc order="9" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_RepaymentsOfLongTermCapitalLeaseObligations_8f563464-80d3-5024-06bd-d0b7c03ce96e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProceedsFromIssuanceOfDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_2648fb49-ac2e-6969-ad2b-f3869ac97490" xlink:type="locator" />
    <link:calculationArc order="10" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_2648fb49-ac2e-6969-ad2b-f3869ac97490" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="loc_us-gaap_RepaymentsOfDebt_6d9b7dce-39b9-34d3-9e48-3b74a3681093" xlink:type="locator" />
    <link:calculationArc order="11" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_deb49b68-c030-7624-a39d-ea301caa5dbf" xlink:to="loc_us-gaap_RepaymentsOfDebt_6d9b7dce-39b9-34d3-9e48-3b74a3681093" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsOfComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_72d12753-e25c-cdc0-88b6-98db8d7b7fae" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_499015ce-2160-aed2-85a3-080e8c4c6cdf" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_72d12753-e25c-cdc0-88b6-98db8d7b7fae" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_OtherComprehensiveIncomeLossCashFlowHedgeGainLossbeforeReclassificationafterTax" xlink:label="loc_run_OtherComprehensiveIncomeLossCashFlowHedgeGainLossbeforeReclassificationafterTax_F94F8330CF6D25515B0735361A4B7C55" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_72d12753-e25c-cdc0-88b6-98db8d7b7fae" xlink:to="loc_run_OtherComprehensiveIncomeLossCashFlowHedgeGainLossbeforeReclassificationafterTax_F94F8330CF6D25515B0735361A4B7C55" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_72d12753-e25c-cdc0-88b6-98db8d7b7fae" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIOnDerivativesNetOfTax_aa99f772-8337-cbc2-0b89-25fbb3108271" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsOfOperations" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ProfitLoss" xlink:label="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_33f76b65-31cf-be04-0849-25af345446d5" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_us-gaap_Revenues_33f76b65-31cf-be04-0849-25af345446d5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostsAndExpenses" xlink:label="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_9894e895-7695-402a-9f03-08d60b7373b8" xlink:to="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_53981114-ea4f-c85d-1ee7-90421fdccca2" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_53981114-ea4f-c85d-1ee7-90421fdccca2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_SellingAndMarketingExpense" xlink:label="loc_us-gaap_SellingAndMarketingExpense_460c4e45-6b19-c446-6991-97e38cf5aa17" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:to="loc_us-gaap_SellingAndMarketingExpense_460c4e45-6b19-c446-6991-97e38cf5aa17" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_25ae5ce2-b413-b975-9a84-c7503d2496cf" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_25ae5ce2-b413-b975-9a84-c7503d2496cf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_87411e46-c979-a1ff-e8b3-f4f75d86b855" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_87411e46-c979-a1ff-e8b3-f4f75d86b855" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AmortizationOfIntangibleAssets" xlink:label="loc_us-gaap_AmortizationOfIntangibleAssets_ae796c5c-1c01-d654-6a3c-3b5dd2c89517" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_0d9ff7d0-e871-5bdf-adbd-21d7dbf57556" xlink:to="loc_us-gaap_AmortizationOfIntangibleAssets_ae796c5c-1c01-d654-6a3c-3b5dd2c89517" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_b45ea963-e439-fc81-a491-c6c695e6ceb3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_a53f52a4-7a54-3283-f734-95683c76ebff" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_250c3b2f-7db5-7088-68cc-1dd831a2c2d7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_adacf05e-7e15-bd60-3e53-87432885dc29" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_baabbf0a-644b-708a-c310-1211f9af2775" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_641b1cab-a2b3-2e0e-8389-1455ff3f8581" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_baabbf0a-644b-708a-c310-1211f9af2775" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsOfRedeemableNoncontrollingInterestsAndStockholdersEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/Derivatives" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DerivativesAccumlatedOtherComprehensiveIncomeLossDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DerivativesAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DerivativesOffsettingArrangementsLossDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeNet" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeNet_8bf35f2a-8841-b125-f3fb-3b02f8089726" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_62eb8c59-8348-bd48-683f-a9f1d164ff20" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeNet_8bf35f2a-8841-b125-f3fb-3b02f8089726" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_62eb8c59-8348-bd48-683f-a9f1d164ff20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5296452d-3ce9-bd2f-2a62-9643805fc6ab" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeNet_8bf35f2a-8841-b125-f3fb-3b02f8089726" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5296452d-3ce9-bd2f-2a62-9643805fc6ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_47b25432-a2d1-7658-6dc1-3d4551020252" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssets" xlink:label="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_47b25432-a2d1-7658-6dc1-3d4551020252" xlink:to="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_62eb8c59-8348-bd48-683f-a9f1d164ff20" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_990d24f7-bf09-089d-4b5d-4490e079db44" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_632d52c4-5035-e390-8263-9001adf1afa1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:label="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_47b25432-a2d1-7658-6dc1-3d4551020252" xlink:to="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:type="arc" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_5296452d-3ce9-bd2f-2a62-9643805fc6ab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_a3ccd28b-d904-f2d6-d218-02006f748e50" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_a35dd027-4176-a3b8-92c5-caa74b4d298d" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DerivativesSummaryOfDesignatedDerivativeInstrumentsClassifiedAsDerivativeAssetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DerivativesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DocumentAndEntityInformation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/FairValueMeasurement" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/FairValueMeasurementScheduleOfCarryingValuesAndFairValuesOfDebtInstrumentsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/FairValueMeasurementScheduleOfFairValueFinancialInstrumentsMeasuredOnRecurringBasisDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/FairValueMeasurementTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNet" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetScheduleOfExpectedAmortizationOfIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_c918d4cb-4462-72da-1198-39107cb9581b" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseNextTwelveMonths_c918d4cb-4462-72da-1198-39107cb9581b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e44a1606-1eda-278a-1c39-e2fcbf96f248" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearTwo_e44a1606-1eda-278a-1c39-e2fcbf96f248" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_6a8745e2-e4b9-1a92-2a4b-72abaf326824" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearThree_6a8745e2-e4b9-1a92-2a4b-72abaf326824" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_ceebb9d8-94b3-173f-0af1-6bad40ca326c" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFour_ceebb9d8-94b3-173f-0af1-6bad40ca326c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_b5e743d1-f009-54c0-57f0-4a30eb0e9bab" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseYearFive_b5e743d1-f009-54c0-57f0-4a30eb0e9bab" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_f98b1772-f2e7-e86d-8181-c87649b7a914" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAmortizationExpenseAfterYearFive_f98b1772-f2e7-e86d-8181-c87649b7a914" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetSummaryOfIntangibleAssetsNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5d62e128-f1a1-954f-82e2-1936cb67d793" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_5d62e128-f1a1-954f-82e2-1936cb67d793" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c3ed8a56-abe0-6418-c541-e6b647d6318a" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsNet_49187b45-82fd-7060-b114-79ff249a4331" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_c3ed8a56-abe0-6418-c541-e6b647d6318a" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/GoodwillAndIntangibleAssetsNetTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxes" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesIncomeTaxProvisionBenefitDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:to="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentFederalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_36ba223a-0466-98b6-2d31-f243492419f9" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_36ba223a-0466-98b6-2d31-f243492419f9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CurrentStateAndLocalTaxExpenseBenefit" xlink:label="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_10028fc1-eee3-03f5-6f20-ff5d85e3c0b2" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CurrentIncomeTaxExpenseBenefit_d2250640-c0ab-3b70-41b7-136d9a4aad78" xlink:to="loc_us-gaap_CurrentStateAndLocalTaxExpenseBenefit_10028fc1-eee3-03f5-6f20-ff5d85e3c0b2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_78b7d85e-8366-fe6d-cb1f-faac5a041b79" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_15bb8413-7c16-05ff-0f24-330007bd87a4" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_15bb8413-7c16-05ff-0f24-330007bd87a4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit" xlink:label="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_40691c72-4a6d-af64-c37e-f5abe38c6165" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_f75d01b7-d271-b07d-c4a7-6ae60293303d" xlink:to="loc_us-gaap_DeferredStateAndLocalIncomeTaxExpenseBenefit_40691c72-4a6d-af64-c37e-f5abe38c6165" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesIncomeTaxesUnrecognizedTaxBenefitsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesLossBeforeIncomeTaxesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesReconciliationOfStatutoryFederalRateAndCompanysEffectiveTaxRateDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_29919d14-72a3-6197-982a-3a6269f21038" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_29919d14-72a3-6197-982a-3a6269f21038" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_c48cf597-7f94-3186-bb2a-448703ee500e" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_c48cf597-7f94-3186-bb2a-448703ee500e" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationMinorityInterestIncomeExpense" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationMinorityInterestIncomeExpense_1d0c40ee-1b12-73fb-d3f5-45b12e0439bd" xlink:type="locator" />
    <link:calculationArc order="3" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationMinorityInterestIncomeExpense_1d0c40ee-1b12-73fb-d3f5-45b12e0439bd" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_c3fa658e-2108-f8f1-5239-330a908982a2" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_c3fa658e-2108-f8f1-5239-330a908982a2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_529b9418-adcb-0f53-73b8-1824e172cd45" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationPriorYearIncomeTaxes_529b9418-adcb-0f53-73b8-1824e172cd45" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_bd3fb4a2-dba4-9f41-2b9f-30441850eb67" xlink:type="locator" />
    <link:calculationArc order="6" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationTaxCredits_bd3fb4a2-dba4-9f41-2b9f-30441850eb67" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_8718aa1e-c40a-73dd-11d3-b6a4475e0d37" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInEnactedTaxRate_8718aa1e-c40a-73dd-11d3-b6a4475e0d37" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_e1bd5e97-dd80-bb67-1b32-f0283be3c62d" xlink:type="locator" />
    <link:calculationArc order="8" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_e1bd5e97-dd80-bb67-1b32-f0283be3c62d" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments" xlink:label="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_e076fca2-751d-53ee-27b4-64a5b6f5b217" xlink:type="locator" />
    <link:calculationArc order="9" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_EffectiveIncomeTaxRateContinuingOperations_8712fd02-171c-5995-3f18-84e885c380b9" xlink:to="loc_us-gaap_EffectiveIncomeTaxRateReconciliationOtherAdjustments_e076fca2-751d-53ee-27b4-64a5b6f5b217" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesSignificantComponentsOfDeferredTaxAssetsAndLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilities" xlink:label="loc_us-gaap_DeferredTaxLiabilities_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsNet" xlink:label="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="locator" />
    <link:calculationArc order="1" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:to="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:to="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_21d3fdc5-0c57-3147-2d98-67c225186166" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_21d3fdc5-0c57-3147-2d98-67c225186166" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsDeferredIncome" xlink:label="loc_us-gaap_DeferredTaxAssetsDeferredIncome_d5bdadc0-cf22-f4bf-e68b-7f9b7b17d502" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsDeferredIncome_d5bdadc0-cf22-f4bf-e68b-7f9b7b17d502" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_3541201a-a025-b00d-aec1-2cb167bdef44" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_3541201a-a025-b00d-aec1-2cb167bdef44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost" xlink:label="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_f7e9e6da-5d57-5f97-5d33-52f319506ef0" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_f7e9e6da-5d57-5f97-5d33-52f319506ef0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsInvestments" xlink:label="loc_us-gaap_DeferredTaxAssetsInvestments_b8a5e3b7-9760-db89-d068-003657b47288" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsInvestments_b8a5e3b7-9760-db89-d068-003657b47288" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_DeferredTaxAssetInterestCarryforward" xlink:label="loc_run_DeferredTaxAssetInterestCarryforward_0492CE2EB89E0059A1660928C0231BD0" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_run_DeferredTaxAssetInterestCarryforward_0492CE2EB89E0059A1660928C0231BD0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsDerivativeInstruments" xlink:label="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_9eb5b688-03ee-a9e0-4a88-d0be171d4af0" xlink:type="locator" />
    <link:calculationArc order="7" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsGross_40f9cbe3-f1cd-d4d3-e7be-f62e64714b00" xlink:to="loc_us-gaap_DeferredTaxAssetsDerivativeInstruments_9eb5b688-03ee-a9e0-4a88-d0be171d4af0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="loc_us-gaap_DeferredTaxAssetsValuationAllowance_46929883-d93f-69b0-5ded-4c800feeb57f" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxAssetsNet_d74724c2-178d-7f3f-8e86-5f5ba690672c" xlink:to="loc_us-gaap_DeferredTaxAssetsValuationAllowance_46929883-d93f-69b0-5ded-4c800feeb57f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredTaxLiabilities_644ceb1c-07ef-6a89-f014-9d7b5dfbc918" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome_441e8df4-1776-cab6-87c9-34cb95534e24" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesTaxDeferredIncome_441e8df4-1776-cab6-87c9-34cb95534e24" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesDeferredExpenseOtherCapitalizedCosts" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseOtherCapitalizedCosts_fd449c59-abfc-c141-fe6b-50b91388bf88" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesDeferredExpenseOtherCapitalizedCosts_fd449c59-abfc-c141-fe6b-50b91388bf88" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_DeferredTaxLiabilitiesDepreciableFixedAssets" xlink:label="loc_run_DeferredTaxLiabilitiesDepreciableFixedAssets_6fe78be9-4412-90fa-6e1f-d90491ee3c71" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_run_DeferredTaxLiabilitiesDepreciableFixedAssets_6fe78be9-4412-90fa-6e1f-d90491ee3c71" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DeferredTaxLiabilitiesInvestments" xlink:label="loc_us-gaap_DeferredTaxLiabilitiesInvestments_11fe7ea9-3f55-290e-87ec-27a8ad4ddaee" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DeferredIncomeTaxLiabilities_bbf9fd06-b461-3f65-8882-6e322d99a60b" xlink:to="loc_us-gaap_DeferredTaxLiabilitiesInvestments_11fe7ea9-3f55-290e-87ec-27a8ad4ddaee" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesSummaryOfTaxYearsThatRemainOpenAndSubjectToExaminationByTaxAuthoritiesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IncomeTaxesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/Indebtedness" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IndebtednessAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IndebtednessScheduleOfDebtDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtCurrent" xlink:label="loc_us-gaap_LongTermDebtCurrent_f61bf97e-c3a5-ba72-7591-eba8e7bb6a44" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtCurrent_f61bf97e-c3a5-ba72-7591-eba8e7bb6a44" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_822b66ff-44a1-e66b-5e0c-09356970a23d" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_822b66ff-44a1-e66b-5e0c-09356970a23d" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IndebtednessScheduleOfMaturitiesOfDebtExcludingDebtDiscountDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentCarryingAmount" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_07fc9b71-5e9e-f38c-0c73-b038be276f66" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInNextTwelveMonths_07fc9b71-5e9e-f38c-0c73-b038be276f66" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fd0898b3-8ac6-af74-6eb0-16df5479b1d8" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearTwo_fd0898b3-8ac6-af74-6eb0-16df5479b1d8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_afae3a47-9c39-3601-518d-0d7ae5a5a6c2" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_afae3a47-9c39-3601-518d-0d7ae5a5a6c2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_9f5eb2fc-430b-08e9-97ff-7ba73d819a2f" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_9f5eb2fc-430b-08e9-97ff-7ba73d819a2f" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_82b54d4e-a983-1385-5e08-b1962e49d9a0" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFive_82b54d4e-a983-1385-5e08-b1962e49d9a0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive" xlink:label="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_ba31165f-5220-17cb-3dfa-506eec2ab044" xlink:type="locator" />
    <link:calculationArc order="6" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_DebtInstrumentCarryingAmount_885301e5-debb-a378-50ee-e1d9b92a7437" xlink:to="loc_us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalAfterYearFive_ba31165f-5220-17cb-3dfa-506eec2ab044" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscount" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_73766903-3249-fcaf-da70-d4416c5998dd" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_7e14882f-7ab9-8302-20ff-24c510ab8806" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_73766903-3249-fcaf-da70-d4416c5998dd" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IndebtednessTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/Inventories" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/InventoriesScheduleOfInventoriesDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryNet" xlink:label="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryRawMaterialsNetOfReserves" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_d8866e11-7330-6a9a-9ba0-56d88707d8ec" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_d8866e11-7330-6a9a-9ba0-56d88707d8ec" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_InventoryWorkInProcessNetOfReserves" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a3451b87-a72a-9fff-128b-969b95aecb3a" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_7eab44cf-1ea1-ca2a-420f-21f7b5343fc3" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_a3451b87-a72a-9fff-128b-969b95aecb3a" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/InventoriesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/NetIncomePerShare" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/NetIncomePerShareComputationOfBasicAndDilutedNetIncomeLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_223fd9c8-68e8-e433-7c40-f98b238e79de" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_86e61cf2-b7b2-e230-65f1-5a2b152f3a30" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_223fd9c8-68e8-e433-7c40-f98b238e79de" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_86e61cf2-b7b2-e230-65f1-5a2b152f3a30" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_7b1369dd-f813-fe00-b292-96e275568f1b" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_223fd9c8-68e8-e433-7c40-f98b238e79de" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_7b1369dd-f813-fe00-b292-96e275568f1b" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/NetIncomePerShareScheduleOfSharesExcludedFromComputationOfDilutedNetIncomeLossPerShareDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/NetIncomePerShareTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/Organization" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/OrganizationAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/OtherAssets" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/OtherAssetsScheduleOfPrepaidExpensesAndOtherCurrentAssetsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalizedContractCostGross" xlink:label="loc_us-gaap_CapitalizedContractCostGross_d25e888a-0671-35f0-dd51-cc71d41fa3b0" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_CapitalizedContractCostGross_d25e888a-0671-35f0-dd51-cc71d41fa3b0" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CapitalizedContractCostAccumulatedAmortization" xlink:label="loc_us-gaap_CapitalizedContractCostAccumulatedAmortization_57af1d60-d10a-c4d1-753d-4664d43ea0f1" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_CapitalizedContractCostAccumulatedAmortization_57af1d60-d10a-c4d1-753d-4664d43ea0f1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_UnbilledReceivablesCurrent" xlink:label="loc_us-gaap_UnbilledReceivablesCurrent_0af4cf4f-dd4e-4a27-50f3-b3447f0d9b89" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_UnbilledReceivablesCurrent_0af4cf4f-dd4e-4a27-50f3-b3447f0d9b89" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_251ab07b-3111-49c5-5722-d8e11b3ce593" xlink:type="locator" />
    <link:calculationArc order="4" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_251ab07b-3111-49c5-5722-d8e11b3ce593" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_ee9e85f0-05da-4047-53be-09ca681d9b98" xlink:type="locator" />
    <link:calculationArc order="5" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_9b27fab9-d497-627b-4cfb-6b585220b978" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_ee9e85f0-05da-4047-53be-09ca681d9b98" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/OtherAssetsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/PassThroughFinancingObligations" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/PassThroughFinancingObligationsAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/PropertyAndEquipmentNet" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/PropertyAndEquipmentNetAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/PropertyAndEquipmentNetScheduleOfPropertyAndEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_fe5a8e8b-5934-3dc5-9dae-7d40983185cf" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5551841b-83e0-4644-fca8-d4027d932c0a" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentNet_1944a381-5c4e-ce3c-9111-13ccd1c639db" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_5551841b-83e0-4644-fca8-d4027d932c0a" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/PropertyAndEquipmentNetTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/QuarterlyResultsOfOperations" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/QuarterlyResultsOfOperationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/QuarterlyResultsOfOperationsTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/RedeemableNoncontrollingInterests" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/RedeemableNoncontrollingInterestsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/RelatedPartyTransactions" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/RelatedPartyTransactionsAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SolarEnergySystemsNet" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SolarEnergySystemsNetAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SolarEnergySystemsNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_ffecafea-37c9-5116-f0f9-6df0dbffc0f2" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseGross" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseGross_4478f9ed-eb1f-23ec-354b-9cba0d103601" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_ffecafea-37c9-5116-f0f9-6df0dbffc0f2" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseGross_4478f9ed-eb1f-23ec-354b-9cba0d103601" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAccumulatedDepreciation" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAccumulatedDepreciation_e6b66369-129d-fcf2-c2bb-c41abca48016" xlink:type="locator" />
    <link:calculationArc order="2" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_ffecafea-37c9-5116-f0f9-6df0dbffc0f2" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAccumulatedDepreciation_e6b66369-129d-fcf2-c2bb-c41abca48016" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ConstructionInProgressGross" xlink:label="loc_us-gaap_ConstructionInProgressGross_594f8c62-c8c5-bd85-818c-71da6f0408d7" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_ffecafea-37c9-5116-f0f9-6df0dbffc0f2" xlink:to="loc_us-gaap_ConstructionInProgressGross_594f8c62-c8c5-bd85-818c-71da6f0408d7" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SolarEnergySystemsNetTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensation" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensationAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensationEstimatedFairValueOfStockOptionsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensationSummaryOfActivityForAllRsusDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensationSummaryOfStockBasedCompensationExpenseDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensationSummaryOfStockOptionActivityDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockBasedCompensationTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockholdersEquity" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockholdersEquityAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockholdersEquityScheduleOfReserveShareOfCommonStockForIssuanceDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/StockholdersEquityTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAccountsReceivableNetDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AccountsReceivableNetCurrent" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_ContractWithCustomerAssetGrossCurrent" xlink:label="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_3ac523c4-cf35-4d81-e55d-363af78ec8ed" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:to="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_3ac523c4-cf35-4d81-e55d-363af78ec8ed" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_OtherReceivablesGrossCurrent" xlink:label="loc_us-gaap_OtherReceivablesGrossCurrent_2e5e3edc-0731-aac2-5e90-812cc6a67309" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:to="loc_us-gaap_OtherReceivablesGrossCurrent_2e5e3edc-0731-aac2-5e90-812cc6a67309" xlink:type="arc" />
    <link:loc xlink:href="run-20181231.xsd#run_RebatesReceivableCurrentGross" xlink:label="loc_run_RebatesReceivableCurrentGross_ef69e012-3215-8b66-521e-41fd951648a3" xlink:type="locator" />
    <link:calculationArc order="3" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:to="loc_run_RebatesReceivableCurrentGross_ef69e012-3215-8b66-521e-41fd951648a3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_98ae2a02-ad2a-749c-0963-d2d6767543d9" xlink:type="locator" />
    <link:calculationArc order="4" weight="-1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_dd7775cd-f4ab-5607-9b31-1ee98f605818" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_98ae2a02-ad2a-749c-0963-d2d6767543d9" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdditionalInformationDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842BalanceSheetDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842CashFlowsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAdoptionOfTopic606AndAsc842StatementOfOperationsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesAmortizedFiniteLivedIntangibleAssetsEstimatedUsefulLivesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesCashAndRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b0a3a0d3-8732-f4e7-3bda-ee235d574c3b" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_Cash" xlink:label="loc_us-gaap_Cash_94c137c7-bb31-5444-c8e6-a4a41bb54d97" xlink:type="locator" />
    <link:calculationArc order="1" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b0a3a0d3-8732-f4e7-3bda-ee235d574c3b" xlink:to="loc_us-gaap_Cash_94c137c7-bb31-5444-c8e6-a4a41bb54d97" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2017/elts/us-gaap-2017-01-31.xsd#us-gaap_RestrictedCash" xlink:label="loc_us-gaap_RestrictedCash_6ca3aa42-f0d5-509c-b821-d5eb1dfd1999" xlink:type="locator" />
    <link:calculationArc order="2" weight="1" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_b0a3a0d3-8732-f4e7-3bda-ee235d574c3b" xlink:to="loc_us-gaap_RestrictedCash_6ca3aa42-f0d5-509c-b821-d5eb1dfd1999" xlink:type="arc" />
  </link:calculationLink>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesDeferredRevenueDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesDepreciatedPropertyAndEquipmentNetEstimatedUsefulLivesDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesPolicies" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesScheduleOfRevenuesFromExternalCustomersDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/VieArrangements" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/VieArrangementsCarryingAmountsAndClassificationOfViesAssetsAndLiabilitiesIncludedInConsolidatedBalanceSheetsDetails" xlink:type="extended" />
  <link:calculationLink xlink:role="http://www.sunrun.com/role/VieArrangementsTables" xlink:type="extended" />
</link:linkbase>


