<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019f1475-a6c5-7008-b6cb-bca62e1d02db,g:ced0675d-83dc-4cd5-a6d1-3f51bce18a76-->
<link:linkbase 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" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="run-20260630.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019f1475-a85c-74df-bd02-84f156f8799a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PreferredStockValue_019f1475-a85c-7186-848f-721baefd942e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PreferredStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019f1475-a85c-74df-bd02-84f156f8799a" xlink:to="loc_us-gaap_PreferredStockValue_019f1475-a85c-7186-848f-721baefd942e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019f1475-a85c-7876-8e56-b28df496d68d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019f1475-a85c-74df-bd02-84f156f8799a" xlink:to="loc_us-gaap_CommonStockValue_019f1475-a85c-7876-8e56-b28df496d68d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019f1475-a85c-7d1a-bfcc-2cecde7d22aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019f1475-a85c-74df-bd02-84f156f8799a" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019f1475-a85c-7d1a-bfcc-2cecde7d22aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019f1475-a85c-7f1c-a455-c4294db967b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019f1475-a85c-74df-bd02-84f156f8799a" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019f1475-a85c-7f1c-a455-c4294db967b7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019f1475-a85c-79b5-b8a6-c065fc69d236" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019f1475-a85c-74df-bd02-84f156f8799a" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019f1475-a85c-79b5-b8a6-c065fc69d236" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019f1475-a85c-7325-ae29-368938745e1a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Cash_019f1475-a85c-75fd-b11a-7f92cc5fc7b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Cash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019f1475-a85c-7325-ae29-368938745e1a" xlink:to="loc_us-gaap_Cash_019f1475-a85c-75fd-b11a-7f92cc5fc7b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashCurrent_019f1475-a85c-7411-9510-4db2f44830b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019f1475-a85c-7325-ae29-368938745e1a" xlink:to="loc_us-gaap_RestrictedCashCurrent_019f1475-a85c-7411-9510-4db2f44830b6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85c-706b-ac9f-9ce298edc1e7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019f1475-a85c-7325-ae29-368938745e1a" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85c-706b-ac9f-9ce298edc1e7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019f1475-a85c-76b0-aad1-3c5c44b8ee6f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019f1475-a85c-7325-ae29-368938745e1a" xlink:to="loc_us-gaap_InventoryNet_019f1475-a85c-76b0-aad1-3c5c44b8ee6f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019f1475-a85c-7d39-b126-144c1a8cc922" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsCurrent_019f1475-a85c-7325-ae29-368938745e1a" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019f1475-a85c-7d39-b126-144c1a8cc922" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019f1475-a85c-746f-bc23-f9ea71bce096" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019f1475-a85c-7049-a6cd-76adbe5dd9eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019f1475-a85c-746f-bc23-f9ea71bce096" xlink:to="loc_us-gaap_Liabilities_019f1475-a85c-7049-a6cd-76adbe5dd9eb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019f1475-a85c-71e3-98eb-0b56c54dee00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019f1475-a85c-746f-bc23-f9ea71bce096" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019f1475-a85c-71e3-98eb-0b56c54dee00" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_019f1475-a85c-7c86-a40c-670c6a09a0fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019f1475-a85c-746f-bc23-f9ea71bce096" xlink:to="loc_us-gaap_RedeemableNoncontrollingInterestEquityCarryingAmount_019f1475-a85c-7c86-a40c-670c6a09a0fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85c-78a5-ab33-4d0781407b63" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019f1475-a85c-746f-bc23-f9ea71bce096" xlink:to="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85c-78a5-ab33-4d0781407b63" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85c-75fc-9647-68d7443f0e83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019f1475-a85c-7c94-b2ff-dc811486150a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85c-75fc-9647-68d7443f0e83" xlink:to="loc_us-gaap_StockholdersEquity_019f1475-a85c-7c94-b2ff-dc811486150a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MinorityInterest_019f1475-a85c-7492-ba11-deb71f7b3a31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MinorityInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquityIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85c-75fc-9647-68d7443f0e83" xlink:to="loc_us-gaap_MinorityInterest_019f1475-a85c-7492-ba11-deb71f7b3a31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019f1475-a85c-73f6-817e-ef2d4b10a699" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_us-gaap_AccountsPayableCurrent_019f1475-a85c-73f6-817e-ef2d4b10a699" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_DistributionsPayableToNoncontrollingInterestsAndRedeemableNoncontrollingInterests_019f1475-a85c-752e-920c-fb5fb717fb55" xlink:href="run-20260630.xsd#run_DistributionsPayableToNoncontrollingInterestsAndRedeemableNoncontrollingInterests"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_run_DistributionsPayableToNoncontrollingInterestsAndRedeemableNoncontrollingInterests_019f1475-a85c-752e-920c-fb5fb717fb55" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85c-7f42-af3a-68bf674af5a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85c-7f42-af3a-68bf674af5a8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019f1475-a85c-79cc-906d-9bb4a046f8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019f1475-a85c-79cc-906d-9bb4a046f8f7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_DeferredGrantCurrentPortion_019f1475-a85c-7499-9e21-52ac6033e77d" xlink:href="run-20260630.xsd#run_DeferredGrantCurrentPortion"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_run_DeferredGrantCurrentPortion_019f1475-a85c-7499-9e21-52ac6033e77d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityCurrent_019f1475-a85c-7785-a311-17064a45e19d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiabilityCurrent"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_us-gaap_FinanceLeaseLiabilityCurrent_019f1475-a85c-7785-a311-17064a45e19d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_NonRecourseDebtCurrent_019f1475-a85c-7d76-921b-40b4cfffce01" xlink:href="run-20260630.xsd#run_NonRecourseDebtCurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-71b6-b528-f65b69ffea30" xlink:to="loc_run_NonRecourseDebtCurrent_019f1475-a85c-7d76-921b-40b4cfffce01" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-7338-8994-45024d1f9fab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_LiabilitiesCurrent_019f1475-a85c-7338-8994-45024d1f9fab" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019f1475-a85c-733d-a706-ded436074142" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityNoncurrent_019f1475-a85c-733d-a706-ded436074142" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_DeferredGrantIncomeNoncurrent_019f1475-a85c-7bdf-a725-b3347c1d30e2" xlink:href="run-20260630.xsd#run_DeferredGrantIncomeNoncurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_run_DeferredGrantIncomeNoncurrent_019f1475-a85c-7bdf-a725-b3347c1d30e2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_019f1475-a85c-7f06-b340-b677723c01a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeaseLiabilityNoncurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_FinanceLeaseLiabilityNoncurrent_019f1475-a85c-7f06-b340-b677723c01a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtNoncurrent_019f1475-a85c-7d73-98c6-4a9a29f09e10" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_ConvertibleDebtNoncurrent_019f1475-a85c-7d73-98c6-4a9a29f09e10" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermLineOfCredit_019f1475-a85c-7e9b-9ab9-5ef429ca3cae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermLineOfCredit"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_LongTermLineOfCredit_019f1475-a85c-7e9b-9ab9-5ef429ca3cae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_NonRecourseDebtNoncurrent_019f1475-a85c-7361-b951-a2a71a19b26b" xlink:href="run-20260630.xsd#run_NonRecourseDebtNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_run_NonRecourseDebtNoncurrent_019f1475-a85c-7361-b951-a2a71a19b26b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019f1475-a85c-7029-bb7b-d1045eeb0d5b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019f1475-a85c-7029-bb7b-d1045eeb0d5b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_019f1475-a85c-7396-828f-8ef5d88cff31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxLiabilitiesNet"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019f1475-a85c-7b9c-95a4-dd1c8b7c846c" xlink:to="loc_us-gaap_DeferredIncomeTaxLiabilitiesNet_019f1475-a85c-7396-828f-8ef5d88cff31" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019f1475-a85c-79f9-98c7-009a914d0317" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019f1475-a85c-7f36-97d5-cf8deb645d96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019f1475-a85c-79f9-98c7-009a914d0317" xlink:to="loc_us-gaap_AssetsCurrent_019f1475-a85c-7f36-97d5-cf8deb645d96" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashNoncurrent_019f1475-a85c-7f45-9c71-7b3f711ad1ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashNoncurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019f1475-a85c-79f9-98c7-009a914d0317" xlink:to="loc_us-gaap_RestrictedCashNoncurrent_019f1475-a85c-7f45-9c71-7b3f711ad1ca" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_019f1475-a85c-7a43-8f64-9679e80e98c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019f1475-a85c-79f9-98c7-009a914d0317" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_019f1475-a85c-7a43-8f64-9679e80e98c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019f1475-a85c-7314-bc0f-e319eaf4e289" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019f1475-a85c-79f9-98c7-009a914d0317" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019f1475-a85c-7314-bc0f-e319eaf4e289" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85c-7ba6-961b-07b5b13cb201" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019f1475-a85c-79f9-98c7-009a914d0317" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85c-7ba6-961b-07b5b13cb201" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsofOperations" xlink:type="simple" xlink:href="run-20260630.xsd#ConsolidatedStatementsofOperations"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsofOperations" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019f1475-a85d-73b8-9b6c-3d701810484b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019f1475-a85d-74c4-a682-4accb1a2dd73" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019f1475-a85d-73b8-9b6c-3d701810484b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_019f1475-a85d-74c4-a682-4accb1a2dd73" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019f1475-a85d-72e9-bfb8-8292d98028aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OperatingIncomeLoss_019f1475-a85d-73b8-9b6c-3d701810484b" xlink:to="loc_us-gaap_CostsAndExpenses_019f1475-a85d-72e9-bfb8-8292d98028aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019f1475-a85c-7b2d-9843-ce5cb790d651" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019f1475-a85c-7738-8d5a-40198957cc84" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019f1475-a85c-7b2d-9843-ce5cb790d651" xlink:to="loc_us-gaap_ProfitLoss_019f1475-a85c-7738-8d5a-40198957cc84" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_019f1475-a85c-762e-b365-04d3f4996cb8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019f1475-a85c-7b2d-9843-ce5cb790d651" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_019f1475-a85c-762e-b365-04d3f4996cb8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019f1475-a85c-7753-a3a6-005e967a52f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019f1475-a85d-70a6-8350-6c4f08c94876" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_019f1475-a85c-7753-a3a6-005e967a52f0" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019f1475-a85d-70a6-8350-6c4f08c94876" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019f1475-a85d-7261-8ef8-d5e718122f7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ProfitLoss_019f1475-a85c-7753-a3a6-005e967a52f0" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019f1475-a85d-7261-8ef8-d5e718122f7d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostsAndExpenses_019f1475-a85c-750a-82b2-9bd32abfb71c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostsAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfGoodsAndServicesSold_019f1475-a85c-75d9-b07e-945abda76ef5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CostOfGoodsAndServicesSold"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019f1475-a85c-750a-82b2-9bd32abfb71c" xlink:to="loc_us-gaap_CostOfGoodsAndServicesSold_019f1475-a85c-75d9-b07e-945abda76ef5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpense_019f1475-a85c-71ae-9198-9782f1594412" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SellingAndMarketingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019f1475-a85c-750a-82b2-9bd32abfb71c" xlink:to="loc_us-gaap_SellingAndMarketingExpense_019f1475-a85c-71ae-9198-9782f1594412" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_019f1475-a85c-72fa-bcbe-bc24f36854bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ResearchAndDevelopmentExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019f1475-a85c-750a-82b2-9bd32abfb71c" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_019f1475-a85c-72fa-bcbe-bc24f36854bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_019f1475-a85c-7e41-bc75-02a00e9e5510" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GeneralAndAdministrativeExpense"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CostsAndExpenses_019f1475-a85c-750a-82b2-9bd32abfb71c" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_019f1475-a85c-7e41-bc75-02a00e9e5510" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019f1475-a85d-7788-8545-6126324c3536" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_019f1475-a85d-7060-b342-fc04139a3dec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019f1475-a85d-7788-8545-6126324c3536" xlink:to="loc_us-gaap_OperatingIncomeLoss_019f1475-a85d-7060-b342-fc04139a3dec" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019f1475-a85d-7430-ac1c-11e8b8c3bb72" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019f1475-a85d-7788-8545-6126324c3536" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_019f1475-a85d-7430-ac1c-11e8b8c3bb72" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_019f1475-a85d-7333-931f-4f28d38acc24" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNonoperatingIncomeExpense"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019f1475-a85d-7788-8545-6126324c3536" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_019f1475-a85d-7333-931f-4f28d38acc24" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="simple" xlink:href="run-20260630.xsd#ConsolidatedStatementsofComprehensiveIncome"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsofComprehensiveIncome" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019f1475-a85d-723c-87a8-6d03adc94b96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019f1475-a85d-74f5-9d8c-13c047489a59" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019f1475-a85d-723c-87a8-6d03adc94b96" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossBeforeReclassificationAfterTax_019f1475-a85d-74f5-9d8c-13c047489a59" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019f1475-a85d-7387-a9c0-7ea7029c8549" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019f1475-a85d-723c-87a8-6d03adc94b96" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossCashFlowHedgeGainLossReclassificationAfterTax_019f1475-a85d-7387-a9c0-7ea7029c8549" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85d-7ff8-9999-fc93451e7b5c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019f1475-a85d-7513-be6c-d38581cf3679" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85d-7ff8-9999-fc93451e7b5c" xlink:to="loc_us-gaap_ProfitLoss_019f1475-a85d-7513-be6c-d38581cf3679" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019f1475-a85d-7b56-8101-debbb19d17b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85d-7ff8-9999-fc93451e7b5c" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019f1475-a85d-7b56-8101-debbb19d17b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1475-a85d-7a99-9b70-fb573d7093d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85d-7d8d-a095-289ec64e44b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1475-a85d-7a99-9b70-fb573d7093d5" xlink:to="loc_us-gaap_ComprehensiveIncomeNetOfTaxIncludingPortionAttributableToNoncontrollingInterest_019f1475-a85d-7d8d-a095-289ec64e44b0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_019f1475-a85d-7f1b-a6bd-a5fbdc8c6c78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLossAttributableToNoncontrollingInterest"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019f1475-a85d-7a99-9b70-fb573d7093d5" xlink:to="loc_us-gaap_NetIncomeLossAttributableToNoncontrollingInterest_019f1475-a85d-7f1b-a6bd-a5fbdc8c6c78" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/ConsolidatedStatementsofCashFlows" xlink:type="simple" xlink:href="run-20260630.xsd#ConsolidatedStatementsofCashFlows"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/ConsolidatedStatementsofCashFlows" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_ProceedsFromStateTaxCreditsNetOfRecapture_019f1475-a85d-73b5-86fb-f93807a3499f" xlink:href="run-20260630.xsd#run_ProceedsFromStateTaxCreditsNetOfRecapture"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_run_ProceedsFromStateTaxCreditsNetOfRecapture_019f1475-a85d-73b5-86fb-f93807a3499f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_RepaymentOfTradeReceivableFinancing_019f1475-a85d-7f47-93cb-7079e520725d" xlink:href="run-20260630.xsd#run_RepaymentOfTradeReceivableFinancing"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_run_RepaymentOfTradeReceivableFinancing_019f1475-a85d-7f47-93cb-7079e520725d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_019f1475-a85d-7fd5-9090-28f64cb4f439" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_019f1475-a85d-7fd5-9090-28f64cb4f439" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfLinesOfCredit_019f1475-a85d-7565-a8c1-13b790c08099" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfLinesOfCredit"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_RepaymentsOfLinesOfCredit_019f1475-a85d-7565-a8c1-13b790c08099" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForRepurchaseOfConvertiblePreferredStock_019f1475-a85d-7420-9bcf-5050bcf29baf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForRepurchaseOfConvertiblePreferredStock"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_PaymentsForRepurchaseOfConvertiblePreferredStock_019f1475-a85d-7420-9bcf-5050bcf29baf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfDebt_019f1475-a85d-7666-9a9d-4fc4420b3f6a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfDebt"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfDebt_019f1475-a85d-7666-9a9d-4fc4420b3f6a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RepaymentsOfDebt_019f1475-a85d-70ec-b409-40aa221c951a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RepaymentsOfDebt"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_RepaymentsOfDebt_019f1475-a85d-70ec-b409-40aa221c951a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019f1475-a85d-7615-a134-6917a88138fa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDebtIssuanceCosts"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_019f1475-a85d-7615-a134-6917a88138fa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeasePrincipalPayments_019f1475-a85d-73f5-a312-91ff68ee5c65" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinanceLeasePrincipalPayments"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_FinanceLeasePrincipalPayments_019f1475-a85d-73f5-a312-91ff68ee5c65" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMinorityShareholders_019f1475-a85d-788d-b506-0a51e32ec0de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromMinorityShareholders"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_ProceedsFromMinorityShareholders_019f1475-a85d-788d-b506-0a51e32ec0de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToMinorityShareholders_019f1475-a85d-7104-9bb4-8a9cee6fb693" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToMinorityShareholders"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_PaymentsToMinorityShareholders_019f1475-a85d-7104-9bb4-8a9cee6fb693" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_PaymentsToAcquireNonControllingInterest_019f1475-a85d-7cb2-b46e-cc877d17d044" xlink:href="run-20260630.xsd#run_PaymentsToAcquireNonControllingInterest"/>
    <link:calculationArc order="12" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_run_PaymentsToAcquireNonControllingInterest_019f1475-a85d-7cb2-b46e-cc877d17d044" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_ProceedsFromTransferOfInvestmentTaxCredits_019f1475-a85d-700f-9b25-4c0b6c2ec971" xlink:href="run-20260630.xsd#run_ProceedsFromTransferOfInvestmentTaxCredits"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_run_ProceedsFromTransferOfInvestmentTaxCredits_019f1475-a85d-700f-9b25-4c0b6c2ec971" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_PaymentsToNoncontrollingInterestOfInvestmentTaxCredits_019f1475-a85d-70a2-9076-1267a0e8b72c" xlink:href="run-20260630.xsd#run_PaymentsToNoncontrollingInterestOfInvestmentTaxCredits"/>
    <link:calculationArc order="14" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_run_PaymentsToNoncontrollingInterestOfInvestmentTaxCredits_019f1475-a85d-70a2-9076-1267a0e8b72c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_019f1475-a85d-7610-84d0-43dd35910d60" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromStockOptionsExercised"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_019f1475-a85d-7610-84d0-43dd35910d60" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_ProceedsFromTradeReceivableFinancing_019fb880-4677-71bf-9e80-010fb2b4b5fd" xlink:href="run-20260630.xsd#run_ProceedsFromTradeReceivableFinancing"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-7bf0-98d2-1144545451ad" xlink:to="loc_run_ProceedsFromTradeReceivableFinancing_019fb880-4677-71bf-9e80-010fb2b4b5fd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019f1475-a85d-7a39-af1d-2cccf843e246" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_PaymentsForCostOfSolarEnergySystemsToBeLeased_019f1475-a85d-7f39-a16c-6adfd5abeb3e" xlink:href="run-20260630.xsd#run_PaymentsForCostOfSolarEnergySystemsToBeLeased"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019f1475-a85d-7a39-af1d-2cccf843e246" xlink:to="loc_run_PaymentsForCostOfSolarEnergySystemsToBeLeased_019f1475-a85d-7f39-a16c-6adfd5abeb3e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_019f1475-a85d-76da-90ce-a7d8f44c7bf0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireEquityMethodInvestments"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019f1475-a85d-7a39-af1d-2cccf843e246" xlink:to="loc_us-gaap_PaymentsToAcquireEquityMethodInvestments_019f1475-a85d-76da-90ce-a7d8f44c7bf0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_019f1475-a85d-7f7c-b111-bb82c3369a2f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForProceedsFromProductiveAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019f1475-a85d-7a39-af1d-2cccf843e246" xlink:to="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_019f1475-a85d-7f7c-b111-bb82c3369a2f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019f1475-a85d-7d36-ae21-fa02f0da37e2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-70a4-b6a2-ec318cafaaeb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019f1475-a85d-7d36-ae21-fa02f0da37e2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-70a4-b6a2-ec318cafaaeb" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019f1475-a85d-74cd-809f-22347a1c2fae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019f1475-a85d-7d36-ae21-fa02f0da37e2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019f1475-a85d-74cd-809f-22347a1c2fae" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-73fa-a450-bad2c0eb1871" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019f1475-a85d-7d36-ae21-fa02f0da37e2" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019f1475-a85d-73fa-a450-bad2c0eb1871" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProfitLoss_019f1475-a85d-75cc-ac30-1ad3fb1ec8c1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProfitLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_ProfitLoss_019f1475-a85d-75cc-ac30-1ad3fb1ec8c1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationAndAmortization_019f1475-a85d-737a-aeac-bca3fadb43c5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_DepreciationAndAmortization_019f1475-a85d-737a-aeac-bca3fadb43c5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_DeferredIncomeTaxExpenseBenefitNoncash_019f1475-a85d-79ed-8333-190ea128382e" xlink:href="run-20260630.xsd#run_DeferredIncomeTaxExpenseBenefitNoncash"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_run_DeferredIncomeTaxExpenseBenefitNoncash_019f1475-a85d-79ed-8333-190ea128382e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019f1475-a85d-7931-9412-998cdbc9b21d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_ShareBasedCompensation_019f1475-a85d-7931-9412-998cdbc9b21d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrealizedGainLossOnDerivatives_019f1475-a85d-7615-b5bf-aab9b8e0042c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrealizedGainLossOnDerivatives"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_UnrealizedGainLossOnDerivatives_019f1475-a85d-7615-b5bf-aab9b8e0042c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherNoncashIncomeExpense_019f1475-a85d-7286-a4f8-3037acc525aa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherNoncashIncomeExpense"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_OtherNoncashIncomeExpense_019f1475-a85d-7286-a4f8-3037acc525aa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019f1475-a85d-7429-b453-9ea72bad7186" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_019f1475-a85d-7429-b453-9ea72bad7186" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInInventories_019f1475-a85d-7710-9f98-beb225d80e1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInInventories"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInInventories_019f1475-a85d-7710-9f98-beb225d80e1d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019f1475-a85d-7348-8c49-1f64606c596a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_019f1475-a85d-7348-8c49-1f64606c596a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019f1475-a85d-747d-8697-c6d02729f564" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccountsPayable"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_019f1475-a85d-747d-8697-c6d02729f564" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_019f1475-a85d-7d08-bb96-802ca98f81a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilitiesAndOtherOperatingLiabilities_019f1475-a85d-7d08-bb96-802ca98f81a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019f1475-a85d-70a7-a6a5-d4f6b217414f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInContractWithCustomerLiability"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInContractWithCustomerLiability_019f1475-a85d-70a7-a6a5-d4f6b217414f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredLiabilities_019f1475-a85d-7e77-a2fa-9b0d51286f36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInDeferredLiabilities"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019f1475-a85d-7682-81f9-ab05ee6df4bc" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredLiabilities_019f1475-a85d-7e77-a2fa-9b0d51286f36" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryofSignificantAccountingPoliciesScheduleofCashandRestrictedCashDetails" xlink:type="simple" xlink:href="run-20260630.xsd#SummaryofSignificantAccountingPoliciesScheduleofCashandRestrictedCashDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryofSignificantAccountingPoliciesScheduleofCashandRestrictedCashDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019f1475-a85d-73c8-b67f-3caca4b8dac7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Cash_019f1475-a85d-7af9-9322-a6d98a057d21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Cash"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019f1475-a85d-73c8-b67f-3caca4b8dac7" xlink:to="loc_us-gaap_Cash_019f1475-a85d-7af9-9322-a6d98a057d21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCash_019f1475-a85d-713e-b21e-1486195412eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCash"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalents_019f1475-a85d-73c8-b67f-3caca4b8dac7" xlink:to="loc_us-gaap_RestrictedCash_019f1475-a85d-713e-b21e-1486195412eb" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/SummaryofSignificantAccountingPoliciesScheduleofAccountsReceivableDetails" xlink:type="simple" xlink:href="run-20260630.xsd#SummaryofSignificantAccountingPoliciesScheduleofAccountsReceivableDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/SummaryofSignificantAccountingPoliciesScheduleofAccountsReceivableDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85d-7cf9-9e16-59c21044d458" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_019f1475-a85d-753c-9e5f-15a76e8f2380" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerAssetGrossCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85d-7cf9-9e16-59c21044d458" xlink:to="loc_us-gaap_ContractWithCustomerAssetGrossCurrent_019f1475-a85d-753c-9e5f-15a76e8f2380" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_SystemSalesReceivablesCurrent_019f1475-a85d-7af2-88cb-56d2e6bd2811" xlink:href="run-20260630.xsd#run_SystemSalesReceivablesCurrent"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85d-7cf9-9e16-59c21044d458" xlink:to="loc_run_SystemSalesReceivablesCurrent_019f1475-a85d-7af2-88cb-56d2e6bd2811" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_GridServicesReceivablesCurrent_019f1475-a85d-7951-be6d-43b5a4de9974" xlink:href="run-20260630.xsd#run_GridServicesReceivablesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85d-7cf9-9e16-59c21044d458" xlink:to="loc_run_GridServicesReceivablesCurrent_019f1475-a85d-7951-be6d-43b5a4de9974" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherReceivablesGrossCurrent_019f1475-a85d-75c2-b36d-af5db1fa39fc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherReceivablesGrossCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85d-7cf9-9e16-59c21044d458" xlink:to="loc_us-gaap_OtherReceivablesGrossCurrent_019f1475-a85d-75c2-b36d-af5db1fa39fc" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019f1475-a85d-7841-a79f-3dcf1626e50b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:calculationArc order="5" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccountsReceivableNetCurrent_019f1475-a85d-7cf9-9e16-59c21044d458" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019f1475-a85d-7841-a79f-3dcf1626e50b" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/FairValueMeasurementScheduleofFinancialInstrumentsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="run-20260630.xsd#FairValueMeasurementScheduleofFinancialInstrumentsMeasuredatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/FairValueMeasurementScheduleofFinancialInstrumentsMeasuredatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019f1475-a85d-78f5-b865-223b03bc7aef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019f1475-a85d-73b9-94e1-7782b922f586" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019f1475-a85d-78f5-b865-223b03bc7aef" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019f1475-a85d-73b9-94e1-7782b922f586" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019f1475-a85d-78c9-a0a2-c50d3adb9b1b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019f1475-a85d-7373-9407-ce573e0fe75d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019f1475-a85d-78c9-a0a2-c50d3adb9b1b" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019f1475-a85d-7373-9407-ce573e0fe75d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/InventoriesScheduleofInventoriesDetails" xlink:type="simple" xlink:href="run-20260630.xsd#InventoriesScheduleofInventoriesDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/InventoriesScheduleofInventoriesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryNet_019f1475-a85d-7d4e-81b4-26372bdf47d9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryRawMaterialsNetOfReserves_019f1475-a85d-790e-9ab1-d062c3c2b82d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryRawMaterialsNetOfReserves"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_019f1475-a85d-7d4e-81b4-26372bdf47d9" xlink:to="loc_us-gaap_InventoryRawMaterialsNetOfReserves_019f1475-a85d-790e-9ab1-d062c3c2b82d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InventoryWorkInProcessNetOfReserves_019f1475-a85d-7649-9267-a73b1a63da19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InventoryWorkInProcessNetOfReserves"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InventoryNet_019f1475-a85d-7d4e-81b4-26372bdf47d9" xlink:to="loc_us-gaap_InventoryWorkInProcessNetOfReserves_019f1475-a85d-7649-9267-a73b1a63da19" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/EnergySystemsnetScheduleofSolarEnergySystemsNetDetails" xlink:type="simple" xlink:href="run-20260630.xsd#EnergySystemsnetScheduleofSolarEnergySystemsNetDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/EnergySystemsnetScheduleofSolarEnergySystemsNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_019f1475-a85d-7850-8677-bc26c8deac2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseGross_019f1475-a85d-788c-b8e5-8ea4064b3f32" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_019f1475-a85d-7850-8677-bc26c8deac2e" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseGross_019f1475-a85d-788c-b8e5-8ea4064b3f32" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAccumulatedDepreciation_019f1475-a85d-77e8-964f-3d30b4939a38" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAccumulatedDepreciation"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_019f1475-a85d-7850-8677-bc26c8deac2e" xlink:to="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseAccumulatedDepreciation_019f1475-a85d-77e8-964f-3d30b4939a38" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressGross_019f1475-a85d-7bf9-a3ab-0929cad10ad8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConstructionInProgressGross"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PropertySubjectToOrAvailableForOperatingLeaseNet_019f1475-a85d-7850-8677-bc26c8deac2e" xlink:to="loc_us-gaap_ConstructionInProgressGross_019f1475-a85d-7bf9-a3ab-0929cad10ad8" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/OtherAssetsScheduleofOtherAssetsDetails" xlink:type="simple" xlink:href="run-20260630.xsd#OtherAssetsScheduleofOtherAssetsDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/OtherAssetsScheduleofOtherAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostGross_019f1475-a85d-767d-bee3-0dc9ed04e65b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostGross"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_CapitalizedContractCostGross_019f1475-a85d-767d-bee3-0dc9ed04e65b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAccumulatedAmortization_019f1475-a85d-7821-80bd-22b191d3787d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostAccumulatedAmortization"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_CapitalizedContractCostAccumulatedAmortization_019f1475-a85d-7821-80bd-22b191d3787d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnbilledReceivablesCurrent_019f1475-a85d-7c9d-9cf8-a34a1a9c0830" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnbilledReceivablesCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_UnbilledReceivablesCurrent_019f1475-a85d-7c9d-9cf8-a34a1a9c0830" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_019f1475-a85d-7f1f-9162-10804280385f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivable"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivable_019f1475-a85d-7f1f-9162-10804280385f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityMethodInvestments_019f1475-a85d-7fa8-af66-99258295e8d2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityMethodInvestments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_EquityMethodInvestments_019f1475-a85d-7fa8-af66-99258295e8d2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019f1475-a85d-7954-9e7c-541594dce297" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019f1475-a85d-7954-9e7c-541594dce297" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019f1475-a85d-7de9-af5e-9c6ac661a029" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsMiscellaneousNoncurrent"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherAssetsNoncurrent_019f1475-a85d-7238-b6f3-9c25f621b17a" xlink:to="loc_us-gaap_OtherAssetsMiscellaneousNoncurrent_019f1475-a85d-7de9-af5e-9c6ac661a029" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/AccruedExpensesandOtherLiabilitiesScheduleofAccruedExpensesandOtherLiabilitiesDetails" xlink:type="simple" xlink:href="run-20260630.xsd#AccruedExpensesandOtherLiabilitiesScheduleofAccruedExpensesandOtherLiabilitiesDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/AccruedExpensesandOtherLiabilitiesScheduleofAccruedExpensesandOtherLiabilitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85d-7a0e-b7b1-aafebb534ec9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesAndOtherLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedEmployeeBenefitsCurrent_019f1475-a85d-7682-93ee-98c48c7a3b68" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedEmployeeBenefitsCurrent"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85d-7a0e-b7b1-aafebb534ec9" xlink:to="loc_us-gaap_AccruedEmployeeBenefitsCurrent_019f1475-a85d-7682-93ee-98c48c7a3b68" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepositLiabilitiesAccruedInterest_019f1475-a85d-7137-b5f9-7396d5dccb28" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepositLiabilitiesAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85d-7a0e-b7b1-aafebb534ec9" xlink:to="loc_us-gaap_DepositLiabilitiesAccruedInterest_019f1475-a85d-7137-b5f9-7396d5dccb28" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019f1475-a85d-7d99-a576-d5ae95e941b9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85d-7a0e-b7b1-aafebb534ec9" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019f1475-a85d-7d99-a576-d5ae95e941b9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019f1475-a85d-7ed1-9486-989f27511d09" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAccruedLiabilitiesCurrent"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AccruedLiabilitiesAndOtherLiabilities_019f1475-a85d-7a0e-b7b1-aafebb534ec9" xlink:to="loc_us-gaap_OtherAccruedLiabilitiesCurrent_019f1475-a85d-7ed1-9486-989f27511d09" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/IndebtednessScheduleofDebtDetails" xlink:type="simple" xlink:href="run-20260630.xsd#IndebtednessScheduleofDebtDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/IndebtednessScheduleofDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019f1475-a85d-71f1-b39b-bfac3c9758c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019f1475-a85d-769a-b959-58fc34f9ef3f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019f1475-a85d-71f1-b39b-bfac3c9758c7" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019f1475-a85d-769a-b959-58fc34f9ef3f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019f1475-a85d-7664-a280-4b4f38c065a4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019f1475-a85d-71f1-b39b-bfac3c9758c7" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019f1475-a85d-7664-a280-4b4f38c065a4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_019f1475-a85d-7036-a2c6-d6ab137e5b82" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LongTermDebt_019f1475-a85d-71f1-b39b-bfac3c9758c7" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumNet_019f1475-a85d-7036-a2c6-d6ab137e5b82" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/DerivativesScheduleofOffsettingArrangementsDetails" xlink:type="simple" xlink:href="run-20260630.xsd#DerivativesScheduleofOffsettingArrangementsDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/DerivativesScheduleofOffsettingArrangementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019f1475-a85e-7f5d-8a45-86ee1b26a6fb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019f1475-a85e-71f8-99ab-1cf97a2b0827" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_019f1475-a85e-7f5d-8a45-86ee1b26a6fb" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019f1475-a85e-71f8-99ab-1cf97a2b0827" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019f1475-a85e-7408-becf-d594b010e1c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeLiabilities_019f1475-a85e-7f5d-8a45-86ee1b26a6fb" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019f1475-a85e-7408-becf-d594b010e1c0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019f1475-a85e-7f51-9118-98f45bb39ae3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019f1475-a85e-7c31-b093-12f0fac0547f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019f1475-a85e-7f51-9118-98f45bb39ae3" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019f1475-a85e-7c31-b093-12f0fac0547f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019f1475-a85e-7557-84ab-db774418d8fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssets_019f1475-a85e-7f51-9118-98f45bb39ae3" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019f1475-a85e-7557-84ab-db774418d8fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_run_DerivativeAssetLiabilitiesFairValueNet_019f1475-a85e-7ee9-bbc8-83a2ed0b0042" xlink:href="run-20260630.xsd#run_DerivativeAssetLiabilitiesFairValueNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019f1475-a85e-76a2-9458-f38087587173" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetFairValueGrossLiability"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_run_DerivativeAssetLiabilitiesFairValueNet_019f1475-a85e-7ee9-bbc8-83a2ed0b0042" xlink:to="loc_us-gaap_DerivativeAssetFairValueGrossLiability_019f1475-a85e-76a2-9458-f38087587173" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019f1475-a85e-7f7d-a346-7a68a4daf1a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_run_DerivativeAssetLiabilitiesFairValueNet_019f1475-a85e-7ee9-bbc8-83a2ed0b0042" xlink:to="loc_us-gaap_DerivativeLiabilityFairValueGrossAsset_019f1475-a85e-7f7d-a346-7a68a4daf1a3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019f1475-a85e-73f1-8696-e98d67c7cce2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeAssets_019f1475-a85e-7bc4-a33b-67d103ce0c47" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeAssets"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019f1475-a85e-73f1-8696-e98d67c7cce2" xlink:to="loc_us-gaap_DerivativeAssets_019f1475-a85e-7bc4-a33b-67d103ce0c47" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeLiabilities_019f1475-a85e-75f3-8fb9-52d17197c42a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeLiabilities"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeAssetsLiabilitiesAtFairValueNet_019f1475-a85e-73f1-8696-e98d67c7cce2" xlink:to="loc_us-gaap_DerivativeLiabilities_019f1475-a85e-75f3-8fb9-52d17197c42a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeNet_019f1475-a85e-7adb-87cc-2af3cf486a30" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019f1475-a85e-7093-98ab-faf2507bdaf3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeNet_019f1475-a85e-7adb-87cc-2af3cf486a30" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeAsset_019f1475-a85e-7093-98ab-faf2507bdaf3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019f1475-a85e-701c-bdcf-93db14d184bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DerivativeFairValueOfDerivativeNet_019f1475-a85e-7adb-87cc-2af3cf486a30" xlink:to="loc_us-gaap_DerivativeFairValueOfDerivativeLiability_019f1475-a85e-701c-bdcf-93db14d184bd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.sunrun.com/role/NetIncomePerShareScheduleofComputationofBasicandDilutedNetIncomePerShareDetails" xlink:type="simple" xlink:href="run-20260630.xsd#NetIncomePerShareScheduleofComputationofBasicandDilutedNetIncomePerShareDetails"/>
  <link:calculationLink xlink:role="http://www.sunrun.com/role/NetIncomePerShareScheduleofComputationofBasicandDilutedNetIncomePerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019f1475-a934-7bc2-b8c8-4998621bac5e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019f1475-a934-714c-9c52-355923dbd560" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019f1475-a934-7bc2-b8c8-4998621bac5e" xlink:to="loc_us-gaap_WeightedAverageNumberDilutedSharesOutstandingAdjustment_019f1475-a934-714c-9c52-355923dbd560" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019f1475-a934-79b7-a17c-c5344d0a23a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019f1475-a934-7bc2-b8c8-4998621bac5e" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019f1475-a934-79b7-a17c-c5344d0a23a0" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
